72 void cleanChatSubjects(
const std::string& accountId,
const std::string& peerId =
"");
82 const std::string& accountId,
83 const std::string& peerId,
93 const std::string& peerId);
110 const std::string&
value,
128 const std::string& accountId,
129 const std::string& peerId,
134 std::list<ChatHandlerPtr> chatHandlers_;
137 std::map<std::pair<std::string, std::string>, std::set<uintptr_t>> chatHandlerToggled_;
144 std::map<std::pair<std::string, std::string>,
chatSubjectPtr> chatSubjects_;
147 std::map<std::string, uintptr_t> handlersNameMap_ {};
This class provides the interface between loaded ChatHandlers and conversation messages.
std::vector< std::string > getChatHandlerStatus(const std::string &accountId, const std::string &peerId)
Returns a list of active ChatHandlers for a given accountId, peerId pair.
bool setPreference(const std::string &key, const std::string &value, const std::string &rootPath)
Sets a preference that may be changed while ChatHandler is active.
NON_COPYABLE(ChatServicesManager)
void publishMessage(pluginMessagePtr message)
Publishes every message sent or received in a conversation that has (or should have) an active ChatHa...
std::vector< std::string > getChatHandlers() const
List all ChatHandlers available.
void cleanChatSubjects(const std::string &accountId, const std::string &peerId="")
If an account is unregistered or a contact is erased, we clear all chat subjects related to that acco...
std::map< std::string, std::string > getChatHandlerDetails(const std::string &chatHandlerIdStr)
Gets details from ChatHandler implementation.
void toggleChatHandler(const std::string &chatHandlerId, const std::string &accountId, const std::string &peerId, const bool toggle)
Activates or deactivate a given ChatHandler to a given accountId, peerId pair.
This class manages plugin (un)loading.
std::unique_ptr< ChatHandler > ChatHandlerPtr
void emitSignal(Args... args)
std::map< std::pair< std::string, std::string >, std::map< std::string, bool > > ChatHandlerList
std::shared_ptr< JamiMessage > pluginMessagePtr
std::shared_ptr< PublishObservable< pluginMessagePtr > > chatSubjectPtr
Simple macro to hide class' copy constructor and assignment operator.