00001 #ifndef TREEEDITOR_H 00002 #define TREEEDITOR_H 00003 00004 // Qt headers 00005 #include <QMutex> 00006 #include <QString> 00007 #include <QDomDocument> 00008 #include <QNetworkRequest> 00009 #include <QNetworkReply> 00010 #include <QNetworkAccessManager> 00011 00012 // MythTV headers 00013 #include <mythscreentype.h> 00014 #include <netgrabbermanager.h> 00015 #include <mythscreentype.h> 00016 #include <mythprogressdialog.h> 00017 00018 class MythUIButtonList; 00019 00023 class TreeEditor : public MythScreenType 00024 { 00025 Q_OBJECT 00026 00027 public: 00028 TreeEditor(MythScreenStack *parent, 00029 const QString name = "TreeEditor"); 00030 ~TreeEditor(); 00031 00032 bool Create(void); 00033 bool keyPressEvent(QKeyEvent*); 00034 00035 private: 00036 void loadData(void); 00037 void fillGrabberButtonList(); 00038 mutable QMutex m_lock; 00039 void parsedData(); 00040 00041 GrabberScript::scriptList m_grabberList; 00042 MythUIButtonList *m_grabbers; 00043 MythUIBusyDialog *m_busyPopup; 00044 MythScreenStack *m_popupStack; 00045 00046 QNetworkAccessManager *m_manager; 00047 QNetworkReply *m_reply; 00048 bool m_changed; 00049 00050 protected: 00051 void createBusyDialog(QString title); 00052 00053 signals: 00054 void itemsChanged(void); 00055 00056 public slots: 00057 void slotLoadedData(void); 00058 void toggleItem(MythUIButtonListItem *item); 00059 }; 00060 00061 #endif /* TREEEDITOR_H */
1.6.3