mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-20 13:04:21 -04:00
51 lines
1.4 KiB
C++
51 lines
1.4 KiB
C++
/*
|
|
* @file ApplicationCalendar.cpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 3 cze 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
|
|
#include <map>
|
|
#include "windows/CalendarMainWindow.hpp"
|
|
#include "ApplicationCalendar.hpp"
|
|
|
|
namespace app
|
|
{
|
|
|
|
ApplicationCalendar::ApplicationCalendar(std::string name,
|
|
std::string parent,
|
|
uint32_t stackDepth,
|
|
sys::ServicePriority priority)
|
|
: Application(name, parent, false, stackDepth, priority)
|
|
{}
|
|
|
|
sys::Message_t ApplicationCalendar::DataReceivedHandler(sys::DataMessage *msgl, sys::ResponseMessage *resp)
|
|
{
|
|
return Application::DataReceivedHandler(msgl);
|
|
}
|
|
|
|
sys::ReturnCodes ApplicationCalendar::InitHandler()
|
|
{
|
|
auto ret = Application::InitHandler();
|
|
createUserInterface();
|
|
return ret;
|
|
}
|
|
|
|
sys::ReturnCodes ApplicationCalendar::DeinitHandler()
|
|
{
|
|
return sys::ReturnCodes::Success;
|
|
}
|
|
|
|
void ApplicationCalendar::createUserInterface()
|
|
{
|
|
windows.insert(std::pair<std::string, gui::AppWindow *>(
|
|
gui::name::window::main_window, new CalendarMainWindow(this, gui::name::window::main_window)));
|
|
}
|
|
|
|
void ApplicationCalendar::destroyUserInterface()
|
|
{}
|
|
|
|
} /* namespace app */
|