19#ifndef USERMETRICSOUTPUT_USERMETRICS_H_
20#define USERMETRICSOUTPUT_USERMETRICS_H_
22#include <QtCore/QString>
23#include <QtGui/QColor>
24#include <QtCore/QAbstractItemModel>
64Q_PROPERTY(QString label READ label NOTIFY labelChanged FINAL)
69Q_PROPERTY(QString username READ username WRITE setUsername NOTIFY usernameChanged FINAL)
84Q_PROPERTY(QAbstractItemModel *firstMonth READ firstMonth NOTIFY firstMonthChanged FINAL)
89Q_PROPERTY(QAbstractItemModel *secondMonth READ secondMonth NOTIFY secondMonthChanged FINAL)
96Q_PROPERTY(
int currentDay READ currentDay NOTIFY currentDayChanged FINAL)
ColorTheme for a particular user metric.
Definition ColorTheme.h:37
Presentation API for user metrics.
Definition UserMetrics.h:56
virtual void nextDataSourceSlot()=0
Synchronous version of nextDataSource.
void labelChanged(const QString &label)
The label has changed.
void dataAboutToChange()
Data is about to change from one set to another.
virtual ColorTheme * secondColor() const =0
The ColorTheme for the second month.
void secondColorChanged(ColorTheme *color)
The second month's ColorTheme has changed.
void dataDisappeared()
The empty data has now been loaded.
void readyForDataChange()
Inform the UserMetrics that you are ready for data change.
virtual ~UserMetrics()
Destructor.
void dataChanged()
Insert documentation here.
void dataAboutToDisappear()
About to change to a user with no data.
void dataAppeared()
Data has finished loading.
void firstColorChanged(ColorTheme *color)
The first month's ColorTheme has changed.
static UserMetrics * getInstance()
Get a new instance of UserMetrics.
void firstMonthChanged(QAbstractItemModel *firstMonth)
The first month's data has changed.
virtual ColorTheme * firstColor() const =0
The ColorTheme for the first month.
UserMetrics(QObject *parent=0)
Unusable constructor - this class is pure-virtual.
virtual void setUsername(const QString &username)=0
Change the current username.
void dataAboutToAppear()
Data is about to appear.
virtual QAbstractItemModel * secondMonth() const =0
The data for the second month.
virtual int currentDay() const =0
The current day of the calendar month.
void nextDataSource()
Request the current user's next data source.
virtual QString username() const =0
The current username selected.
void currentDayChanged(int currentDay)
The current day of the month has changed.
void usernameChanged(const QString &username)
The username has changed.
virtual QAbstractItemModel * firstMonth() const =0
The data for the first month.
virtual QString label() const =0
Represents a textual version of the current metric.
void secondMonthChanged(QAbstractItemModel *secondMonth)
The second month's data has changed.
virtual void readyForDataChangeSlot()=0
Synchronous version of readyForDataChange.
The user metrics output library namespace.
Definition ColorTheme.h:29