kmail
collectionmaintenancepage.cpp
Go to the documentation of this file.
68 connect( KMKernel::self()->folderCollectionMonitor(), SIGNAL(collectionStatisticsChanged(Akonadi::Collection::Id,Akonadi::CollectionStatistics)), this, SLOT(updateCollectionStatistic(Akonadi::Collection::Id,Akonadi::CollectionStatistics)) );
110 updateLabel( col.statistics().count(), col.statistics().unreadCount(), col.statistics().size() );
117 QDBusInterface interfaceBalooIndexer( QLatin1String("org.freedesktop.Akonadi.Agent.akonadi_baloo_indexer"), QLatin1String("/") );
119 if (!interfaceBalooIndexer.callWithCallback(QLatin1String("indexedItems"), QList<QVariant>() << (qlonglong)mCurrentCollection.id(), this, SLOT(onIndexedItemsReceived(qint64)))) {
133 mLastIndexed->setText(i18np("Indexed %1 item of this collection", "Indexed %1 items of this collection", num));
146 if ( !collection.hasAttribute<Akonadi::IndexPolicyAttribute>() && mIndexingEnabled->isChecked() )
148 Akonadi::IndexPolicyAttribute *attr = collection.attribute<Akonadi::IndexPolicyAttribute>( Akonadi::Collection::AddIfMissing );
156 void CollectionMaintenancePage::updateCollectionStatistic(Akonadi::Collection::Id id, const Akonadi::CollectionStatistics& statistic)
bool isValid() const
void clear()
void setSpacing(int spacing)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
CollectionMaintenancePage(QWidget *parent=0)
Definition: collectionmaintenancepage.cpp:47
void save(Akonadi::Collection &col)
Definition: collectionmaintenancepage.cpp:144
void setText(const QString &)
void hide()
void setMargin(int margin)
void addRow(QWidget *label, QWidget *field)
void setChecked(bool)
void updateCollectionStatistic(Akonadi::Collection::Id, const Akonadi::CollectionStatistics &)
Definition: collectionmaintenancepage.cpp:156
void addStretch(int stretch)
bool callWithCallback(const QString &method, const QList< QVariant > &args, QObject *receiver, const char *returnMethod, const char *errorMethod)
void load(const Akonadi::Collection &col)
Definition: collectionmaintenancepage.cpp:106
void init(const Akonadi::Collection &)
Definition: collectionmaintenancepage.cpp:57
void setSpacing(int spacing)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.