#ifndef CONFIGURATION_H #define CONFIGURATION_H #include "Glass_global.h" #include class Sequence; class Weather; class Settings; class AlertWidget; class QDateTime; class QSettings; class GLASSSHARED_EXPORT MabiTimer : public QObject { Q_OBJECT public: MabiTimer(QObject *parent = 0); ~MabiTimer(); static bool initializeSequence(); static bool initializeWeather(); static bool initializeObjects(); static void uninitializeObjects(); static Sequence *sequence(); static Weather *weather(int region); static AlertWidget *alertWidget(); static Settings *settings(); static QDateTime *erinnTime(); static bool connectTimer(const QObject *receiver, const char *member); static bool disconnectTimer(const QObject *receiver, const char *member); static void addManageObject(QObject *object); static void addManageObject(QString &key, QObject *object); static QObject *manageObject(QString &key); static QObject *manageObject(const char* utf8Key, int size = -1); static int weatherCount(); static void setOffsetSeconds(int offsetSeconds); static int offsetSeconds(); static void setTransparentEx(void *handle, bool transparent); private slots: void erinnTimeUpdate(); void manageObjectDistoryed(QObject *object); }; #endif // CONFIGURATION_H