libquentier 0.8.0
The library for rich desktop clients of Evernote service
Loading...
Searching...
No Matches
ISyncEventsNotifier.h
1/*
2 * Copyright 2023-2024 Dmitry Ivanov
3 *
4 * This file is part of libquentier
5 *
6 * libquentier is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, version 3 of the License.
9 *
10 * libquentier is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with libquentier. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21#include <quentier/synchronization/Fwd.h>
22#include <quentier/synchronization/types/Fwd.h>
23#include <quentier/utility/Linkage.h>
24
25#include <qevercloud/types/LinkedNotebook.h>
26
27#include <QList>
28#include <QObject>
29
30namespace quentier::synchronization {
31
32class QUENTIER_EXPORT ISyncEventsNotifier : public QObject
33{
34 Q_OBJECT
35protected:
36 explicit ISyncEventsNotifier(QObject * parent = nullptr);
37
38public:
39 ~ISyncEventsNotifier() override;
40
41Q_SIGNALS:
59 qint32 highestDownloadedUsn, qint32 highestServerUsn,
60 qint32 lastPreviousUsn);
61
67
72 void syncChunksDataProcessingProgress(ISyncChunksDataCountersPtr counters);
73
82 const QList<qevercloud::LinkedNotebook> & linkedNotebooks);
83
104 qint32 highestDownloadedUsn, qint32 highestServerUsn,
105 qint32 lastPreviousUsn,
106 const qevercloud::LinkedNotebook & linkedNotebook);
107
115 const qevercloud::LinkedNotebook & linkedNotebook);
116
126 ISyncChunksDataCountersPtr counters,
127 const qevercloud::LinkedNotebook & linkedNotebook);
128
139 quint32 notesDownloaded, quint32 totalNotesToDownload);
140
152 quint32 notesDownloaded, quint32 totalNotesToDownload,
153 const qevercloud::LinkedNotebook & linkedNotebook);
154
166 quint32 resourcesDownloaded, quint32 totalResourcesToDownload);
167
180 quint32 resourcesDownloaded, quint32 totalResourcesToDownload,
181 const qevercloud::LinkedNotebook & linkedNotebook);
182
191 void downloadFinished(bool dataDownloaded);
192
199 void userOwnSendStatusUpdate(ISendStatusPtr sendStatus);
200
210 const qevercloud::Guid & linkedNotebookGuid, ISendStatusPtr sendStatus);
211};
212
213} // namespace quentier::synchronization
void linkedNotebookSyncChunksDataProcessingProgress(ISyncChunksDataCountersPtr counters, const qevercloud::LinkedNotebook &linkedNotebook)
void linkedNotebookSyncChunksDownloadProgress(qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn, const qevercloud::LinkedNotebook &linkedNotebook)
void notesDownloadProgress(quint32 notesDownloaded, quint32 totalNotesToDownload)
void linkedNotebookSendStatusUpdate(const qevercloud::Guid &linkedNotebookGuid, ISendStatusPtr sendStatus)
void userOwnSendStatusUpdate(ISendStatusPtr sendStatus)
void linkedNotebookSyncChunksDownloaded(const qevercloud::LinkedNotebook &linkedNotebook)
void syncChunksDataProcessingProgress(ISyncChunksDataCountersPtr counters)
void resourcesDownloadProgress(quint32 resourcesDownloaded, quint32 totalResourcesToDownload)
void linkedNotebookNotesDownloadProgress(quint32 notesDownloaded, quint32 totalNotesToDownload, const qevercloud::LinkedNotebook &linkedNotebook)
void linkedNotebookResourcesDownloadProgress(quint32 resourcesDownloaded, quint32 totalResourcesToDownload, const qevercloud::LinkedNotebook &linkedNotebook)
void startLinkedNotebooksDataDownloading(const QList< qevercloud::LinkedNotebook > &linkedNotebooks)
void syncChunksDownloadProgress(qint32 highestDownloadedUsn, qint32 highestServerUsn, qint32 lastPreviousUsn)