libquentier 0.8.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
Signals | Protected Member Functions | List of all members
quentier::synchronization::ISyncEventsNotifier Class Reference
Inheritance diagram for quentier::synchronization::ISyncEventsNotifier:
Inheritance graph
[legend]
Collaboration diagram for quentier::synchronization::ISyncEventsNotifier:
Collaboration graph
[legend]

Signals

void syncChunksDownloadProgress (qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn)
 
void syncChunksDownloaded ()
 
void syncChunksDataProcessingProgress (ISyncChunksDataCountersPtr counters)
 
void startLinkedNotebooksDataDownloading (const QList< qevercloud::LinkedNotebook > &linkedNotebooks)
 
void linkedNotebookSyncChunksDownloadProgress (qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn, const qevercloud::LinkedNotebook &linkedNotebook)
 
void linkedNotebookSyncChunksDownloaded (const qevercloud::LinkedNotebook &linkedNotebook)
 
void linkedNotebookSyncChunksDataProcessingProgress (ISyncChunksDataCountersPtr counters, const qevercloud::LinkedNotebook &linkedNotebook)
 
void notesDownloadProgress (quint32 notesDownloaded, quint32 totalNotesToDownload)
 
void linkedNotebookNotesDownloadProgress (quint32 notesDownloaded, quint32 totalNotesToDownload, const qevercloud::LinkedNotebook &linkedNotebook)
 
void resourcesDownloadProgress (quint32 resourcesDownloaded, quint32 totalResourcesToDownload)
 
void linkedNotebookResourcesDownloadProgress (quint32 resourcesDownloaded, quint32 totalResourcesToDownload, const qevercloud::LinkedNotebook &linkedNotebook)
 
void downloadFinished (bool dataDownloaded)
 
void userOwnSendStatusUpdate (ISendStatusPtr sendStatus)
 
void linkedNotebookSendStatusUpdate (const qevercloud::Guid &linkedNotebookGuid, ISendStatusPtr sendStatus)
 

Protected Member Functions

 ISyncEventsNotifier (QObject *parent=nullptr)
 

Member Function Documentation

◆ downloadFinished

void quentier::synchronization::ISyncEventsNotifier::downloadFinished ( bool  dataDownloaded)
signal

This signal is emitted when the initial download step is finished.

Parameters
dataDownloadedTrue if some data was actually downloaded during this step i.e. there were some updates on Evernote servers compared to local state, false otherwise.

◆ linkedNotebookNotesDownloadProgress

void quentier::synchronization::ISyncEventsNotifier::linkedNotebookNotesDownloadProgress ( quint32  notesDownloaded,
quint32  totalNotesToDownload,
const qevercloud::LinkedNotebook &  linkedNotebook 
)
signal

This signal is emitted on each successful download of full note data from some linked notebook.

Parameters
notesDownloadedThe number of notes downloaded by the moment
totalNotesToDownloadThe total number of notes that need to be downloaded
linkedNotebookThe linked notebook which notes download progress is being reported

◆ linkedNotebookResourcesDownloadProgress

void quentier::synchronization::ISyncEventsNotifier::linkedNotebookResourcesDownloadProgress ( quint32  resourcesDownloaded,
quint32  totalResourcesToDownload,
const qevercloud::LinkedNotebook &  linkedNotebook 
)
signal

This signal is emitted on each successful download of full resource data from linked notebooks during the incremental sync (as individual resources are downloaded along with their notes during full sync).

Parameters
resourcesDownloadedThe number of resources downloaded by the moment
totalResourcesToDownloadThe total number of resources that need to be downloaded
linkedNotebookThe linked notebook which resources download progress is being reported

◆ linkedNotebookSendStatusUpdate

void quentier::synchronization::ISyncEventsNotifier::linkedNotebookSendStatusUpdate ( const qevercloud::Guid &  linkedNotebookGuid,
ISendStatusPtr  sendStatus 
)
signal

This signal is emitted on each successful or unsuccessful attempt to send some new or locally modified data item from some linked notebook to Evernote.

Parameters
linkedNotebookGuidGuid of the linked notebook for which the send status was updated
sendStatusThe updated send status

◆ linkedNotebookSyncChunksDataProcessingProgress

void quentier::synchronization::ISyncEventsNotifier::linkedNotebookSyncChunksDataProcessingProgress ( ISyncChunksDataCountersPtr  counters,
const qevercloud::LinkedNotebook &  linkedNotebook 
)
signal

