Debian Codegraph @

online-accounts-daemon/lib/LomiriOnlineAccountsDaemon/state_saver.h

raw symbols SCIP
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_STATE_SAVER_H
22 #define ONLINE_ACCOUNTS_DAEMON_STATE_SAVER_H
23
24 #include <QObject>
25 #include <QStringList>
26 #include "account_info.h"
27
28 namespace OnlineAccountsDaemon {
29
30 typedef QPair<QString,QString> Client;
31
32 class StateSaverPrivate;
33 class StateSaver: public QObject
34 {
35 Q_OBJECT
36
37 public:
38 explicit StateSaver(QObject *parent = 0);
39 ~StateSaver();
40
41 void setAccounts(const QList<AccountInfo> &accounts);
42 QList<AccountInfo> accounts() const;
43
44 void setClients(const QList<Client> &clients);
45 QList<Client> clients() const;
46
47 private:
48 Q_DECLARE_PRIVATE(StateSaver)
49 StateSaverPrivate *d_ptr;
50 };
51
52 } // namespace
53
54 #endif // ONLINE_ACCOUNTS_DAEMON_STATE_SAVER_H