Commit 898760ab authored by Krzysztof Nowicki's avatar Krzysztof Nowicki Committed by Laurent Montel
Browse files

Add the collection sync queue to the resource state dump

parent 2fcabd02
......@@ -1450,4 +1450,15 @@ void EwsResource::saveCollectionSyncState(Akonadi::Collection &col, const QStrin
job->start();
}
QString EwsResource::dumpResourceToString() const
{
QString dump = QStringLiteral("item sync queue (%1):\n").arg(mFetchItemsJobQueue.count());
for (const auto &item : std::as_const(mFetchItemsJobQueue)) {
dump += QStringLiteral(" %1:%2\n").arg(item.col.id()).arg(item.type);
}
return dump;
}
AKONADI_RESOURCE_MAIN(EwsResource)
/*
SPDX-FileCopyrightText: 2015-2019 Krzysztof Nowicki <krissn@op.pl>
SPDX-FileCopyrightText: 2015-2020 Krzysztof Nowicki <krissn@op.pl>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
......@@ -81,6 +81,7 @@ protected Q_SLOTS:
void retrieveItems(const Akonadi::Collection &collection) override;
bool retrieveItems(const Akonadi::Item::List &items, const QSet<QByteArray> &parts) override;
void retrieveTags() override;
QString dumpResourceToString() const override;
private Q_SLOTS:
void fetchFoldersJobFinished(KJob *job);
void fetchFoldersIncrJobFinished(KJob *job);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment