summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-05-23 22:11:42 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-05-23 22:32:01 +0200
commit15ad6ae7bd64d8d7319d75dbbb0827addd22fef2 (patch)
treec5f7ac828f4c1d5f51c461ad332b83e570ce3b26 /include
parentfce349f8f1c53d3e205a8d86b79784fdfd2b7b7a (diff)
Message sending to identity or contact
Diffstat (limited to 'include')
-rw-r--r--include/erebos/message.h3
-rw-r--r--include/erebos/network.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/erebos/message.h b/include/erebos/message.h
index 497b536..011007a 100644
--- a/include/erebos/message.h
+++ b/include/erebos/message.h
@@ -12,6 +12,7 @@ namespace erebos {
using std::unique_ptr;
+class Contact;
class Identity;
class DirectMessage
@@ -94,6 +95,8 @@ public:
DirectMessageThread thread(const Identity &);
+ DirectMessage send(const Identity &, const std::string &);
+ DirectMessage send(const Contact &, const std::string &);
DirectMessage send(const Peer &, const std::string &);
private:
diff --git a/include/erebos/network.h b/include/erebos/network.h
index 66edfa4..6a3112a 100644
--- a/include/erebos/network.h
+++ b/include/erebos/network.h
@@ -34,6 +34,7 @@ public:
template<class S> S & svc();
class PeerList & peerList() const;
+ optional<erebos::Peer> peer(const Identity &) const;
void addPeer(const string & node) const;
void addPeer(const string & node, const string & service) const;