00001 #ifndef MYTHUI_CLOCK_H_
00002 #define MYTHUI_CLOCK_H_
00003
00004 #include <QString>
00005 #include <QDateTime>
00006
00007 #include "mythuitype.h"
00008 #include "mythuitext.h"
00009
00025 class MUI_PUBLIC MythUIClock : public MythUIText
00026 {
00027 public:
00028 MythUIClock(MythUIType *parent, const QString &name);
00029 ~MythUIClock();
00030
00031 virtual void Pulse(void);
00032 virtual void SetText(const QString &text);
00033
00034 protected:
00035 virtual bool ParseElement(
00036 const QString &filename, QDomElement &element, bool showWarnings);
00037 virtual void CopyFrom(MythUIType *base);
00038 virtual void CreateCopy(MythUIType *parent);
00039
00040 QString GetTimeText(void);
00041
00042 QDateTime m_Time;
00043 QDateTime m_nextUpdate;
00044
00045 QString m_Format;
00046 QString m_TimeFormat;
00047 QString m_DateFormat;
00048 QString m_ShortDateFormat;
00049
00050 bool m_Flash;
00051 };
00052
00053 #endif