Debian Codegraph @

online-accounts-service/src/libaccounts-service.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2014 Canonical Ltd.
3 *
4 * Contact: Alberto Mardegan <[email protected]>
5 *
6 * This file is part of lomiri-online-accounts-service
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License version 3, as published
10 * 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 General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef OAU_LIBACCOUNTS_SERVICE_H
22 #define OAU_LIBACCOUNTS_SERVICE_H
23
24 #include <QDBusContext>
25 #include <QDBusMessage>
26 #include <QObject>
27
28 namespace OnlineAccountsUi {
29
30 #define LIBACCOUNTS_OBJECT_PATH \
31 QStringLiteral("/com/google/code/AccountsSSO/Accounts/Manager")
32 #define LIBACCOUNTS_BUS_NAME \
33 QStringLiteral("com.google.code.AccountsSSO.Accounts.Manager")
34
35 class LibaccountsServicePrivate;
36
37 class LibaccountsService: public QObject, protected QDBusContext
38 {
39 Q_OBJECT
40 Q_CLASSINFO("D-Bus Interface",
41 "com.google.code.AccountsSSO.Accounts.Manager")
42 Q_CLASSINFO("D-Bus Introspection", ""
43 " <interface name=\"com.google.code.AccountsSSO.Accounts.Manager\">\n"
44 " <method name=\"store\">\n"
45 " <arg direction=\"in\" type=\"u\" name=\"account_id\"/>\n"
46 " <arg direction=\"in\" type=\"b\"/>\n"
47 " <arg direction=\"in\" type=\"b\"/>\n"
48 " <arg direction=\"in\" type=\"s\"/>\n"
49 " <arg direction=\"in\" type=\"a(ssua{sv}as)\"/>\n"
50 " <arg direction=\"out\" type=\"u\" name=\"account_id\"/>\n"
51 " </method>\n"
52 " </interface>\n"
53 "")
54
55 public:
56 explicit LibaccountsService(QObject *parent = 0);
57 ~LibaccountsService();
58
59 public Q_SLOTS:
60 void store(const QDBusMessage &msg);
61
62 private:
63 LibaccountsServicePrivate *d_ptr;
64 Q_DECLARE_PRIVATE(LibaccountsService)
65 };
66
67 } // namespace
68
69 #endif // OAU_LIBACCOUNTS_SERVICE_H