Commit d9008b1a authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Add CollectionMaintenancePage to Folder Properties dialog

Mostly to be able to control whether to index contacts from
the addressbook and to be able to force re-indexing.
parent da863412
......@@ -38,7 +38,7 @@ set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
set(KPIMTEXTEDIT_LIB_VERSION "5.5.40")
set(AKONADI_VERSION "5.5.40")
set(AKONADI_VERSION "5.5.42")
set(KONTACTINTERFACE_LIB_VERSION "5.5.40")
set(KDEPIM_LIB_VERSION "${KDEPIM_VERSION_NUMBER}")
......
......@@ -50,6 +50,7 @@
#include <AkonadiCore/MimeTypeChecker>
#include <AkonadiCore/AttributeFactory>
#include <AkonadiWidgets/CollectionPropertiesDialog>
#include <AkonadiWidgets/CollectionMaintenancePage>
#include <AkonadiSearch/Debug/akonadisearchdebugdialog.h>
#include <KContacts/Addressee>
#include <QPointer>
......
......@@ -24,8 +24,10 @@
#include <PimCommonAkonadi/CollectionAclPage>
#include <AkonadiWidgets/CollectionPropertiesDialog>
#include <AkonadiWidgets/CollectionMaintenancePage>
#include <AkonadiCore/CollectionAttributesSynchronizationJob>
#include <AkonadiCore/CollectionFetchJob>
#include <AkonadiCore/CollectionFetchScope>
#include <KLocalizedString>
......@@ -37,11 +39,13 @@ ManageShowCollectionProperties::ManageShowCollectionProperties(MainWidget *mainW
if (!pageRegistered) {
Akonadi::CollectionPropertiesDialog::registerPage(new PimCommon::CollectionAclPageFactory);
Akonadi::CollectionPropertiesDialog::registerPage(new Akonadi::CollectionMaintenancePageFactory);
pageRegistered = true;
}
mPages = QStringList() << QStringLiteral("Akonadi::CollectionGeneralPropertiesPage")
<< QStringLiteral("Akonadi::CachePolicyPage")
<< QStringLiteral("PimCommon::CollectionAclPage");
<< QStringLiteral("PimCommon::CollectionAclPage")
<< QStringLiteral("Akonadi::CollectionMaintenancePage");
}
ManageShowCollectionProperties::~ManageShowCollectionProperties()
......@@ -79,6 +83,7 @@ void ManageShowCollectionProperties::slotCollectionPropertiesContinued(KJob *job
}
Akonadi::CollectionFetchJob *fetch = new Akonadi::CollectionFetchJob(mMainWidget->currentAddressBook(),
Akonadi::CollectionFetchJob::Base);
fetch->fetchScope().setIncludeStatistics(true);
connect(fetch, &KJob::result,
this, &ManageShowCollectionProperties::slotCollectionPropertiesFinished);
}
......
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