Debian Codegraph @

thirdparty/kQOAuth/kqoauthrequest_xauth.h

raw
1 /**
2 * KQOAuth - An OAuth authentication library for Qt.
3 *
4 * Author: Johan Paul ([email protected])
5 * http://www.johanpaul.com
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * KQOAuth is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with KQOAuth. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef KQOAUTHREQUEST_XAUTH_H
21 #define KQOAUTHREQUEST_XAUTH_H
22
23 #include "kqoauthrequest.h"
24
25 class KQOAuthRequest_XAuthPrivate;
26 class KQOAuthRequest_XAuth : public KQOAuthRequest
27 {
28 Q_OBJECT
29 public:
30 KQOAuthRequest_XAuth(QObject *parent = 0);
31
32 /**
33 * These methods can be overridden in child classes which are different types of
34 * OAuth requests.
35 */
36 // Validate the request of this type.
37 bool isValid() const;
38
39 // Give the xAuth specific parameters.
40 void setXAuthLogin(const QString &username = "",
41 const QString &password = "");
42
43 private:
44 KQOAuthRequest_XAuthPrivate * const d_ptr;
45 bool xauth_parameters_set;
46 };
47
48 #endif // KQOAUTHREQUEST_XAUTH_H