| 1 | /* |
| 2 | * Copyright (C) 2013 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_SERVICE_H |
| 22 | #define OAU_SERVICE_H |
| 23 | |
| 24 | #include <QDBusContext> |
| 25 | #include <QObject> |
| 26 | #include <QVariantMap> |
| 27 | |
| 28 | namespace OnlineAccountsUi { |
| 29 | |
| 30 | class ServicePrivate; |
| 31 | |
| 32 | class Service: public QObject, protected QDBusContext |
| 33 | { |
| 34 | Q_OBJECT |
| 35 | |
| 36 | public: |
| 37 | explicit Service(QObject *parent = 0); |
| 38 | ~Service(); |
| 39 | |
| 40 | public Q_SLOTS: |
| 41 | QVariantMap requestAccess(const QVariantMap &options); |
| 42 | |
| 43 | private: |
| 44 | ServicePrivate *d_ptr; |
| 45 | Q_DECLARE_PRIVATE(Service) |
| 46 | }; |
| 47 | |
| 48 | } // namespace |
| 49 | |
| 50 | #endif // OAU_SERVICE_H |