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> 33 QT_FORWARD_DECLARE_CLASS(IKeychainService)
34 QT_FORWARD_DECLARE_CLASS(INoteStore)
35 QT_FORWARD_DECLARE_CLASS(IUserStore)
36 QT_FORWARD_DECLARE_CLASS(LocalStorageManagerAsync)
37 QT_FORWARD_DECLARE_CLASS(SynchronizationManagerDependencyInjector)
38 QT_FORWARD_DECLARE_CLASS(SynchronizationManagerPrivate)
86 bool downloadNoteThumbnailsOption()
const;
103 void setAccount(
Account account);
126 void authenticateCurrentAccount();
145 void revokeAuthentication(
const qevercloud::UserID userId);
158 void setDownloadNoteThumbnails(
bool flag);
168 void setDownloadInkNoteImages(
bool flag);
187 void setInkNoteImagesStoragePath(QString path);
233 Account account,
bool somethingDownloaded,
bool somethingSent);
246 void authenticationRevoked(
247 bool success,
ErrorString errorDescription, qevercloud::UserID userId);
262 void authenticationFinished(
269 void remoteToLocalSyncStopped();
275 void sendLocalChangesStopped();
287 void willRepeatRemoteToLocalSyncAfterSendingChanges();
300 void detectedConflictDuringLocalChangesSending();
311 void rateLimitExceeded(qint32 secondsToWait);
326 void remoteToLocalSyncDone(
bool somethingDownloaded);
343 void syncChunksDownloadProgress(
344 qint32 highestDownloadedUsn, qint32 highestServerUsn,
345 qint32 lastPreviousUsn);
351 void syncChunksDownloaded();
376 void linkedNotebookSyncChunksDownloadProgress(
377 qint32 highestDownloadedUsn, qint32 highestServerUsn,
384 void linkedNotebooksSyncChunksDownloaded();
394 void notesDownloadProgress(
395 quint32 notesDownloaded, quint32 totalNotesToDownload);
405 void linkedNotebooksNotesDownloadProgress(
406 quint32 notesDownloaded, quint32 totalNotesToDownload);
418 void resourcesDownloadProgress(
419 quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
431 void linkedNotebooksResourcesDownloadProgress(
432 quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
439 void preparedDirtyObjectsForSending();
446 void preparedLinkedNotebooksDirtyObjectsForSending();
453 void setAccountDone(
Account account);
459 void setDownloadNoteThumbnailsDone(
bool flag);
465 void setDownloadInkNoteImagesDone(
bool flag);
471 void setInkNoteImagesStoragePathDone(QString path);
477 SynchronizationManagerPrivate * d_ptr;
483 #endif // LIB_QUENTIER_SYNCHRONIZATION_SYNCHRONIZATION_MANAGER_H Definition: SynchronizationManagerDependencyInjector.h:30
Definition: LinkedNotebook.h:32
The SynchronizationManager class encapsulates methods and signals & slots required to perform the ful...
Definition: SynchronizationManager.h:46
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:43
Definition: LocalStorageManagerAsync.h:44
Definition: DecryptedTextManager.h:26
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:39
Definition: IAuthenticationManager.h:36