2016-12-31 10:48:18 +01:00
|
|
|
#ifndef DISPATCHER_H
|
|
|
|
#define DISPATCHER_H
|
|
|
|
|
2017-01-05 18:59:01 +01:00
|
|
|
#include <stable.h>
|
|
|
|
|
2016-12-31 10:48:18 +01:00
|
|
|
namespace jop {
|
|
|
|
|
|
|
|
class Dispatcher : public QObject {
|
|
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
Dispatcher();
|
2017-01-05 18:59:01 +01:00
|
|
|
void emitFolderCreated(const QString& folderId);
|
|
|
|
void emitFolderUpdated(const QString& folderId);
|
|
|
|
void emitFolderDeleted(const QString& folderId);
|
2016-12-31 10:48:18 +01:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
2017-01-05 18:59:01 +01:00
|
|
|
void folderCreated(const QString& folderId);
|
|
|
|
void folderUpdated(const QString& folderId);
|
|
|
|
void folderDeleted(const QString& folderId);
|
2016-12-31 10:48:18 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
Dispatcher& dispatcher();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // DISPATCHER_H
|