~aleteoryx/muditaos

ref: 0f3fb7c1528b8294edc1c85b82795bd2e03fe79a muditaos/module-services/service-desktop/endpoints/developerMode/event/ATRequest.hpp -rw-r--r-- 674 bytes
0f3fb7c1 — Michał Kamoń [EGD-6736] Add app's state dependent autoLock mechanism 4 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
#pragma once

#include <chrono>
#include <service-desktop/DeveloperModeMessage.hpp>

namespace sdesktop::developerMode
{
    class ATResponseEvent : public Event
    {
        std::string command;
        std::chrono::milliseconds timeout;

      public:
        explicit ATResponseEvent(std::string command, std::chrono::milliseconds timeout);

        void setResponse(const std::vector<std::string> &response);

        [[nodiscard]] const auto &getCommand() const noexcept
        {
            return command;
        }
        [[nodiscard]] auto getTimeout() const noexcept
        {
            return timeout;
        }
    };
} // namespace sdesktop::developerMode