changes for formeego, do not use
[googlelatitude] / libkqoauth / kqoauthrequest_xauth.h
1 /**
2  * KQOAuth - An OAuth authentication library for Qt.
3  *
4  * Author: Johan Paul (johan.paul@d-pointer.com)
5  *         http://www.d-pointer.com
6  *
7  *  KQOAuth is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU Lesser General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (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 #include "kqoauthrequest_1.h"
25
26 class KQOAuthRequest_XAuthPrivate;
27 class KQOAUTH_EXPORT KQOAuthRequest_XAuth : public KQOAuthRequest
28 {
29     Q_OBJECT
30 public:
31     KQOAuthRequest_XAuth(QObject *parent = 0);
32
33     /**
34      * These methods can be overridden in child classes which are different types of
35      * OAuth requests.
36      */
37     // Validate the request of this type.
38     bool isValid() const;
39
40     // Give the xAuth specific parameters.
41     void setXAuthLogin(const QString &username = "",
42                        const QString &password = "");
43
44 private:
45     KQOAuthRequest_XAuthPrivate * const d_ptr;
46     bool xauth_parameters_set;
47 };
48
49 #endif // KQOAUTHREQUEST_XAUTH_H