reimplemented 'import schedule'
[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 SqlEngine;
9
10 class ImportScheduleWidget : public QWidget, Ui::ImportScheduleWidget
11 {
12     Q_OBJECT
13     public:
14         ImportScheduleWidget(QWidget *aParent = NULL); // don't forget to use setSqlEngine()
15         ~ImportScheduleWidget();
16         void setSqlEngine(SqlEngine *aSqlEngine);
17     private slots:
18         void browseSchedule();
19         void parsingSchedule(const QString &aTitle);
20         void showParsingProgress(int progress);
21     signals:
22         void scheduleImported(int confId);
23     private:
24         ScheduleXmlParser *mXmlParser;
25         SqlEngine *mSqlEngine; // uses it
26 };
27
28 #endif /* IMPORTSCHEDULEWIDGET_H */
29