2
* This file is part of system-settings
4
* Copyright (C) 2016 Canonical Ltd.
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.
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.
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/>.
19
#ifndef MOCK_METADATA_H
20
#define MOCK_METADATA_H
24
#include <QVariantMap>
27
class MockMetadata : public QObject {
29
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
30
Q_PROPERTY(bool showInIndicator READ showInIndicator WRITE setShowInIndicator NOTIFY showIndicatorChanged)
31
Q_PROPERTY(QStringList command READ command WRITE setCommand NOTIFY commandChanged)
32
Q_PROPERTY(QVariantMap custom READ custom WRITE setCustom NOTIFY customChanged)
35
explicit MockMetadata(QObject* parent=0);
37
QString title() const;
38
void setTitle(QString title);
40
bool showInIndicator() const;
41
void setShowInIndicator(bool shown);
43
QVariantMap map() const;
45
QStringList command() const;
46
void setCommand(const QStringList &command);
48
QVariantMap custom() const;
49
void setCustom(const QVariantMap &custom);
54
void showIndicatorChanged();
55
void commandChanged();
64
#endif // MOCK_METADATA_H