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