~aleteoryx/muditaos

ref: 4942167c0a410a504edde0347e2484fbd3b9bc10 muditaos/module-apps/application-clock/ApplicationClock.hpp -rw-r--r-- 1.0 KiB
4942167c — Tomas Rogala [EGD-3713] Rework repeat option data flow 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#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);

        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 */