492.4.4
by Iain Lane
Add some tests for the new reset api |
1 |
/*
|
2 |
* This file is part of system-settings
|
|
3 |
*
|
|
4 |
* Copyright (C) 2014 Canonical Ltd.
|
|
5 |
*
|
|
6 |
* Contact: Iain Lane <iain.lane@canonical.com>
|
|
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 SYSTEM_SETTINGS_TEST_PLUGIN2_H
|
|
22 |
#define SYSTEM_SETTINGS_TEST_PLUGIN2_H
|
|
23 |
||
24 |
#include <QObject> |
|
25 |
#include <SystemSettings/PluginInterface> |
|
26 |
||
27 |
class TestPlugin2: public QObject, public SystemSettings::PluginInterface2 |
|
28 |
{
|
|
29 |
Q_OBJECT
|
|
30 |
Q_PLUGIN_METADATA(IID "com.ubuntu.SystemSettings.PluginInterface/2.0") |
|
31 |
Q_INTERFACES(SystemSettings::PluginInterface2) |
|
32 |
||
33 |
public: |
|
34 |
TestPlugin2(); |
|
35 |
||
36 |
SystemSettings::ItemBase *createItem(const QVariantMap &staticData, |
|
37 |
QObject *parent = 0); |
|
38 |
bool reset(); |
|
39 |
};
|
|
40 |
||
41 |
#endif // SYSTEM_SETTINGS_TEST_PLUGIN2_H |