Commit 5f5a95e2 authored by Krzysztof Nowicki's avatar Krzysztof Nowicki Committed by Laurent Montel
Browse files

Rewrite the debug method to clear the sync state of a collection

parent ca202bdf
......@@ -1050,10 +1050,13 @@ void EwsResource::clearFolderSyncState()
saveState();
}
void EwsResource::clearFolderSyncState(const QString &folderId)
void EwsResource::clearCollectionSyncState(int collectionId)
{
mSyncState.remove(folderId);
saveState();
Collection col(collectionId);
auto attr = col.attribute<EwsSyncStateAttribute>();
col.addAttribute(attr);
CollectionModifyJob *job = new CollectionModifyJob(col);
job->start();
}
void EwsResource::clearFolderTreeSyncState()
......
......@@ -72,7 +72,7 @@ protected:
void doSetOnline(bool online) override;
public Q_SLOTS:
void configure(WId windowId) override;
Q_SCRIPTABLE void clearFolderSyncState(const QString &folderId);
Q_SCRIPTABLE void clearCollectionSyncState(int collectionId);
Q_SCRIPTABLE void clearFolderSyncState();
Q_SCRIPTABLE void clearFolderTreeSyncState();
Q_SCRIPTABLE void setInitialReconnectTimeout(int timeout);
......
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