Commit 3f72ce3a authored by Krzysztof Nowicki's avatar Krzysztof Nowicki Committed by Laurent Montel
Browse files

Make collection sync state methods static

Now that these are not using the global state there is no need for
them to access the resource instance. Making them static will allow
easy use from other classes.
parent a0cb7ea2
......@@ -1374,7 +1374,7 @@ void EwsResource::connectStatusSignals(Job *job)
QString EwsResource::getCollectionSyncState(const Akonadi::Collection &col) const
QString EwsResource::getCollectionSyncState(const Akonadi::Collection &col)
auto attr = col.attribute<EwsSyncStateAttribute>();
return attr ? attr->syncState() : QString();
......@@ -140,8 +140,8 @@ private:
void reauthNotificationDismissed(bool accepted);
void reauthenticate();
QString getCollectionSyncState(const Akonadi::Collection &col) const;
void saveCollectionSyncState(Akonadi::Collection &col, const QString &state);
static QString getCollectionSyncState(const Akonadi::Collection &col);
static void saveCollectionSyncState(Akonadi::Collection &col, const QString &state);
template<class Job>
void connectStatusSignals(Job *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