19 #ifndef LIB_QUENTIER_SYNCHRONIZATION_SYNCHRONIZATION_MANAGER_H 20 #define LIB_QUENTIER_SYNCHRONIZATION_SYNCHRONIZATION_MANAGER_H 22 #include <quentier/synchronization/IAuthenticationManager.h> 23 #include <quentier/types/Account.h> 24 #include <quentier/types/ErrorString.h> 25 #include <quentier/types/LinkedNotebook.h> 26 #include <quentier/utility/Linkage.h> 27 #include <quentier/utility/Macros.h> 32 QT_FORWARD_DECLARE_CLASS(LocalStorageManagerAsync)
33 QT_FORWARD_DECLARE_CLASS(SynchronizationManagerPrivate)
67 bool downloadNoteThumbnailsOption()
const;
80 void setAccount(
Account account);
107 void revokeAuthentication(
const qevercloud::UserID userId);
118 void setDownloadNoteThumbnails(
bool flag);
126 void setDownloadInkNoteImages(
bool flag);
141 void setInkNoteImagesStoragePath(QString path);
166 void finished(
Account account);
174 void authenticationRevoked(
bool success,
ErrorString errorDescription,
175 qevercloud::UserID userId);
184 void authenticationFinished(
bool success,
ErrorString errorDescription,
190 void remoteToLocalSyncStopped();
195 void sendLocalChangesStopped();
205 void willRepeatRemoteToLocalSyncAfterSendingChanges();
215 void detectedConflictDuringLocalChangesSending();
223 void rateLimitExceeded(qint32 secondsToWait);
229 void remoteToLocalSyncDone();
242 void syncChunksDownloadProgress(qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn);
248 void syncChunksDownloaded();
264 void linkedNotebookSyncChunksDownloadProgress(qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn,
271 void linkedNotebooksSyncChunksDownloaded();
278 void notesDownloadProgress(quint32 notesDownloaded, quint32 totalNotesToDownload);
285 void linkedNotebooksNotesDownloadProgress(quint32 notesDownloaded, quint32 totalNotesToDownload);
295 void resourcesDownloadProgress(quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
305 void linkedNotebooksResourcesDownloadProgress(quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
311 void preparedDirtyObjectsForSending();
317 void preparedLinkedNotebooksDirtyObjectsForSending();
323 void setAccountDone(
Account account);
328 void setDownloadNoteThumbnailsDone(
bool flag);
333 void setDownloadInkNoteImagesDone(
bool flag);
338 void setInkNoteImagesStoragePathDone(QString path);
344 SynchronizationManagerPrivate * d_ptr;
350 #endif // LIB_QUENTIER_SYNCHRONIZATION_SYNCHRONIZATION_MANAGER_H Definition: LinkedNotebook.h:36
The SynchronizationManager class encapsulates methods and signals & slots required to perform the ful...
Definition: SynchronizationManager.h:40
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:38
Definition: LocalStorageManagerAsync.h:39
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:24
Definition: IAuthenticationManager.h:37