1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-04-20 11:28:40 +02:00

56 lines
1.0 KiB
C
Raw Normal View History

2016-12-11 16:09:39 +00:00
#ifndef APPLICATION_H
#define APPLICATION_H
#include <stable.h>
#include "database.h"
#include "services/folderservice.h"
2016-12-12 22:33:33 +00:00
#include "services/noteservice.h"
2016-12-11 16:09:39 +00:00
#include "models/foldermodel.h"
2016-12-12 22:33:33 +00:00
#include "models/notecollection.h"
#include "services/notecache.h"
#include "models/notemodel.h"
2016-12-14 21:50:26 +00:00
#include "models/qmlnote.h"
2016-12-27 21:25:07 +01:00
#include "webapi.h"
#include "synchronizer.h"
2016-12-11 16:09:39 +00:00
namespace jop {
class Application : public QGuiApplication {
Q_OBJECT
public:
Application(int &argc, char **argv);
private:
QQuickView view_;
Database db_;
FolderService folderService_;
2016-12-12 22:33:33 +00:00
NoteCollection noteCollection_;
NoteService noteService_;
2016-12-11 16:09:39 +00:00
FolderModel folderModel_;
2016-12-12 22:33:33 +00:00
NoteModel noteModel_;
2016-12-23 19:04:26 +01:00
QString selectedFolderId() const;
QString selectedNoteId() const;
2016-12-12 22:33:33 +00:00
NoteCache noteCache_;
2016-12-14 21:50:26 +00:00
QmlNote selectedQmlNote_;
2016-12-27 21:25:07 +01:00
WebApi api_;
Synchronizer synchronizer_;
void afterSessionInitialization();
2016-12-11 16:09:39 +00:00
public slots:
void view_currentFolderChanged();
2016-12-14 21:50:26 +00:00
void view_currentNoteChanged();
2016-12-27 21:25:07 +01:00
void api_requestDone(const QJsonObject& response, const QString& tag);
2016-12-11 16:09:39 +00:00
};
}
#endif // APPLICATION_H