#include "CalendarManager.h"
CalendarManager::CalendarManager(calendarSchedule *ptr)
{
this->caliSchedPtr = ptr;
}
void CalendarManager::exportCalendarCSV()
{
if(CSV_Exporter::exportCalendar(this->caliSchedPtr))
{
QMessageBox msgBox;
msgBox.setText("
Exported Successfuly!
HaazZaA!!");
msgBox.exec();
}else
{
QMessageBox msgBox;
msgBox.setIcon(QMessageBox::Critical);
msgBox.setText("Something went wrong...
Maybe: - You Canceled
- Unable to save the File - try again
"
"In case of a serious problem, please file a bug report.
thank you. OpenJCE teem");
msgBox.exec();
}
}
void CalendarManager::setCalendar(std::string html)
{
caliSchedPtr->setPage(html);
}