Commit cb790ac9 authored by Laurent Montel's avatar Laurent Montel 😁

Allow to reindex several collection

parent f9dd1094
......@@ -130,6 +130,14 @@ void AkonadiIndexingAgent::reindexCollection(const qlonglong id)
m_scheduler.scheduleCollection(Akonadi::Collection(id), true);
}
void AkonadiIndexingAgent::reindexCollections(const QList<qlonglong> &ids)
{
qCDebug(AKONADI_INDEXER_AGENT_LOG) << "Reindexing collections " << ids;
Q_FOREACH(qlonglong id, ids) {
m_scheduler.scheduleCollection(Akonadi::Collection(id), true);
}
}
qlonglong AkonadiIndexingAgent::indexedItems(const qlonglong id)
{
return m_index.indexedItems(id);
......
......@@ -51,6 +51,7 @@ public:
void reindexAll();
void reindexCollection(const qlonglong id);
void reindexCollections(const QList<qlonglong> &ids);
qlonglong indexedItems(const qlonglong id);
int numberOfCollectionQueued();
......
......@@ -13,5 +13,10 @@
<method name="numberOfCollectionQueued" >
<arg type="i" direction="out"/>
</method>
<method name="reindexCollections">
<arg name="ids" type="ax" direction="in"/>
<annotation name="org.qtproject.QtDBus.QtTypeName.In0" value="const QList&lt;qlonglong&gt; &amp;"/>
</method>
</interface>
</node>
Markdown is supported
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