kmail
manageshowcollectionproperties.cpp
Go to the documentation of this file.
36 ManageShowCollectionProperties::ManageShowCollectionProperties(KMMainWidget *mainWidget, QObject *parent)
93 if ( Solid::Networking::status() == Solid::Networking::Connected || Solid::Networking::status() == Solid::Networking::Unknown) {
94 const Akonadi::AgentInstance agentInstance = Akonadi::AgentManager::self()->instance( mMainWidget->currentFolder()->collection().resource() );
99 QPointer<KPIM::ProgressItem> progressItem( KPIM::ProgressManager::createProgressItem( i18n( "Retrieving folder properties" ) ) );
104 = new Akonadi::CollectionAttributesSynchronizationJob( mMainWidget->currentFolder()->collection() );
149 void ManageShowCollectionProperties::showCollectionPropertiesContinued( const QString &pageToShow, QPointer<KPIM::ProgressItem> progressItem )
152 progressItem = KPIM::ProgressManager::createProgressItem( i18n( "Retrieving folder properties" ) );
159 Akonadi::CollectionFetchJob *fetch = new Akonadi::CollectionFetchJob( mMainWidget->currentFolder()->collection(),
161 connect( progressItem, SIGNAL(progressItemCanceled(KPIM::ProgressItem*)), fetch, SLOT(kill()) );
176 QPointer<KPIM::ProgressItem> progressItem = job->property( "progressItem" ).value< QPointer<KPIM::ProgressItem> >();
195 QPointer<Akonadi::CollectionPropertiesDialog> dlg = new Akonadi::CollectionPropertiesDialog( collection, mPages, mMainWidget );
static ProgressManager * instance()
iterator insert(const Key &key, const T &value)
~ManageShowCollectionProperties()
Definition: manageshowcollectionproperties.cpp:53
QSharedPointer< MailCommon::FolderCollection > currentFolder() const
Definition: kmmainwidget.cpp:4161
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void slotShowFolderShortcutDialog()
Definition: manageshowcollectionproperties.cpp:73
void slotShowExpiryProperties()
Definition: manageshowcollectionproperties.cpp:63
bool isEmpty() const
void slotFolderMailingListProperties()
Definition: manageshowcollectionproperties.cpp:68
Definition: kmmainwidget.h:91
const T value(const Key &key) const
QVariant fromValue(const T &value)
void slotCollectionProperties()
Definition: manageshowcollectionproperties.cpp:58
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
static ProgressItem * createProgressItem(unsigned int progressType, const QString &label)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:33 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:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.