Buteo Synchronization Framework
|
Manages plugins. More...
#include <PluginManager.h>
Public Member Functions | |
PluginManager (const QString &aPluginPath) | |
Constructor. | |
~PluginManager () | |
Destructor. | |
StorageChangeNotifierPlugin * | createStorageChangeNotifier (const QString &aStorageName) |
Creates a new storage change notifier plugin for the storage aStoragName. | |
void | destroyStorageChangeNotifier (StorageChangeNotifierPlugin *aPlugin) |
Destroys a storage change notifier plugin instance. | |
StoragePlugin * | createStorage (const QString &aPluginName) |
Creates a new storage plugin instance. | |
void | destroyStorage (StoragePlugin *aPlugin) |
Destroys a storage plugin instance. | |
ClientPlugin * | createClient (const QString &aPluginName, const SyncProfile &aProfile, PluginCbInterface *aCbInterface) |
Creates a new client plugin instance. | |
void | destroyClient (ClientPlugin *aPlugin) |
Destroys a client plugin instance. | |
ServerPlugin * | createServer (const QString &aPluginName, const Profile &aProfile, PluginCbInterface *aCbInterface) |
Creates a new server plugin instance. | |
void | destroyServer (ServerPlugin *aPlugin) |
Destroys a server plugin. | |
Protected Slots | |
void | onProcessFinished (int exitCode, QProcess::ExitStatus exitStatus) |
Manages plugins.
Is responsible for creating and destroying storage, server and client plugins.
PluginManager::PluginManager | ( | const QString & | aPluginPath | ) |
Constructor.
aPluginPath | Path where plugins are stored |
PluginManager::~PluginManager | ( | ) |
Destructor.
ClientPlugin * PluginManager::createClient | ( | const QString & | aPluginName, |
const SyncProfile & | aProfile, | ||
PluginCbInterface * | aCbInterface | ||
) |
Creates a new client plugin instance.
aPluginName | Name of the plugin |
aProfile | Sync profile |
aCbInterface | Callback interface |
ServerPlugin * PluginManager::createServer | ( | const QString & | aPluginName, |
const Profile & | aProfile, | ||
PluginCbInterface * | aCbInterface | ||
) |
Creates a new server plugin instance.
aPluginName | Name of the plugin |
aProfile | Server profile |
aCbInterface | Callback interface |
StoragePlugin * PluginManager::createStorage | ( | const QString & | aPluginName | ) |
Creates a new storage plugin instance.
aPluginName | Name of the plugin |
StorageChangeNotifierPlugin * PluginManager::createStorageChangeNotifier | ( | const QString & | aStorageName | ) |
Creates a new storage change notifier plugin for the storage aStoragName.
aStorageName | well-known name of the storage |
void PluginManager::destroyClient | ( | ClientPlugin * | aPlugin | ) |
Destroys a client plugin instance.
aPlugin | Plugin to destroy |
void PluginManager::destroyServer | ( | ServerPlugin * | aPlugin | ) |
Destroys a server plugin.
aPlugin | Plugin to destroy |
void PluginManager::destroyStorage | ( | StoragePlugin * | aPlugin | ) |
Destroys a storage plugin instance.
aPlugin | Plugin to destroy |
void PluginManager::destroyStorageChangeNotifier | ( | StorageChangeNotifierPlugin * | aPlugin | ) |
Destroys a storage change notifier plugin instance.
aStorageName | well-known storage name of the plugin to be destroyed |