21 #include <quentier/synchronization/types/Errors.h> 22 #include <quentier/utility/Linkage.h> 23 #include <quentier/utility/Printable.h> 25 #include <qevercloud/types/Note.h> 26 #include <qevercloud/types/Notebook.h> 27 #include <qevercloud/types/SavedSearch.h> 28 #include <qevercloud/types/Tag.h> 29 #include <qevercloud/types/TypeAliases.h> 47 using QExceptionPtr = std::shared_ptr<QException>;
49 using NoteWithException = std::pair<qevercloud::Note, QExceptionPtr>;
51 using NotebookWithException =
52 std::pair<qevercloud::Notebook, QExceptionPtr>;
54 using SavedSearchWithException =
55 std::pair<qevercloud::SavedSearch, QExceptionPtr>;
57 using TagWithException = std::pair<qevercloud::Tag, QExceptionPtr>;
65 [[nodiscard]]
virtual quint64 totalAttemptedToSendNotes()
const = 0;
70 [[nodiscard]]
virtual quint64 totalAttemptedToSendNotebooks()
const = 0;
75 [[nodiscard]]
virtual quint64 totalAttemptedToSendSavedSearches()
const = 0;
80 [[nodiscard]]
virtual quint64 totalAttemptedToSendTags()
const = 0;
87 [[nodiscard]]
virtual quint64 totalSuccessfullySentNotes()
const = 0;
93 [[nodiscard]]
virtual QList<NoteWithException> failedToSendNotes()
101 [[nodiscard]]
virtual quint64 totalSuccessfullySentNotebooks()
const = 0;
107 [[nodiscard]]
virtual QList<NotebookWithException> failedToSendNotebooks()
115 [[nodiscard]]
virtual quint64 totalSuccessfullySentSavedSearches()
122 [[nodiscard]]
virtual QList<SavedSearchWithException>
123 failedToSendSavedSearches()
const = 0;
130 [[nodiscard]]
virtual quint64 totalSuccessfullySentTags()
const = 0;
136 [[nodiscard]]
virtual QList<TagWithException> failedToSendTags()
const = 0;
145 [[nodiscard]]
virtual StopSynchronizationError stopSynchronizationError()
154 [[nodiscard]]
virtual bool needToRepeatIncrementalSync()
const = 0;
Definition: synchronization/Factory.h:35
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:37
The ISendStatus interface represents the information about the attempt to send information either fro...
Definition: ISendStatus.h:44