update to new contact api, stubs only
This commit is contained in:
@@ -70,11 +70,25 @@ bool IRCClientContactModel::addContact(Contact4 c) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// irc provides invites
|
||||||
bool IRCClientContactModel::acceptRequest(Contact4 c, std::string_view self_name, std::string_view password) {
|
bool IRCClientContactModel::acceptRequest(Contact4 c, std::string_view self_name, std::string_view password) {
|
||||||
|
// TODO: implement
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IRCClientContactModel::leave(Contact4 c, std::string_view reason) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -12,8 +12,6 @@
|
|||||||
#include <queue>
|
#include <queue>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include <iostream> // tmp
|
|
||||||
|
|
||||||
class IRCClientContactModel : public IRCClientEventI, public ContactModel4I {
|
class IRCClientContactModel : public IRCClientEventI, public ContactModel4I {
|
||||||
ContactStore4I& _cs;
|
ContactStore4I& _cs;
|
||||||
ConfigModelI& _conf;
|
ConfigModelI& _conf;
|
||||||
@@ -45,6 +43,8 @@ class IRCClientContactModel : public IRCClientEventI, public ContactModel4I {
|
|||||||
bool addContact(Contact4 c) override;
|
bool addContact(Contact4 c) override;
|
||||||
bool acceptRequest(Contact4 c, std::string_view self_name, std::string_view password) 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 leave(Contact4 c, std::string_view reason) override;
|
||||||
|
bool invite(Contact4 c, Contact4 to) override;
|
||||||
|
bool canInvite(Contact4 c, Contact4 to) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// just the hash algo
|
// just the hash algo
|
||||||
|
Reference in New Issue
Block a user