Debian Codegraph @

online-accounts/lib/qt/LomiriOnlineAccounts/pending_call_p.h

raw symbols SCIP
1 /*
2 * This file is part of libOnlineAccounts
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_PENDING_CALL_P_H
22 #define ONLINE_ACCOUNTS_PENDING_CALL_P_H
23
24 #include "pending_call.h"
25
26 #include <QDBusPendingCall>
27 #include <QSharedData>
28
29 namespace OnlineAccounts {
30
31 class Manager;
32
33 class PendingCallPrivate: public QSharedData
34 {
35 public:
36 enum InvokedMethod {
37 Authenticate,
38 RequestAccess,
39 };
40
41 PendingCallPrivate(Manager *manager,
42 const QDBusPendingCall &call,
43 InvokedMethod method,
44 AuthenticationMethod authMethod);
45 ~PendingCallPrivate() {};
46
47 Manager *manager() const { return m_manager; }
48 QDBusPendingCall dbusCall() const { return m_call; }
49 InvokedMethod invokedMethod() const { return m_invokedMethod; }
50
51 AuthenticationMethod authenticationMethod() const {
52 return m_authenticationMethod;
53 }
54
55 private:
56 friend class PendingCall;
57 Manager *m_manager;
58 QDBusPendingCall m_call;
59 InvokedMethod m_invokedMethod;
60 AuthenticationMethod m_authenticationMethod;
61 };
62
63 } // namespace
64
65 #endif // ONLINE_ACCOUNTS_PENDING_CALL_P_H