Debian Codegraph @

online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/authentication_request.h

raw symbols SCIP
1 /*
2 * This file is part of OnlineAccountsDaemon
3 *
4 * Copyright (C) 2015 Canonical Ltd.
5 *
6 * Contact: Alberto Mardegan <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License version 3, as
10 * published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the 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 this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef ONLINE_ACCOUNTS_DAEMON_AUTHENTICATION_REQUEST_H
22 #define ONLINE_ACCOUNTS_DAEMON_AUTHENTICATION_REQUEST_H
23
24 #include <QObject>
25 #include <QString>
26 #include <QVariantMap>
27 #include "async_operation.h"
28
29 namespace Accounts {
30 class AuthData;
31 }
32
33 namespace OnlineAccountsDaemon {
34
35 class AuthenticationRequestPrivate;
36 class AuthenticationRequest: public AsyncOperation
37 {
38 Q_OBJECT
39
40 public:
41 explicit AuthenticationRequest(const CallContext &context,
42 QObject *parent = 0);
43 ~AuthenticationRequest();
44
45 void setInteractive(bool interactive);
46 void invalidateCache();
47
48 void authenticate(const Accounts::AuthData &authData,
49 const QVariantMap &parameters);
50
51 private:
52 Q_DECLARE_PRIVATE(AuthenticationRequest)
53 AuthenticationRequestPrivate *d_ptr;
54 };
55
56 } // namespace
57
58 #endif // ONLINE_ACCOUNTS_DAEMON_AUTHENTICATION_REQUEST_H