summaryrefslogtreecommitdiff
path: root/include/erebos/contact.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-05-06 17:09:32 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-05-06 18:54:24 +0200
commit25a1ba71e3cf4250489291f688423963aa603498 (patch)
treefb1e23060b810237316f4cde6524c0b1a66d5d0e /include/erebos/contact.h
parent07f61b1ad6363cd471b7dab3f94c3160636fd6a0 (diff)
Server and services configuration using separate objects
Diffstat (limited to 'include/erebos/contact.h')
-rw-r--r--include/erebos/contact.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/erebos/contact.h b/include/erebos/contact.h
index 24a4c89..963e22a 100644
--- a/include/erebos/contact.h
+++ b/include/erebos/contact.h
@@ -73,20 +73,18 @@ struct ContactAccepted;
class ContactService : public PairingService<ContactAccepted>
{
public:
- ContactService();
+ ContactService(Config &&, const Server &);
virtual ~ContactService();
UUID uuid() const override;
- void serverStarted(const class Server &) override;
-
void request(const Peer &);
protected:
virtual Stored<ContactAccepted> handlePairingComplete(const Peer &) override;
virtual void handlePairingResult(Context &, Stored<ContactAccepted>) override;
- const class Server * server;
+ const Server & server;
};
template<class T> class Signed;