00001 #ifndef STATUSBOX_H_ 00002 #define STATUSBOX_H_ 00003 00004 #include <vector> // For std::vector 00005 00006 using namespace std; 00007 00008 #include "mythscreentype.h" 00009 00010 class ProgramInfo; 00011 class MythUIText; 00012 class MythUIButtonList; 00013 class MythUIButtonListItem; 00014 class MythUIStateType; 00015 00016 typedef QMap<QString, unsigned int> recprof2bps_t; 00017 00018 class StatusBox : public MythScreenType 00019 { 00020 Q_OBJECT 00021 public: 00022 StatusBox(MythScreenStack *parent); 00023 ~StatusBox(void); 00024 00025 bool Create(void); 00026 bool keyPressEvent(QKeyEvent *); 00027 void customEvent(QEvent*); 00028 00029 signals: 00030 void updateLog(); 00031 00032 protected: 00033 virtual void Init(void); 00034 00035 private slots: 00036 void setHelpText(MythUIButtonListItem *item); 00037 void updateLogList(MythUIButtonListItem *item); 00038 void clicked(MythUIButtonListItem *item); 00039 00040 void doListingsStatus(); 00041 void doScheduleStatus(); 00042 void doTunerStatus(); 00043 void doLogEntries(); 00044 void doJobQueueStatus(); 00045 void doMachineStatus(); 00046 void doAutoExpireList(bool updateExpList = true); 00047 00048 private: 00049 MythUIButtonListItem* AddLogLine(const QString & line, 00050 const QString & help = "", 00051 const QString & detail = "", 00052 const QString & helpdetail = "", 00053 const QString & state = "", 00054 const QString & data = ""); 00055 00056 void getActualRecordedBPS(QString hostnames); 00057 00058 MythUIText *m_helpText; 00059 MythUIText *m_justHelpText; 00060 MythUIButtonList *m_categoryList; 00061 MythUIButtonList *m_logList; 00062 MythUIStateType *m_iconState; 00063 00064 QMap<int, QString> contentData; 00065 recprof2bps_t recordingProfilesBPS; 00066 00067 vector<ProgramInfo *> m_expList; 00068 00069 MythScreenStack *m_popupStack; 00070 00071 int m_minLevel; 00072 00073 bool m_isBackendActive; 00074 }; 00075 00076 #endif
1.6.3