From 8deb7fe2e1f902856697d2ea5a13555a12fa8e1a Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 1 Dec 2014 09:54:55 +0100 Subject: [PATCH] Move in own class. Reduce code in kmmainwidget --- CMakeLists.txt | 2 + job/manageserversidesubscriptionjob.h | 1 - kmmainwidget.cpp | 163 +-------------------- kmmainwidget.h | 11 +- manageshowcollectionproperties.cpp | 197 ++++++++++++++++++++++++++ manageshowcollectionproperties.h | 53 +++++++ 6 files changed, 261 insertions(+), 166 deletions(-) create mode 100644 manageshowcollectionproperties.cpp create mode 100644 manageshowcollectionproperties.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 19f3f9099..e9be60ca1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,6 +158,7 @@ if (KDEPIM_BUILD_DESKTOP) job/removeduplicatemailjob.cpp job/createfollowupreminderonexistingmessagejob.cpp job/manageserversidesubscriptionjob.cpp + job/manageserversidesubscriptionjob.cpp ) set(kmailprivate_widgets_LIB_SRCS @@ -189,6 +190,7 @@ if (KDEPIM_BUILD_DESKTOP) messageactions.cpp foldershortcutactionmanager.cpp kmconfigureagent.cpp + manageshowcollectionproperties.cpp ${kmailprivate_attributes_LIB_SRCS} ${kmailprivate_tag_LIB_SRCS} ${kmailprivate_job_LIB_SRCS} diff --git a/job/manageserversidesubscriptionjob.h b/job/manageserversidesubscriptionjob.h index 2cb779522..760a18651 100644 --- a/job/manageserversidesubscriptionjob.h +++ b/job/manageserversidesubscriptionjob.h @@ -22,7 +22,6 @@ #include #include class QDBusPendingCallWatcher; - class ManageServerSideSubscriptionJob : public QObject { Q_OBJECT diff --git a/kmmainwidget.cpp b/kmmainwidget.cpp index 092b49c31..681107c94 100644 --- a/kmmainwidget.cpp +++ b/kmmainwidget.cpp @@ -41,6 +41,7 @@ #include "tag/tagactionmanager.h" #include "foldershortcutactionmanager.h" #include "widgets/collectionpane.h" +#include "manageshowcollectionproperties.h" #if !defined(NDEBUG) #include using KSieveUi::SieveDebugDialog; @@ -234,7 +235,8 @@ KMMainWidget::KMMainWidget( QWidget *parent, KXMLGUIClient *aGUIClient, mGoToFirstUnreadMessageInSelectedFolder( false ), mDisplayMessageFormatMenu( 0 ), mFolderDisplayFormatPreference(MessageViewer::Viewer::UseGlobalSetting), - mSearchMessages( 0 ) + mSearchMessages( 0 ), + mManageShowCollectionProperties(new ManageShowCollectionProperties(this, this)) { mConfigAgent = new KMConfigureAgent(this, this); // must be the first line of the constructor: @@ -1132,7 +1134,7 @@ void KMMainWidget::createWidgets() } mAkonadiStandardActionManager->interceptAction( Akonadi::StandardActionManager::CollectionProperties ); - connect( mAkonadiStandardActionManager->action( Akonadi::StandardActionManager::CollectionProperties ), SIGNAL(triggered(bool)), this, SLOT(slotCollectionProperties()) ); + connect( mAkonadiStandardActionManager->action( Akonadi::StandardActionManager::CollectionProperties ), SIGNAL(triggered(bool)), mManageShowCollectionProperties, SLOT(slotCollectionProperties()) ); // @@ -1476,18 +1478,6 @@ void KMMainWidget::slotPostToML() slotCompose(); } -//----------------------------------------------------------------------------- -void KMMainWidget::slotFolderMailingListProperties() -{ - showCollectionProperties( QLatin1String( "KMail::CollectionMailingListPage" ) ); -} - -//----------------------------------------------------------------------------- -void KMMainWidget::slotShowFolderShortcutDialog() -{ - showCollectionProperties( QLatin1String( "KMail::CollectionShortcutPage" ) ); -} - //----------------------------------------------------------------------------- void KMMainWidget::slotExpireFolder() { @@ -3152,12 +3142,12 @@ void KMMainWidget::setupActions() mFolderMailingListPropertiesAction = new KAction(i18n("&Mailing List Management..."), this); actionCollection()->addAction(QLatin1String("folder_mailinglist_properties"), mFolderMailingListPropertiesAction ); - connect(mFolderMailingListPropertiesAction, SIGNAL(triggered(bool)), SLOT(slotFolderMailingListProperties())); + connect(mFolderMailingListPropertiesAction, SIGNAL(triggered(bool)), mManageShowCollectionProperties, SLOT(slotFolderMailingListProperties())); // mFolderMailingListPropertiesAction->setIcon(KIcon("document-properties-mailing-list")); mShowFolderShortcutDialogAction = new KAction(KIcon(QLatin1String("configure-shortcuts")), i18n("&Assign Shortcut..."), this); actionCollection()->addAction(QLatin1String("folder_shortcut_command"), mShowFolderShortcutDialogAction ); - connect( mShowFolderShortcutDialogAction, SIGNAL(triggered(bool)), + connect( mShowFolderShortcutDialogAction, SIGNAL(triggered(bool)), mManageShowCollectionProperties, SLOT(slotShowFolderShortcutDialog()) ); // FIXME: this action is not currently enabled in the rc file, but even if @@ -3174,7 +3164,7 @@ void KMMainWidget::setupActions() // slotExpireFolder() and FolderViewItem::slotShowExpiryProperties(). mExpireFolderAction = new KAction(i18n("&Expiration Settings"), this); actionCollection()->addAction(QLatin1String("expire"), mExpireFolderAction ); - connect(mExpireFolderAction, SIGNAL(triggered(bool)), SLOT(slotExpireFolder())); + connect(mExpireFolderAction, SIGNAL(triggered(bool)), mManageShowCollectionProperties, SLOT(slotExpireFolder())); mAkonadiStandardActionManager->interceptAction( Akonadi::StandardMailActionManager::MoveToTrash ); @@ -3705,11 +3695,6 @@ void KMMainWidget::slotEditNotifications() notifyDlg.exec(); } -void KMMainWidget::slotShowExpiryProperties() -{ - showCollectionProperties( QLatin1String( "MailCommon::CollectionExpiryPage" ) ); -} - //----------------------------------------------------------------------------- void KMMainWidget::slotReadOn() { @@ -4555,140 +4540,6 @@ KAction *KMMainWidget::akonadiStandardAction( Akonadi::StandardMailActionManager return mAkonadiStandardActionManager->action( type ); } -void KMMainWidget::slotCollectionProperties() -{ - showCollectionProperties( QString() ); -} - -void KMMainWidget::showCollectionProperties( const QString &pageToShow ) -{ - if ( !mCurrentFolder ) - return; - - if ( Solid::Networking::status() == Solid::Networking::Unconnected ) { - KMessageBox::information( - this, - i18n( "Network is unconnected. Folder information cannot be updated." ) ); - showCollectionPropertiesContinued( pageToShow, QPointer() ); - } else { - const Akonadi::AgentInstance agentInstance = Akonadi::AgentManager::self()->instance( mCurrentFolder->collection().resource() ); - bool isOnline = agentInstance.isOnline(); - if (!isOnline) { - showCollectionPropertiesContinued( pageToShow, QPointer() ); - } else { - QPointer progressItem( KPIM::ProgressManager::createProgressItem( i18n( "Retrieving folder properties" ) ) ); - progressItem->setUsesBusyIndicator( true ); - progressItem->setCryptoStatus(KPIM::ProgressItem::Unknown); - - Akonadi::CollectionAttributesSynchronizationJob *sync - = new Akonadi::CollectionAttributesSynchronizationJob( mCurrentFolder->collection() ); - sync->setProperty( "collectionId", mCurrentFolder->collection().id() ); - sync->setProperty( "pageToShow", pageToShow ); // note for dialog later - sync->setProperty( "progressItem", QVariant::fromValue( progressItem ) ); - connect( sync, SIGNAL(result(KJob*)), - this, SLOT(slotCollectionPropertiesContinued(KJob*)) ); - connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), - sync, SLOT(kill()) ); - connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), - KPIM::ProgressManager::instance(), SLOT(slotStandardCancelHandler(KPIM::ProgressItem*)) ); - sync->start(); - } - } -} - -void KMMainWidget::slotCollectionPropertiesContinued( KJob* job ) -{ - QString pageToShow; - QPointer progressItem; - - if ( job ) { - Akonadi::CollectionAttributesSynchronizationJob *sync - = dynamic_cast( job ); - Q_ASSERT( sync ); - if ( sync->property( "collectionId" ) != mCurrentFolder->collection().id() ) - return; - pageToShow = sync->property( "pageToShow" ).toString(); - progressItem = sync->property( "progressItem" ).value< QPointer >(); - if ( progressItem ) { - disconnect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), - sync, SLOT(kill()) ); - } else { - // progressItem does not exist anymore, operation has been canceled - return; - } - } - - showCollectionPropertiesContinued( pageToShow, progressItem ); -} - -void KMMainWidget::showCollectionPropertiesContinued( const QString &pageToShow, QPointer progressItem ) -{ - if ( !progressItem ) { - progressItem = KPIM::ProgressManager::createProgressItem( i18n( "Retrieving folder properties" ) ); - progressItem->setUsesBusyIndicator( true ); - progressItem->setCryptoStatus(KPIM::ProgressItem::Unknown); - connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), - KPIM::ProgressManager::instance(), SLOT(slotStandardCancelHandler(KPIM::ProgressItem*)) ); - } - - Akonadi::CollectionFetchJob *fetch = new Akonadi::CollectionFetchJob( mCurrentFolder->collection(), - Akonadi::CollectionFetchJob::Base ); - connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), fetch, SLOT(kill()) ); - fetch->fetchScope().setIncludeStatistics( true ); - fetch->setProperty( "pageToShow", pageToShow ); - fetch->setProperty( "progressItem", QVariant::fromValue( progressItem ) ); - connect( fetch, SIGNAL(result(KJob*)), - this, SLOT(slotCollectionPropertiesFinished(KJob*)) ); - connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), - fetch, SLOT(kill()) ); -} - -void KMMainWidget::slotCollectionPropertiesFinished( KJob *job ) -{ - if ( !job ) - return; - - QPointer progressItem = job->property( "progressItem" ).value< QPointer >(); - // progressItem does not exist anymore, operation has been canceled - if ( !progressItem ) { - return; - } - - progressItem->setComplete(); - progressItem->setStatus( i18n( "Done" ) ); - - Akonadi::CollectionFetchJob *fetch = dynamic_cast( job ); - Q_ASSERT( fetch ); - if ( fetch->collections().isEmpty() ) - { - kWarning() << "no collection"; - return; - } - - const Akonadi::Collection collection = fetch->collections().first(); - - const QStringList pages = QStringList() << QLatin1String( "MailCommon::CollectionGeneralPage" ) - << QLatin1String( "KMail::CollectionViewPage" ) - << QLatin1String( "Akonadi::CachePolicyPage" ) - << QLatin1String( "KMail::CollectionTemplatesPage" ) - << QLatin1String( "MailCommon::CollectionExpiryPage" ) - << QLatin1String( "PimCommon::CollectionAclPage" ) - << QLatin1String( "KMail::CollectionMailingListPage" ) - << QLatin1String( "KMail::CollectionQuotaPage" ) - << QLatin1String( "KMail::CollectionShortcutPage" ) - << QLatin1String( "KMail::CollectionMaintenancePage" ); - - Akonadi::CollectionPropertiesDialog *dlg = new Akonadi::CollectionPropertiesDialog( collection, pages, this ); - dlg->setCaption( i18nc( "@title:window", "Properties of Folder %1", collection.name() ) ); - - - const QString pageToShow = fetch->property( "pageToShow" ).toString(); - if ( !pageToShow.isEmpty() ) { // show a specific page - dlg->setCurrentPage( pageToShow ); - } - dlg->show(); -} - void KMMainWidget::slotRemoveDuplicates() { RemoveDuplicateMailJob *job = new RemoveDuplicateMailJob(mFolderTreeWidget->folderTreeView()->selectionModel(), this, this); diff --git a/kmmainwidget.h b/kmmainwidget.h index ca8b10abb..2ba62b511 100644 --- a/kmmainwidget.h +++ b/kmmainwidget.h @@ -59,7 +59,7 @@ class CollectionPane; class KMCommand; class KMMoveCommand; class KRecentFilesAction; -class QDBusPendingCallWatcher; +class ManageShowCollectionProperties; template class QMap; namespace KIO { @@ -255,7 +255,6 @@ public slots: void slotStartCheckMail(); void slotEndCheckMail(); - void slotCollectionProperties(); void slotRemoveDuplicates(); void slotSelectCollectionFolder( const Akonadi::Collection & col ); @@ -299,8 +298,6 @@ protected slots: void slotImport(); void slotCompose(); void slotPostToML(); - void slotFolderMailingListProperties(); - void slotShowFolderShortcutDialog(); void slotExpireFolder(); void slotExpireAll(); void slotArchiveFolder(); @@ -416,7 +413,6 @@ protected slots: void updateVacationScriptStatus(bool active , const QString &serverName = QString()); - void slotShowExpiryProperties(); void slotItemAdded( const Akonadi::Item &, const Akonadi::Collection& col); void slotItemRemoved( const Akonadi::Item & ); void slotItemMoved( const Akonadi::Item &item, const Akonadi::Collection &from, const Akonadi::Collection &to ); @@ -497,8 +493,6 @@ private: void showMessagePopup(const Akonadi::Item&msg ,const KUrl&aUrl,const KUrl &imageUrl,const QPoint& aPoint, bool contactAlreadyExists, bool uniqueContactFound); - void showCollectionProperties( const QString &pageToShow ); - void showCollectionPropertiesContinued( const QString &pageToShow, QPointer progressItem ); private slots: void slotMoveMessageToTrash(); @@ -524,8 +518,6 @@ private slots: void itemsReceived(const Akonadi::Item::List &list ); void itemsFetchDone( KJob *job ); - void slotCollectionPropertiesContinued( KJob* job ); - void slotCollectionPropertiesFinished( KJob *job ); void slotDeletionCollectionResult(KJob* job); void slotServerSideSubscription(); void slotFetchItemsForFolderDone(KJob*job); @@ -627,6 +619,7 @@ private: MessageViewer::Viewer::DisplayFormatMessage mFolderDisplayFormatPreference; KAction *mSearchMessages; KMConfigureAgent *mConfigAgent; + ManageShowCollectionProperties *mManageShowCollectionProperties; }; #endif diff --git a/manageshowcollectionproperties.cpp b/manageshowcollectionproperties.cpp new file mode 100644 index 000000000..21d0de469 --- /dev/null +++ b/manageshowcollectionproperties.cpp @@ -0,0 +1,197 @@ +/* + Copyright (c) 2014 Montel Laurent + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "manageshowcollectionproperties.h" +#include "kmmainwidget.h" +#include +#include +#include +#include + + +#include +#include +#include +#include +#include + +Q_DECLARE_METATYPE(KPIM::ProgressItem*) +Q_DECLARE_METATYPE(Akonadi::Job*) +Q_DECLARE_METATYPE(QPointer) + +ManageShowCollectionProperties::ManageShowCollectionProperties(KMMainWidget *mainWidget, QObject *parent) + : QObject(parent), + mMainWidget(mainWidget) +{ + +} + +ManageShowCollectionProperties::~ManageShowCollectionProperties() +{ + +} + +void ManageShowCollectionProperties::slotCollectionProperties() +{ + showCollectionProperties( QString() ); +} + +void ManageShowCollectionProperties::slotShowExpiryProperties() +{ + showCollectionProperties( QLatin1String( "MailCommon::CollectionExpiryPage" ) ); +} + +void ManageShowCollectionProperties::slotFolderMailingListProperties() +{ + showCollectionProperties( QLatin1String( "KMail::CollectionMailingListPage" ) ); +} + +void ManageShowCollectionProperties::slotShowFolderShortcutDialog() +{ + showCollectionProperties( QLatin1String( "KMail::CollectionShortcutPage" ) ); +} + + +void ManageShowCollectionProperties::showCollectionProperties( const QString &pageToShow ) +{ + if ( !mMainWidget->currentFolder() ) + return; + + if ( Solid::Networking::status() == Solid::Networking::Unconnected ) { + + KMessageBox::information( + mMainWidget, + i18n( "Network is unconnected. Folder information cannot be updated." ) ); + showCollectionPropertiesContinued( pageToShow, QPointer() ); + } else { + const Akonadi::AgentInstance agentInstance = Akonadi::AgentManager::self()->instance( mMainWidget->currentFolder()->collection().resource() ); + bool isOnline = agentInstance.isOnline(); + if (!isOnline) { + showCollectionPropertiesContinued( pageToShow, QPointer() ); + } else { + QPointer progressItem( KPIM::ProgressManager::createProgressItem( i18n( "Retrieving folder properties" ) ) ); + progressItem->setUsesBusyIndicator( true ); + progressItem->setCryptoStatus(KPIM::ProgressItem::Unknown); + + Akonadi::CollectionAttributesSynchronizationJob *sync + = new Akonadi::CollectionAttributesSynchronizationJob( mMainWidget->currentFolder()->collection() ); + sync->setProperty( "collectionId", mMainWidget->currentFolder()->collection().id() ); + sync->setProperty( "pageToShow", pageToShow ); // note for dialog later + sync->setProperty( "progressItem", QVariant::fromValue( progressItem ) ); + connect( sync, SIGNAL(result(KJob*)), + this, SLOT(slotCollectionPropertiesContinued(KJob*)) ); + connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), + sync, SLOT(kill()) ); + connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), + KPIM::ProgressManager::instance(), SLOT(slotStandardCancelHandler(KPIM::ProgressItem*)) ); + sync->start(); + } + } +} + +void ManageShowCollectionProperties::slotCollectionPropertiesContinued( KJob* job ) +{ + QString pageToShow; + QPointer progressItem; + + if ( job ) { + Akonadi::CollectionAttributesSynchronizationJob *sync + = dynamic_cast( job ); + Q_ASSERT( sync ); + if ( sync->property( "collectionId" ) != mMainWidget->currentFolder()->collection().id() ) + return; + pageToShow = sync->property( "pageToShow" ).toString(); + progressItem = sync->property( "progressItem" ).value< QPointer >(); + if ( progressItem ) { + disconnect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), + sync, SLOT(kill()) ); + } else { + // progressItem does not exist anymore, operation has been canceled + return; + } + } + + showCollectionPropertiesContinued( pageToShow, progressItem ); +} + +void ManageShowCollectionProperties::showCollectionPropertiesContinued( const QString &pageToShow, QPointer progressItem ) +{ + if ( !progressItem ) { + progressItem = KPIM::ProgressManager::createProgressItem( i18n( "Retrieving folder properties" ) ); + progressItem->setUsesBusyIndicator( true ); + progressItem->setCryptoStatus(KPIM::ProgressItem::Unknown); + connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), + KPIM::ProgressManager::instance(), SLOT(slotStandardCancelHandler(KPIM::ProgressItem*)) ); + } + + Akonadi::CollectionFetchJob *fetch = new Akonadi::CollectionFetchJob( mMainWidget->currentFolder()->collection(), + Akonadi::CollectionFetchJob::Base ); + connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), fetch, SLOT(kill()) ); + fetch->fetchScope().setIncludeStatistics( true ); + fetch->setProperty( "pageToShow", pageToShow ); + fetch->setProperty( "progressItem", QVariant::fromValue( progressItem ) ); + connect( fetch, SIGNAL(result(KJob*)), + this, SLOT(slotCollectionPropertiesFinished(KJob*)) ); + connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), + fetch, SLOT(kill()) ); +} + +void ManageShowCollectionProperties::slotCollectionPropertiesFinished( KJob *job ) +{ + if ( !job ) + return; + + QPointer progressItem = job->property( "progressItem" ).value< QPointer >(); + // progressItem does not exist anymore, operation has been canceled + if ( !progressItem ) { + return; + } + + progressItem->setComplete(); + progressItem->setStatus( i18n( "Done" ) ); + + Akonadi::CollectionFetchJob *fetch = dynamic_cast( job ); + Q_ASSERT( fetch ); + if ( fetch->collections().isEmpty() ) + { + kWarning() << "no collection"; + return; + } + + const Akonadi::Collection collection = fetch->collections().first(); + + const QStringList pages = QStringList() << QLatin1String( "MailCommon::CollectionGeneralPage" ) + << QLatin1String( "KMail::CollectionViewPage" ) + << QLatin1String( "Akonadi::CachePolicyPage" ) + << QLatin1String( "KMail::CollectionTemplatesPage" ) + << QLatin1String( "MailCommon::CollectionExpiryPage" ) + << QLatin1String( "PimCommon::CollectionAclPage" ) + << QLatin1String( "KMail::CollectionMailingListPage" ) + << QLatin1String( "KMail::CollectionQuotaPage" ) + << QLatin1String( "KMail::CollectionShortcutPage" ) + << QLatin1String( "KMail::CollectionMaintenancePage" ); + + Akonadi::CollectionPropertiesDialog *dlg = new Akonadi::CollectionPropertiesDialog( collection, pages, mMainWidget ); + dlg->setCaption( i18nc( "@title:window", "Properties of Folder %1", collection.name() ) ); + + + const QString pageToShow = fetch->property( "pageToShow" ).toString(); + if ( !pageToShow.isEmpty() ) { // show a specific page + dlg->setCurrentPage( pageToShow ); + } + dlg->show(); +} diff --git a/manageshowcollectionproperties.h b/manageshowcollectionproperties.h new file mode 100644 index 000000000..3f4132f06 --- /dev/null +++ b/manageshowcollectionproperties.h @@ -0,0 +1,53 @@ +/* + Copyright (c) 2014 Montel Laurent + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef MANAGESHOWCOLLECTIONPROPERTIES_H +#define MANAGESHOWCOLLECTIONPROPERTIES_H + +#include +#include +#include + +#include +class KJob; +class KMMainWidget; +class ManageShowCollectionProperties : public QObject +{ + Q_OBJECT +public: + explicit ManageShowCollectionProperties(KMMainWidget *mainWidget, QObject *parent = 0); + ~ManageShowCollectionProperties(); + +public slots: + void slotFolderMailingListProperties(); + void slotShowFolderShortcutDialog(); + void slotShowExpiryProperties(); + void slotCollectionProperties(); + +private slots: + void slotCollectionPropertiesContinued(KJob *job); + void slotCollectionPropertiesFinished(KJob *job); + +private: + void showCollectionProperties(const QString &pageToShow); + void showCollectionPropertiesContinued(const QString &pageToShow, QPointer progressItem); + +private: + KMMainWidget *mMainWidget; +}; + +#endif // MANAGESHOWCOLLECTIONPROPERTIES_H