mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
33 lines
412 B
C++
Executable File
33 lines
412 B
C++
Executable File
#ifndef SYNCHRONIZER_H
|
|
#define SYNCHRONIZER_H
|
|
|
|
#include <stable.h>
|
|
#include "webapi.h"
|
|
#include "database.h"
|
|
|
|
namespace jop {
|
|
|
|
class Synchronizer : public QObject {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
Synchronizer(WebApi &api, Database& database);
|
|
void start();
|
|
|
|
private:
|
|
|
|
WebApi& api_;
|
|
Database& db_;
|
|
|
|
public slots:
|
|
|
|
void api_requestDone(const QJsonObject& response, const QString& tag);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // SYNCHRONIZER_H
|