e337b9d552803725dd81ddc96e7d393085b14637
[toast/confclerk.git] / src / gui / importschedulewidget.h
1 #ifndef IMPORTSCHEDULEWIDGET_H
2 #define IMPORTSCHEDULEWIDGET_H
3
4 #include <QWidget>
5 #include "ui_importschedulewidget.h"
6
7 class ScheduleXmlParser;
8 class QNetworkAccessManager;
9 class QNetworkReply;
10
11 class ImportScheduleWidget : public QWidget, Ui::ImportScheduleWidget
12 {
13     Q_OBJECT
14     public:
15         ImportScheduleWidget(QWidget *aParent = NULL);
16         ~ImportScheduleWidget();
17     private slots:
18         void browseSchedule();
19         void parsingSchedule(const QString &aTitle);
20         void showParsingProgress(int progress);
21         void networkQueryFinished(QNetworkReply *aReply);
22         void downloadSchedule();
23         void setupProxy();
24     signals:
25         void scheduleImported(int confId);
26     private:
27         void importData(const QByteArray &aData);
28     private:
29         ScheduleXmlParser *mXmlParser;
30         QNetworkAccessManager *mNetworkAccessManager;
31 };
32
33 #endif /* IMPORTSCHEDULEWIDGET_H */
34