jce-manager/main/CalendarTab/CalendarManager.h

35 lines
809 B
C
Raw Normal View History

2014-09-08 15:54:52 +00:00
#ifndef CALENDARMANAGER_H
#define CALENDARMANAGER_H
#include "./src/jceData/Calendar/calendarPage.h"
#include "./src/jceData/Calendar/calendarSchedule.h"
#include "./src/jceData/CSV/csv_exporter.h"
#include "./src/jceData/Calendar/calendarDialog.h"
#include <QObject>
#include <QGridLayout>
2014-09-08 15:54:52 +00:00
#include <QMessageBox>
class CalendarManager : public QObject
2014-09-08 15:54:52 +00:00
{
Q_OBJECT
2014-09-08 15:54:52 +00:00
public:
CalendarManager(QGridLayout *ptr);
2014-09-08 15:54:52 +00:00
~CalendarManager()
{
delete caliSchedPtr;
delete caliDialog;
2014-09-08 15:54:52 +00:00
}
void exportCalendarCSV();
void setCalendar(QString html);
2014-09-08 15:54:52 +00:00
void resetTable() { if (caliSchedPtr != NULL) caliSchedPtr->clearTableItems(); }
private:
calendarSchedule * caliSchedPtr;
CalendarDialog * caliDialog;
2014-09-08 15:54:52 +00:00
};
#endif // CALENDARMANAGER_H