19#ifndef USERMETRICSOUTPUT_USERMETRICS_H_
20#define USERMETRICSOUTPUT_USERMETRICS_H_
22#include <QtCore/QString>
23#include <QtGui/QColor>
24#include <QtCore/QAbstractItemModel>
ColorTheme for a particular user metric.
Definition ColorTheme.h:37
UserMetricsOutput::ColorTheme * secondColor
The ColorTheme for the second month.
Definition UserMetrics.h:79
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.
void secondColorChanged(ColorTheme *color)
The second month's ColorTheme has changed.
void dataDisappeared()
The empty data has now been loaded.
int currentDay
The current day of the calendar month.
Definition UserMetrics.h:96
void readyForDataChange()
Inform the UserMetrics that you are ready for data change.
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.
QAbstractItemModel * secondMonth
The data for the second month.
Definition UserMetrics.h:89
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.
UserMetricsOutput::ColorTheme * firstColor
The ColorTheme for the first month.
Definition UserMetrics.h:74
void nextDataSource()
Request the current user's next data source.
QString label
Represents a textual version of the current metric.
Definition UserMetrics.h:64
void currentDayChanged(int currentDay)
The current day of the month has changed.
void usernameChanged(const QString &username)
The username has changed.
QAbstractItemModel * firstMonth
The data for the first month.
Definition UserMetrics.h:84
void secondMonthChanged(QAbstractItemModel *secondMonth)
The second month's data has changed.
virtual void readyForDataChangeSlot()=0
Synchronous version of readyForDataChange.
QString username
The current username selected.
Definition UserMetrics.h:69
The user metrics output library namespace.
Definition ColorTheme.h:29