Changed the timeline window from QWidget to QDialog to gain some expected behaviours...
[squawker.git] / w_timeline.h
blob5cb679a2866e4f7e92139501b87d837a9b693f1a
1 #ifndef W_TIMELINE_H
2 #define W_TIMELINE_H
4 #include "ui_w_timeline.h"
5 #include "twittersocket.h"
6 #include "timelinehandler.h"
7 #include "timeline.h"
9 class w_Timeline : public QDialog, private Ui::w_timeline
11 Q_OBJECT
13 public:
14 w_Timeline(QString user, QString password, QWidget *parent = 0);
16 private slots:
17 void sendUpdate();
18 void refresh();
19 void refreshResult(bool error, QString errorstring, QString contents);
20 void updateResult(bool error, QString errorstring);
21 void updateTimeline(QList<Status *> statuses);
23 private:
24 QString user;
25 QString password;
26 QTimer *timer;
27 TimelineHandler *handler;
28 Timeline *timeline;
32 #endif