libusermetrics
ColorTheme.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2013 Canonical, Ltd.
3 *
4 * This library is free software; you can redistribute it and/or modify it under
5 * the terms of version 3 of the GNU Lesser General Public License as published
6 * by the Free Software Foundation.
7 *
8 * This library is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11 * details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Author: Pete Woods <pete.woods@canonical.com>
17 */
18
19#ifndef USERMETRICSOUTPUT_COLORTHEME_H_
20#define USERMETRICSOUTPUT_COLORTHEME_H_
21
22#include <QtCore/QObject>
23#include <QtGui/QColor>
24
30
37class Q_DECL_EXPORT ColorTheme: public QObject {
38Q_OBJECT
39
43Q_PROPERTY(QColor start READ start NOTIFY startChanged FINAL)
44
45
48Q_PROPERTY(QColor main READ main NOTIFY mainChanged FINAL)
49
53Q_PROPERTY(QColor end READ end NOTIFY endChanged FINAL)
54
55protected:
61 explicit ColorTheme(QObject *parent = 0);
62
63public:
67 virtual ~ColorTheme();
68
72 virtual QColor start() const = 0;
73
77 virtual QColor main() const = 0;
78
82 virtual QColor end() const = 0;
83
84Q_SIGNALS:
90 void startChanged(const QColor &color);
91
97 void mainChanged(const QColor &color);
98
104 void endChanged(const QColor &color);
105
106};
107
108}
109
112#endif // USERMETRICSOUTPUT_COLORTHEME_H_
ColorTheme for a particular user metric.
Definition ColorTheme.h:37
The user metrics output library namespace.
Definition ColorTheme.h:29