Ring Daemon 16.0.0
|
This abstract class is an API we need to implement from plugin side. More...
#include <chathandler.h>
Public Member Functions | |
virtual void | detach (chatSubjectPtr subject)=0 |
Should detach a chat subject (Observable) and the plugin data process (Observer). | |
virtual std::map< std::string, std::string > | getChatHandlerDetails ()=0 |
Returns a map with handler's name, iconPath, and pluginId. | |
std::string | id () const |
Returns the dataPath of the plugin that created this ChatHandler. | |
virtual void | notifyChatSubject (std::pair< std::string, std::string > &subjectConnection, chatSubjectPtr subject)=0 |
Should attach a chat subject (Observable) and the plugin data process (Observer). | |
virtual bool | preferenceMapHasKey (const std::string &key)=0 |
If a preference can be changed without the need to reload the plugin, this function should return True. | |
virtual void | setId (const std::string &id) final |
Should be called by the ChatHandler creator to set the plugins id_ variable. | |
virtual void | setPreferenceAttribute (const std::string &key, const std::string &value)=0 |
If a preference can be changed without the need to reload the plugin, it should be done through this function. | |
virtual | ~ChatHandler () |
This abstract class is an API we need to implement from plugin side.
In other words, a plugin functionality that plays with messages, must start from the implementation of this class.
Definition at line 34 of file chathandler.h.
|
inlinevirtual |
Definition at line 37 of file chathandler.h.
|
pure virtual |
Should detach a chat subject (Observable) and the plugin data process (Observer).
subject | chat subject pointer |
|
pure virtual |
Returns a map with handler's name, iconPath, and pluginId.
|
inline |
Returns the dataPath of the plugin that created this ChatHandler.
Definition at line 78 of file chathandler.h.
Referenced by setId().
|
pure virtual |
Should attach a chat subject (Observable) and the plugin data process (Observer).
subjectConnection | accountId, peerId pair |
subject | chat Subject pointer |
If a preference can be changed without the need to reload the plugin, this function should return True.
key |
Should be called by the ChatHandler creator to set the plugins id_ variable.
Definition at line 83 of file chathandler.h.
References id().
|
pure virtual |
If a preference can be changed without the need to reload the plugin, it should be done through this function.
key | |
value |