update to new contact api, stubs only

This commit is contained in:
Green Sky
2025-08-04 11:42:54 +02:00
parent 4fea965521
commit 84f12f6c0b
2 changed files with 16 additions and 2 deletions

View File

@@ -70,11 +70,25 @@ bool IRCClientContactModel::addContact(Contact4 c) {
return false;
}
// irc provides invites
bool IRCClientContactModel::acceptRequest(Contact4 c, std::string_view self_name, std::string_view password) {
// TODO: implement
return false;
}
bool IRCClientContactModel::leave(Contact4 c, std::string_view reason) {
// TODO: implement
return false;
}
// irc provides invite
bool IRCClientContactModel::invite(Contact4 c, Contact4 to) {
// TODO: implement
return false;
}
bool IRCClientContactModel::canInvite(Contact4 c, Contact4 to) {
// TODO: implement
return false;
}

View File

@@ -12,8 +12,6 @@
#include <queue>
#include <cstdint>
#include <iostream> // tmp
class IRCClientContactModel : public IRCClientEventI, public ContactModel4I {
ContactStore4I& _cs;
ConfigModelI& _conf;
@@ -45,6 +43,8 @@ class IRCClientContactModel : public IRCClientEventI, public ContactModel4I {
bool addContact(Contact4 c) override;
bool acceptRequest(Contact4 c, std::string_view self_name, std::string_view password) override;
bool leave(Contact4 c, std::string_view reason) override;
bool invite(Contact4 c, Contact4 to) override;
bool canInvite(Contact4 c, Contact4 to) override;
private:
// just the hash algo