19 #ifndef LIB_QUENTIER_SYNCHRONIZATION_SYNCHRONIZATION_MANAGER_H 20 #define LIB_QUENTIER_SYNCHRONIZATION_SYNCHRONIZATION_MANAGER_H 22 #include <quentier/synchronization/ForwardDeclarations.h> 23 #include <quentier/synchronization/ISyncChunksDataCounters.h> 24 #include <quentier/types/Account.h> 25 #include <quentier/types/ErrorString.h> 26 #include <quentier/types/LinkedNotebook.h> 27 #include <quentier/utility/ForwardDeclarations.h> 28 #include <quentier/utility/Linkage.h> 34 QT_FORWARD_DECLARE_CLASS(LocalStorageManagerAsync)
35 QT_FORWARD_DECLARE_CLASS(SynchronizationManagerPrivate)
85 QObject * parent =
nullptr, INoteStorePtr pNoteStore = {},
86 IUserStorePtr pUserStore = {},
87 IKeychainServicePtr pKeychainService = {},
88 ISyncStateStoragePtr pSyncStateStorage = {});
104 bool downloadNoteThumbnailsOption()
const;
121 void setAccount(
Account account);
144 void authenticateCurrentAccount();
163 void revokeAuthentication(
const qevercloud::UserID userId);
176 void setDownloadNoteThumbnails(
bool flag);
186 void setDownloadInkNoteImages(
bool flag);
205 void setInkNoteImagesStoragePath(QString path);
251 Account account,
bool somethingDownloaded,
bool somethingSent);
264 void authenticationRevoked(
265 bool success,
ErrorString errorDescription, qevercloud::UserID userId);
280 void authenticationFinished(
287 void remoteToLocalSyncStopped();
293 void sendLocalChangesStopped();
305 void willRepeatRemoteToLocalSyncAfterSendingChanges();
318 void detectedConflictDuringLocalChangesSending();
329 void rateLimitExceeded(qint32 secondsToWait);
344 void remoteToLocalSyncDone(
bool somethingDownloaded);
361 void syncChunksDownloadProgress(
362 qint32 highestDownloadedUsn, qint32 highestServerUsn,
363 qint32 lastPreviousUsn);
369 void syncChunksDownloaded();
375 void syncChunksDataProcessingProgress(ISyncChunksDataCountersPtr counters);
400 void linkedNotebookSyncChunksDownloadProgress(
401 qint32 highestDownloadedUsn, qint32 highestServerUsn,
408 void linkedNotebooksSyncChunksDownloaded();
414 void linkedNotebookSyncChunksDataProcessingProgress(
415 ISyncChunksDataCountersPtr counters);
425 void notesDownloadProgress(
426 quint32 notesDownloaded, quint32 totalNotesToDownload);
436 void linkedNotebooksNotesDownloadProgress(
437 quint32 notesDownloaded, quint32 totalNotesToDownload);
449 void resourcesDownloadProgress(
450 quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
462 void linkedNotebooksResourcesDownloadProgress(
463 quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
470 void preparedDirtyObjectsForSending();
477 void preparedLinkedNotebooksDirtyObjectsForSending();
484 void setAccountDone(
Account account);
490 void setDownloadNoteThumbnailsDone(
bool flag);
496 void setDownloadInkNoteImagesDone(
bool flag);
502 void setInkNoteImagesStoragePathDone(QString path);
508 SynchronizationManagerPrivate * d_ptr;
514 #endif // LIB_QUENTIER_SYNCHRONIZATION_SYNCHRONIZATION_MANAGER_H Definition: LinkedNotebook.h:32
The SynchronizationManager class encapsulates methods and signals & slots required to perform the ful...
Definition: SynchronizationManager.h:43
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:43
Definition: LocalStorageManagerAsync.h:43
Definition: DecryptedTextManager.h:26
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:38
Definition: IAuthenticationManager.h:36