Debian Codegraph @

system-settings-plugin/plugin.h

raw
1 /*
2 * Copyright (C) 2015 Canonical Ltd.
3 *
4 * Contact: Alberto Mardegan <[email protected]>
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 3, as published
8 * by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranties of
12 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
13 * PURPOSE. See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef ONLINE_ACCOUNTS_SYSTEM_SETTINGS_PLUGIN_H
20 #define ONLINE_ACCOUNTS_SYSTEM_SETTINGS_PLUGIN_H
21
22 #include <QObject>
23 #include <LomiriSystemSettings/PluginInterface>
24
25 class Plugin: public QObject, public LomiriSystemSettings::PluginInterface2
26 {
27 Q_OBJECT
28 Q_PLUGIN_METADATA(IID "com.lomiri.SystemSettings.PluginInterface/2.0")
29 Q_INTERFACES(LomiriSystemSettings::PluginInterface2)
30
31 public:
32 LomiriSystemSettings::ItemBase *createItem(const QVariantMap &staticData,
33 QObject *parent = 0);
34 };
35
36 #endif // ONLINE_ACCOUNTS_SYSTEM_SETTINGS_PLUGIN_H