PrivMX Endpoint v2.7.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:
20
26 static EventQueue getInstance();
27
34
41
47 std::optional<EventHolder> getEvent();
48
49private:
50 EventQueue() {};
51 EventQueue(std::shared_ptr<EventQueueImpl> impl) : _impl(impl) {};
52 std::shared_ptr<EventQueueImpl> _impl;
53};
54
55} // namespace core
56} // namespace endpoint
57} // namespace privmx
58
59#endif // _PRIVMXLIB_ENDPOINT_CORE_EVENTQUEUE_HPP_
Definition Events.hpp:80
Definition EventQueue.hpp:18
std::optional< EventHolder > getEvent()