Commit 70c0ff76 authored by camilo higuita's avatar camilo higuita

add the syncer middle amn to hanlde offline and online notes

parent c45f1713
......@@ -43,6 +43,7 @@ set(buho_SRCS
src/models/notes/notes.cpp
src/models/links/links.cpp
src/syncing/nextnote.cpp
src/syncing/syncer.cpp
)
set(buho_HDRS
......@@ -55,6 +56,7 @@ set(buho_HDRS
src/models/links/links.h
src/syncing/nextnote.h
src/syncing/abstractnotessyncer.h
src/syncing/syncer.h
)
set(buho_ASSETS
......
......@@ -41,6 +41,7 @@ SOURCES += \
src/db/db.cpp \
src/buho.cpp \
src/linker.cpp \
src/syncing/syncer.cpp \
src/utils/htmlparser.cpp \
src/models/notes/notes.cpp \
src/models/links/links.cpp \
......@@ -68,6 +69,7 @@ DISTFILES += \
HEADERS += \
src/db/db.h \
src/buho.h \
src/syncing/syncer.h \
src/utils/owl.h \
src/linker.h \
src/utils/htmlparser.h \
......
#include "syncer.h"
Syncer::Syncer(QObject *parent) : QObject(parent)
{
}
#ifndef SYNCER_H
#define SYNCER_H
#include <QObject>
/**
* @brief The Syncer class
* This interfaces between local storage and cloud
* Its work is to try and keep thing synced and do the background work on updating notes
* from local to cloud and viceversa.
* This interface should be used to handle the whol offline and online work,
* instead of manually inserting to the db or the cloud providers
*/
class Syncer : public QObject
{
Q_OBJECT
public:
explicit Syncer(QObject *parent = nullptr);
signals:
public slots:
};
#endif // SYNCER_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment