diff options
Diffstat (limited to 'include/erebos/message.h')
-rw-r--r-- | include/erebos/message.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/erebos/message.h b/include/erebos/message.h index c94e8c3..66d221c 100644 --- a/include/erebos/message.h +++ b/include/erebos/message.h @@ -4,11 +4,14 @@ #include <chrono> #include <functional> +#include <memory> #include <optional> #include <string> namespace erebos { +using std::unique_ptr; + class Identity; class DirectMessage @@ -78,13 +81,14 @@ public: void handle(Context &) const override; typedef std::function<void(const DirectMessageThread &, ssize_t, ssize_t)> ThreadWatcher; - static void onUpdate(ThreadWatcher); - static DirectMessageThread thread(const Identity &); + void onUpdate(ThreadWatcher); + DirectMessageThread thread(const Identity &); - static DirectMessage send(const Identity &, const Peer &, const std::string &); + DirectMessage send(const Identity &, const Peer &, const std::string &); private: struct Priv; + unique_ptr<Priv> p; }; } |