12 #ifndef EMCORE_CONTACT_MANAGER_H 13 #define EMCORE_CONTACT_MANAGER_H 23 class EMContactListener;
48 virtual std::vector<std::string> allContacts(
EMError &error) = 0;
55 virtual std::vector<std::string> getContactsFromServer(
EMError &error) = 0;
62 virtual std::vector<std::string> getContactsFromDB(
EMError &error) = 0;
70 virtual void inviteContact(
const std::string& username,
const std::string& message,
EMError &error) = 0;
78 virtual void deleteContact(
const std::string& username,
EMError &error) = 0;
85 virtual void acceptInvitation(
const std::string& username,
EMError &error) = 0;
92 virtual void declineInvitation(
const std::string& username,
EMError &error) = 0;
101 virtual std::vector<std::string> blacklist(
EMError &error) = 0;
111 virtual std::vector<std::string> getBlackListFromServer(
EMError &error) = 0;
118 virtual std::vector<std::string> getBlackListFromDB(
EMError &error) = 0;
128 virtual void saveBlackList(
const std::vector<std::string> &blacklist,
EMError &error) = 0;
138 virtual void addToBlackList(std::string username,
bool both,
EMError &error) = 0;
147 virtual void removeFromBlackList(std::string username,
EMError &error) = 0;
Definition: emattributevalue.h:28