00001 /* ============================================================ 00002 * This program is free software; you can redistribute it 00003 * and/or modify it under the terms of the GNU General 00004 * Public License as published bythe Free Software Foundation; 00005 * either version 2, or (at your option) 00006 * any later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 * GNU General Public License for more details. 00012 * 00013 * ============================================================ */ 00014 00015 #ifndef ZMCONSOLE_H 00016 #define ZMCONSOLE_H 00017 00018 00019 #include <mythtv/uitypes.h> 00020 #include <mythtv/uilistbtntype.h> 00021 #include <mythtv/xmlparse.h> 00022 #include <mythtv/mythdialogs.h> 00023 00024 #include "zmdefines.h" 00025 00026 class ZMConsole : public MythThemedDialog 00027 { 00028 Q_OBJECT 00029 00030 public: 00031 00032 ZMConsole(MythMainWindow *parent, 00033 const QString &window_name, const QString &theme_filename, 00034 const char *name = 0); 00035 ~ZMConsole(); 00036 00037 private slots: 00038 void updateTime(); 00039 void updateStatus(); 00040 void getDaemonStatus(); 00041 void getMonitorStatus(void); 00042 void showEditFunctionPopup(); 00043 00044 private: 00045 void wireUpTheme(void); 00046 UITextType* getTextType(QString name); 00047 void keyPressEvent(QKeyEvent *e); 00048 void updateMonitorList(); 00049 void monitorListDown(bool page); 00050 void monitorListUp(bool page); 00051 00052 void setMonitorFunction(const QString &function, const int enabled); 00053 00054 int m_currentMonitor; 00055 int m_monitorListSize; 00056 vector<Monitor *> *m_monitorList; 00057 UIListType *m_monitor_list; 00058 00059 vector<QString> *m_functionList; 00060 00061 UITextType *m_status_text; 00062 UITextType *m_time_text; 00063 UITextType *m_date_text; 00064 UITextType *m_load_text; 00065 UITextType *m_disk_text; 00066 00067 fontProp *m_runningFont; 00068 fontProp *m_stoppedFont; 00069 00070 QTimer *m_timeTimer; 00071 QString m_timeFormat; 00072 00073 QString m_daemonStatus; 00074 QString m_cpuStat; 00075 QString m_diskStat; 00076 00077 QTimer *m_updateTimer; 00078 }; 00079 00080 #endif
1.5.5