mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
33 lines
412 B
C
33 lines
412 B
C
|
#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
|