Ring Daemon 16.0.0
|
This abstract class is an API we need to implement from plugin side. More...
#include <preferencehandler.h>
Public Member Functions | |
virtual std::map< std::string, std::string > | getHandlerDetails ()=0 |
Returns a map with handler's name, iconPath, and pluginId. | |
std::string | id () const |
Returns the dataPath of the plugin that created this PreferenceHandler. | |
virtual bool | preferenceMapHasKey (const std::string &key)=0 |
If a preference can be stored as per accountId, this function should return True. | |
virtual void | resetPreferenceAttributes (const std::string &accountId)=0 |
Reset stored preferences for given accountId. | |
virtual void | setId (const std::string &id) final |
Should be called by the PreferenceHandler creator to set the plugins id_ variable. | |
virtual void | setPreferenceAttribute (const std::string &accountId, const std::string &key, const std::string &value)=0 |
If a preference can have different values depending on accountId, those values should be stored in the plugin through this function. | |
virtual | ~PreferenceHandler () |
This abstract class is an API we need to implement from plugin side.
In other words, a plugin functionality that handles preferences per account must start from the implementation of this class.
Definition at line 29 of file preferencehandler.h.
|
inlinevirtual |
Definition at line 32 of file preferencehandler.h.
|
pure virtual |
Returns a map with handler's name, iconPath, and pluginId.
|
inline |
Returns the dataPath of the plugin that created this PreferenceHandler.
Definition at line 67 of file preferencehandler.h.
Referenced by setId().
If a preference can be stored as per accountId, this function should return True.
key |
|
pure virtual |
Reset stored preferences for given accountId.
accountId |
Should be called by the PreferenceHandler creator to set the plugins id_ variable.
Definition at line 72 of file preferencehandler.h.
References id().
|
pure virtual |
If a preference can have different values depending on accountId, those values should be stored in the plugin through this function.
accountId | |
key | |
value |