1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-03 23:50:33 +02:00
Files
joplin/QtClient/JoplinQtClient/dispatcher.h

45 lines
902 B
C
Raw Normal View History

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-11 00:28:51 +01:00
public slots:
2017-01-05 18:59:01 +01:00
void emitFolderCreated(const QString& folderId);
void emitFolderUpdated(const QString& folderId);
void emitFolderDeleted(const QString& folderId);
2017-01-11 00:28:51 +01:00
void emitLoginClicked(const QString& domain, const QString& email, const QString &password);
void emitLogoutClicked();
2017-01-11 00:28:51 +01:00
void emitLoginStarted();
void emitLoginFailed();
void emitLoginSuccess();
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);
2017-01-11 00:28:51 +01:00
void loginClicked(const QString& domain, const QString& email, const QString& password);
void logoutClicked();
2017-01-11 00:28:51 +01:00
void loginStarted();
void loginFailed();
void loginSuccess();
2016-12-31 10:48:18 +01:00
};
Dispatcher& dispatcher();
}
#endif // DISPATCHER_H