mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-30 03:43:44 -04:00
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
/*
|
|
* @file ApplicationClock.hpp
|
|
* @author Robert Borzecki (robert.borzecki@mudita.com)
|
|
* @date 1 cze 2019
|
|
* @brief
|
|
* @copyright Copyright (C) 2019 mudita.com
|
|
* @details
|
|
*/
|
|
#ifndef MODULE_APPS_APPLICATION_CLOCK_APPLICATIONCLOCK_HPP_
|
|
#define MODULE_APPS_APPLICATION_CLOCK_APPLICATIONCLOCK_HPP_
|
|
|
|
#include "Application.hpp"
|
|
#include "Service/Message.hpp"
|
|
#include "gui/widgets/Label.hpp"
|
|
#include "gui/widgets/Image.hpp"
|
|
#include "gui/widgets/Progress.hpp"
|
|
|
|
|
|
namespace app {
|
|
|
|
/*
|
|
*
|
|
*/
|
|
class ApplicationClock: public Application {
|
|
AppTimer timerClock;
|
|
void timerClockCallback();
|
|
public:
|
|
ApplicationClock(std::string name, std::string parent = "", uint32_t stackDepth=4096,sys::ServicePriority priority=sys::ServicePriority::Idle);
|
|
virtual ~ApplicationClock();
|
|
|
|
sys::Message_t DataReceivedHandler(sys::DataMessage* msgl,sys::ResponseMessage* resp) override;
|
|
sys::ReturnCodes InitHandler() override;
|
|
sys::ReturnCodes DeinitHandler() override;
|
|
|
|
sys::ReturnCodes SwitchPowerModeHandler(const sys::ServicePowerMode mode) override final{return sys::ReturnCodes::Success;}
|
|
|
|
void createUserInterface() override;
|
|
void destroyUserInterface() override;
|
|
};
|
|
|
|
} /* namespace app */
|
|
|
|
#endif /* MODULE_APPS_APPLICATION_CLOCK_APPLICATIONCLOCK_HPP_ */
|