You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-03 23:50:33 +02:00
53 lines
1.2 KiB
C++
Executable File
53 lines
1.2 KiB
C++
Executable File
#ifndef DISPATCHER_H
|
|
#define DISPATCHER_H
|
|
|
|
#include <stable.h>
|
|
|
|
namespace jop {
|
|
|
|
class Dispatcher : public QObject {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
Dispatcher();
|
|
|
|
public slots:
|
|
|
|
void emitFolderCreated(const QString& folderId);
|
|
void emitFolderUpdated(const QString& folderId);
|
|
void emitFolderDeleted(const QString& folderId);
|
|
void emitAllFoldersDeleted();
|
|
void emitNoteCreated(const QString& noteId);
|
|
void emitNoteUpdated(const QString& noteId);
|
|
void emitNoteDeleted(const QString& noteId);
|
|
void emitLoginClicked(const QString& domain, const QString& email, const QString &password);
|
|
void emitLogoutClicked();
|
|
void emitLoginStarted();
|
|
void emitLoginFailed();
|
|
void emitLoginSuccess();
|
|
|
|
signals:
|
|
|
|
void folderCreated(const QString& folderId);
|
|
void folderUpdated(const QString& folderId);
|
|
void folderDeleted(const QString& folderId);
|
|
void allFoldersDeleted();
|
|
void noteCreated(const QString& noteId);
|
|
void noteUpdated(const QString& noteId);
|
|
void noteDeleted(const QString& noteId);
|
|
void loginClicked(const QString& domain, const QString& email, const QString& password);
|
|
void logoutClicked();
|
|
void loginStarted();
|
|
void loginFailed();
|
|
void loginSuccess();
|
|
|
|
};
|
|
|
|
Dispatcher& dispatcher();
|
|
|
|
}
|
|
|
|
#endif // DISPATCHER_H
|