StorageChangeNotifierPlugin.h
#ifndef STORAGECHANGENOTIFIERPLUGIN_H
#define STORAGECHANGENOTIFIERPLUGIN_H
#include <QObject>
#include <QString>
namespace Buteo {
class StorageChangeNotifierPlugin : public QObject
{
Q_OBJECT
public:
StorageChangeNotifierPlugin(const QString &aStorageName):
iStorageName(aStorageName) {}
virtual ~StorageChangeNotifierPlugin() {}
virtual QString name() const = 0;
virtual bool hasChanges() const = 0;
virtual void changesReceived() = 0;
virtual void enable() = 0;
virtual void disable(bool disableAfterNextChange = false) = 0;
Q_SIGNALS:
void storageChange();
protected:
QString iStorageName;
};
}
#endif
Buteo::StorageChangeNotifierPlugin::~StorageChangeNotifierPlugin
virtual ~StorageChangeNotifierPlugin()
destructor
Definition StorageChangeNotifierPlugin.h:27
Buteo::StorageChangeNotifierPlugin::changesReceived
virtual void changesReceived()=0
Buteo::StorageChangeNotifierPlugin::hasChanges
virtual bool hasChanges() const =0
Check if this storage has changes since the last time it was asked for the same.
Buteo::StorageChangeNotifierPlugin::disable
virtual void disable(bool disableAfterNextChange=false)=0
Disable listening to storage changes.
Buteo::StorageChangeNotifierPlugin::name
virtual QString name() const =0
the name should be a well-known name which buteo sync-fw knows about as a storage that could be synce...
Buteo::StorageChangeNotifierPlugin::StorageChangeNotifierPlugin
StorageChangeNotifierPlugin(const QString &aStorageName)
constructor
Definition StorageChangeNotifierPlugin.h:22
Buteo::StorageChangeNotifierPlugin::storageChange
void storageChange()
emit this signal when there's a change in this storage. It's upto the plug-in when and how frequently...
Buteo::StorageChangeNotifierPlugin::enable
virtual void enable()=0
Enable listening to storage changes.