00001 #ifndef MYTHNEWSCONFIG_H 00002 #define MYTHNEWSCONFIG_H 00003 00004 // Qt headers 00005 #include <QMutex> 00006 00007 // MythTV headers 00008 #include <mythscreentype.h> 00009 00010 class MythNewsConfigPriv; 00011 class MythUIButtonList; 00012 class MythUIButtonListItem; 00013 class MythUIText; 00014 00015 class MythNewsConfig : public MythScreenType 00016 { 00017 Q_OBJECT 00018 00019 public: 00020 MythNewsConfig(MythScreenStack *parent, 00021 const QString &name); 00022 ~MythNewsConfig(); 00023 00024 bool Create(void); 00025 bool keyPressEvent(QKeyEvent *); 00026 00027 private: 00028 void loadData(void); 00029 void populateSites(void); 00030 00031 mutable QMutex m_lock; 00032 MythNewsConfigPriv *m_priv; 00033 00034 MythUIButtonList *m_categoriesList; 00035 MythUIButtonList *m_siteList; 00036 00037 MythUIText *m_helpText; 00038 MythUIText *m_contextText; 00039 int m_updateFreq; 00040 00041 private slots: 00042 void slotCategoryChanged(MythUIButtonListItem *item); 00043 void toggleItem(MythUIButtonListItem *item); 00044 }; 00045 00046 #endif /* MYTHNEWSCONFIG_H */
1.6.3