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)
233 Account account,
bool somethingDownloaded,
bool somethingSent);
247 bool success,
ErrorString errorDescription, qevercloud::UserID userId);
344 qint32 highestDownloadedUsn, qint32 highestServerUsn,
345 qint32 lastPreviousUsn);
377 qint32 highestDownloadedUsn, qint32 highestServerUsn,
395 quint32 notesDownloaded, quint32 totalNotesToDownload);
406 quint32 notesDownloaded, quint32 totalNotesToDownload);
419 quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
432 quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
477 SynchronizationManagerPrivate * d_ptr;
The Account class encapsulates some details about the account: its name, whether it is local or synch...
Definition: Account.h:40
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:44
Definition: IAuthenticationManager.h:37
Definition: LinkedNotebook.h:33
Definition: LocalStorageManagerAsync.h:45
Definition: SynchronizationManagerDependencyInjector.h:31
The SynchronizationManager class encapsulates methods and signals & slots required to perform the ful...
Definition: SynchronizationManager.h:47
void notesDownloadProgress(quint32 notesDownloaded, quint32 totalNotesToDownload)
void preparedDirtyObjectsForSending()
void linkedNotebooksSyncChunksDownloaded()
void linkedNotebooksResourcesDownloadProgress(quint32 resourcesDownloaded, quint32 totalResourcesToDownload)
void setInkNoteImagesStoragePath(QString path)
void rateLimitExceeded(qint32 secondsToWait)
void remoteToLocalSyncStopped()
void syncChunksDownloadProgress(qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn)
void authenticationFinished(bool success, ErrorString errorDescription, Account account)
void remoteToLocalSyncDone(bool somethingDownloaded)
void sendLocalChangesStopped()
void linkedNotebooksNotesDownloadProgress(quint32 notesDownloaded, quint32 totalNotesToDownload)
bool downloadNoteThumbnailsOption() const
void revokeAuthentication(const qevercloud::UserID userId)
void setDownloadInkNoteImages(bool flag)
void setDownloadNoteThumbnailsDone(bool flag)
void setInkNoteImagesStoragePathDone(QString path)
SynchronizationManager(const QString &host, LocalStorageManagerAsync &localStorageManagerAsync, IAuthenticationManager &authenticationManager, SynchronizationManagerDependencyInjector *pInjector=nullptr)
void finished(Account account, bool somethingDownloaded, bool somethingSent)
void setDownloadNoteThumbnails(bool flag)
void detectedConflictDuringLocalChangesSending()
void failed(ErrorString errorDescription)
void setDownloadInkNoteImagesDone(bool flag)
void setAccount(Account account)
void authenticationRevoked(bool success, ErrorString errorDescription, qevercloud::UserID userId)
void authenticateCurrentAccount()
void setAccountDone(Account account)
void syncChunksDownloaded()
void linkedNotebookSyncChunksDownloadProgress(qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn, LinkedNotebook linkedNotebook)
void willRepeatRemoteToLocalSyncAfterSendingChanges()
void resourcesDownloadProgress(quint32 resourcesDownloaded, quint32 totalResourcesToDownload)
void preparedLinkedNotebooksDirtyObjectsForSending()