| 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_CLIENT_REGISTRY_H |
| 22 | #define ONLINE_ACCOUNTS_DAEMON_CLIENT_REGISTRY_Hcxx . . $ `online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/client_registry.h:22:9`! |
| 23 | |
| 24 | #include <QObject> |
| 25 | #include <QStringList> |
| 26 | #include <sys/types.h> |
| 27 | |
| 28 | class QDBusConnectioncxx . . $ QDBusConnection#; |
| 29 | class QDBusMessagecxx . . $ QDBusMessage#; |
| 30 | |
| 31 | namespace OnlineAccountsDaemoncxx . . $ OnlineAccountsDaemon/ { |
| 32 | |
| 33 | class ClientRegistryPrivatecxx . . $ OnlineAccountsDaemon/ClientRegistryPrivate#; |
| 34 | class ClientRegistrycxx . . $ OnlineAccountsDaemon/ClientRegistry#: public QObjectcxx . . $ QObject# |
| 35 | { |
| 36 | Q_OBJECTcxx . . $ OnlineAccountsDaemon/ClientRegistry#tr(75d9f1c324b4579d). |
| 37 | |
| 38 | public: |
| 39 | ~cxx . . $ OnlineAccountsDaemon/ClientRegistry#`~ClientRegistry`(ced63f7c635d850d).ClientRegistrycxx . . $ OnlineAccountsDaemon/ClientRegistry#(); |
| 40 | |
| 41 | static ClientRegistrycxx . . $ OnlineAccountsDaemon/ClientRegistry# *instancecxx . . $ OnlineAccountsDaemon/ClientRegistry#instance(bedb1e5b8c4f59e2).(); |
| 42 | |
| 43 | QStringcxx . . $ QString# registerClientcxx . . $ OnlineAccountsDaemon/ClientRegistry#registerClient(41aa20dcba818a8c).(const QDBusConnectioncxx . . $ QDBusConnection# &connection, |
| 44 | const QDBusMessagecxx . . $ QDBusMessage# &message); |
| 45 | void registerClientcxx . . $ OnlineAccountsDaemon/ClientRegistry#registerClient(3520e46b33348bf6).(const QStringcxx . . $ QString# &client); |
| 46 | void registerActiveClientscxx . . $ OnlineAccountsDaemon/ClientRegistry#registerActiveClients(631c0101495f0328).(const QStringListcxx . . $ QStringList# &clients); |
| 47 | QStringListcxx . . $ QStringList# clientscxx . . $ OnlineAccountsDaemon/ClientRegistry#clients(e1dbd5c4feadc8f5).() const; |
| 48 | bool hasClientscxx . . $ OnlineAccountsDaemon/ClientRegistry#hasClients(50ce9a9e25b4a850).() const { return !clientscxx . . $ OnlineAccountsDaemon/ClientRegistry#clients(e1dbd5c4feadc8f5).().isEmptycxx . . $ QList#isEmpty(3482b152b9333168).(); } |
| 49 | |
| 50 | QStringcxx . . $ QString# clientSecurityContextcxx . . $ OnlineAccountsDaemon/ClientRegistry#clientSecurityContext(5555d9024dcf93fb).(const QStringcxx . . $ QString# &client) const; |
| 51 | pid_tcxx . . $ pid_t# clientPidcxx . . $ OnlineAccountsDaemon/ClientRegistry#clientPid(fbf1bd5053f90658).(const QStringcxx . . $ QString# &client) const; |
| 52 | |
| 53 | Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!: |
| 54 | void hasClientsChangedcxx . . $ OnlineAccountsDaemon/ClientRegistry#hasClientsChanged(49f6e7a06ebc5aa8).(); |
| 55 | |
| 56 | private: |
| 57 | ClientRegistrycxx . . $ OnlineAccountsDaemon/ClientRegistry#ClientRegistry(49f6e7a06ebc5aa8).(); |
| 58 | Q_DECLARE_PRIVATEcxx . . $ `<external>/15045578679651060896/qglobal.h:1158:9`!(ClientRegistry) |
| 59 | ClientRegistryPrivatecxx . . $ OnlineAccountsDaemon/ClientRegistryPrivate# *d_ptrcxx . . $ OnlineAccountsDaemon/ClientRegistry#d_ptr.; |
| 60 | }; |
| 61 | |
| 62 | } // namespace |
| 63 | |
| 64 | #endif // ONLINE_ACCOUNTS_DAEMON_CLIENT_REGISTRY_H |