twitter.h 713 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef TWITTER_H
  2. #define TWITTER_H
  3. #include <QMainWindow>
  4. #include <QtNetwork/QNetworkAccessManager>
  5. #include <QUrl>
  6. #include <QtNetwork/QNetworkReply>
  7. #include <QtXml/QXmlStreamReader>
  8. #include <QtDebug>
  9. #include <QStringListModel>
  10. namespace Ui {
  11. class Twitter;
  12. }
  13. class Twitter : public QMainWindow
  14. {
  15. Q_OBJECT
  16. public:
  17. explicit Twitter(QWidget *parent = 0);
  18. ~Twitter();
  19. protected:
  20. void changeEvent(QEvent *e);
  21. private:
  22. Ui::Twitter *ui;
  23. QXmlStreamReader xml;
  24. void parseXml();
  25. // QNetworkAccessManager * manager ;
  26. private slots:
  27. void on_pushButton_released();
  28. void replyFinished(QNetworkReply*);
  29. };
  30. #endif // TWITTER_H