Notifies about changes in storages that it's asked to monitor.
More...
#include <StorageChangeNotifier.h>
Notifies about changes in storages that it's asked to monitor.
void StorageChangeNotifier::checkForChanges |
( |
| ) |
|
Manually check and notify changes in storage
void StorageChangeNotifier::loadNotifiers |
( |
PluginManager * |
aPluginManager, |
|
|
const QStringList & |
aStorageNames |
|
) |
| |
load all implemented storage change notifier plug-in's
- Parameters
-
aPluginManager | used to load SOC storage plugins |
aStorageNames | list of storages we wan't to monitor |
bool StorageChangeNotifier::startListen |
( |
QStringList & |
aFailedStorages | ) |
|
Call this to start monitoring changes in storages
- Parameters
-
list | of storage names which can't be monitored |
- Returns
- true if we can monitor all storages requested for false otherwise
void StorageChangeNotifier::stopListen |
( |
bool |
disableAfterNextChange = false | ) |
|
call this to ignore taking action on storage changes. Whether there was a change can be determined by calling hasChanges() on the notifier plug-in and startListen() can be called again
- Parameters
-
disableAfterNextChange | if set to true, we stop listening to change notifiers after they've notified about the next change. This is useful for eg to note that a change did occur during a d2d sync (during which we disable SOC), but we don't want to get notified for each batch change, the one notification lets itself be known to us when we call checkForChanges() |
void Buteo::StorageChangeNotifier::storageChange |
( |
QString |
aStorageName | ) |
|
|
signal |
emit this signal if a storage changed
- Parameters
-
storageName | name of the storage that changed |
The documentation for this class was generated from the following files: