PrivMX Endpoint v2.8.0
Loading...
Searching...
No Matches
EventQueue.hpp
1#ifndef _PRIVMXLIB_ENDPOINT_CORE_EVENTQUEUE_HPP_
2#define _PRIVMXLIB_ENDPOINT_CORE_EVENTQUEUE_HPP_
3
4#include <memory>
5#include <optional>
6
7#include "privmx/endpoint/core/Events.hpp"
8
9namespace privmx {
10namespace endpoint {
11namespace core {
12
13class EventQueueImpl;
14
18class EventQueue {
19public:
25 static EventQueue getInstance();
26
33
40
46 std::optional<EventHolder> getEvent();
47
48private:
49 EventQueue() {};
50 EventQueue(std::shared_ptr<EventQueueImpl> impl) : _impl(impl) {};
51 std::shared_ptr<EventQueueImpl> _impl;
52};
53
54} // namespace core
55} // namespace endpoint
56} // namespace privmx
57
58#endif // _PRIVMXLIB_ENDPOINT_CORE_EVENTQUEUE_HPP_
Definition Events.hpp:78
Definition EventQueue.hpp:18
std::optional< EventHolder > getEvent()