~aleteoryx/muditaos

ref: 6665a43d2b901b89809c4f18338d8ea6c0b08df7 muditaos/module-services/service-eink/EinkSentinel.hpp -rw-r--r-- 605 bytes
6665a43d — Lefucjusz [BH-1780] Fix uncaught std::filesystem::file_size exception 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include <Service/Service.hpp>
#include <SystemManager/CpuSentinel.hpp>

namespace service::eink
{
    class EinkSentinel : public sys::CpuSentinel
    {
      public:
        EinkSentinel(std::string name, sys::Service *service);
        void HoldMinimumFrequency();

      private:
        bool isScreenLocked{true};
        sys::MessagePointer handleLockedPhone();
        sys::MessagePointer handleUnlockedPhone();
    };
} // namespace service::eink