/* * Copyright (C) 2012,2013 Canonical, Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * Authors: Michael Terry */ #ifndef UNITY_ACCOUNTSSERVICE_H #define UNITY_ACCOUNTSSERVICE_H #include #include #include #include class AccountsService: public QObject { Q_OBJECT public: explicit AccountsService(QObject *parent = 0); Q_INVOKABLE QVariant getUserProperty(const QString &user, const QString &property); Q_INVOKABLE void setUserProperty(const QString &user, const QString &property, const QVariant &value); private: QDBusInterface *getUserInterface(const QString &user); QDBusInterface *accounts_manager; QMap users; }; #endif