This signal is emitted during some linked notebook's downloaded sync chunks contents processing and denotes the progress on that step.

Parameters
countersUpdated sync chunks data counters
linkedNotebookThe linked notebook which sync chunks data processing progress is being reported

◆ linkedNotebookSyncChunksDownloaded

void quentier::synchronization::ISyncEventsNotifier::linkedNotebookSyncChunksDownloaded ( const qevercloud::LinkedNotebook &  linkedNotebook)
signal

This signal is emitted when the sync chunks for data from some linked notebook are downloaded during "remote to local" synchronization step

Parameters
linkedNotebookThe linked notebook which sync chunks were downloaded

◆ linkedNotebookSyncChunksDownloadProgress

void quentier::synchronization::ISyncEventsNotifier::linkedNotebookSyncChunksDownloadProgress ( qint32  highestDownloadedUsn,
qint32  highestServerUsn,
qint32  lastPreviousUsn,
const qevercloud::LinkedNotebook &  linkedNotebook 
)
signal

This signal is emitted during linked notebooks sync chunks downloading and denotes the progress of that step, individually for each linked notebook. The percentage of completeness can be computed roughly as (highestDownloadedUsn - lastPreviousUsn) / (highestServerUsn - lastPreviousUsn) * 100%.

Parameters
highestDownloadedUsnThe highest update sequence number within data items from linked notebook sync chunks downloaded so far
highestServerUsnThe current highest update sequence number within the linked notebook
lastPreviousUsnThe last update sequence number from previous sync of the given linked notebook; if current sync is the first one, this value is zero
linkedNotebookThe linked notebook which sync chunks download progress is reported

◆ notesDownloadProgress

void quentier::synchronization::ISyncEventsNotifier::notesDownloadProgress ( quint32  notesDownloaded,
quint32  totalNotesToDownload 
)
signal

This signal is emitted on each successful download of full note data from user's own account.

Parameters
notesDownloadedThe number of notes downloaded by the moment
totalNotesToDownloadThe total number of notes that need to be downloaded

◆ resourcesDownloadProgress

void quentier::synchronization::ISyncEventsNotifier::resourcesDownloadProgress ( quint32  resourcesDownloaded,
quint32  totalResourcesToDownload 
)
signal

This signal is emitted on each successful doenload of full resource data from user's own account during the incremental sync (as individual resources are downloaded along with their notes during full sync).

Parameters
resourcesDownloadedThe number of resources downloaded by the moment
totalResourcesToDownloadThe total number of resources that need to be downloaded

◆ startLinkedNotebooksDataDownloading

void quentier::synchronization::ISyncEventsNotifier::startLinkedNotebooksDataDownloading ( const QList< qevercloud::LinkedNotebook > &  linkedNotebooks)
signal

This signal is emitted before the downloading of data corresponding to linked notebooks starts.

Parameters
linkedNotebooksLinked notebooks the data from which will start being downloaded after the execution of this callback

◆ syncChunksDataProcessingProgress

void quentier::synchronization::ISyncEventsNotifier::syncChunksDataProcessingProgress ( ISyncChunksDataCountersPtr  counters)
signal

This signal is emitted during user own account's downloaded sync chunks contents processing and denotes the progress on that step.

◆ syncChunksDownloaded

void quentier::synchronization::ISyncEventsNotifier::syncChunksDownloaded ( )
signal

This signal is emitted when the sync chunks for data from user's own account are downloaded during the download synchronization step.

◆ syncChunksDownloadProgress

void quentier::synchronization::ISyncEventsNotifier::syncChunksDownloadProgress ( qint32  highestDownloadedUsn,
qint32  highestServerUsn,
qint32  lastPreviousUsn 
)
signal

This signal is emitted during user own account's sync chunks downloading and denotes the progress of that step. The percentage of completeness can be computed roughly as (highestDownloadedUsn - lastPreviousUsn) / (highestServerUsn - lastPreviousUsn) * 100%.

Parameters
highestDownloadedUsnThe highest update sequence number within data items from sync chunks downloaded so far
highestServerUsnThe current highest update sequence number within the account
lastPreviousUsnThe last update sequence number from previous sync; if current sync is the first one, this value is zero

◆ userOwnSendStatusUpdate

void quentier::synchronization::ISyncEventsNotifier::userOwnSendStatusUpdate ( ISendStatusPtr  sendStatus)
signal

This signal is emitted on each successful or unsuccessful attempt to send some new or locally modified data item from user's own account to Evernote.

Parameters
sendStatusThe updated send status