akonadi
specialcollectionsrequestjob.cpp
43 SpecialCollectionsRequestJobPrivate(SpecialCollections *collections, SpecialCollectionsRequestJob *qq);
75SpecialCollectionsRequestJobPrivate::SpecialCollectionsRequestJobPrivate(SpecialCollections *collections,
106 if (it.value() && !mSpecialCollections->hasCollection(it.key(), AgentManager::self()->instance(resourceIt.key()))) {
180 ResourceScanJob *resjob = new ResourceScanJob(resourceId, mSpecialCollections->d->mSettings, q);
282SpecialCollectionsRequestJob::SpecialCollectionsRequestJob(SpecialCollections *collections, QObject *parent)
301void SpecialCollectionsRequestJob::requestCollection(const QByteArray &type, const AgentInstance &instance)
QString identifier() const
Returns the unique identifier of the agent instance.
Definition agentinstance.cpp:55
static AgentManager * self()
Returns the global instance of the agent manager.
Definition agentmanager.cpp:377
AgentInstance instance(const QString &identifier) const
Returns the agent instance with the given identifier or an invalid agent instance if the identifier d...
Definition agentmanager.cpp:401
Job that creates a new collection in the Akonadi storage.
Definition collectioncreatejob.h:53
Collection collection() const
Returns the created collection if the job was executed successfully.
Definition collectioncreatejob.cpp:97
void setNameForTypeMap(const QMap< QByteArray, QString > &map)
Sets the map of special collection types to display names.
Definition specialcollectionshelperjobs.cpp:521
void setDefaultResourceType(const QString &type)
Sets the type of the resource that shall be created if the requested special collection does not exis...
Definition specialcollectionshelperjobs.cpp:506
void setTypes(const QList< QByteArray > &types)
Sets the list of well known special collection types.
Definition specialcollectionshelperjobs.cpp:516
void setIconForTypeMap(const QMap< QByteArray, QString > &map)
Sets the map of special collection types to icon names.
Definition specialcollectionshelperjobs.cpp:526
void setDefaultResourceOptions(const QVariantMap &options)
Sets the configuration options that shall be applied to the new resource that is created if the reque...
Definition specialcollectionshelperjobs.cpp:511
QString resourceId() const
Returns the resource ID of the resource being scanned.
Definition specialcollectionshelperjobs.cpp:179
Akonadi::Collection::List specialCollections() const
Returns all the collections of this resource which have a SpecialCollectionAttribute.
Definition specialcollectionshelperjobs.cpp:194
Akonadi::Collection rootResourceCollection() const
Returns the root collection of the resource being scanned.
Definition specialcollectionshelperjobs.cpp:189
An Attribute that stores the special collection type of a collection.
Definition specialcollectionattribute_p.h:40
QByteArray collectionType() const
Returns the special collections type of the collection.
Definition specialcollectionattribute.cpp:74
A job to request SpecialCollections.
Definition specialcollectionsrequestjob.h:55
void requestCollection(const QByteArray &type, const AgentInstance &instance)
Requests a special collection of the given type in the given resource instance.
Definition specialcollectionsrequestjob.cpp:301
void setIconForTypeMap(const QMap< QByteArray, QString > &map)
Sets the map of special collection types to icon names.
Definition specialcollectionsrequestjob.cpp:337
void setTypes(const QList< QByteArray > &types)
Sets the list of well known special collection types.
Definition specialcollectionsrequestjob.cpp:327
virtual void doStart()
This method must be reimplemented in the concrete jobs.
Definition specialcollectionsrequestjob.cpp:342
~SpecialCollectionsRequestJob()
Destroys the special collections request job.
Definition specialcollectionsrequestjob.cpp:289
Collection collection() const
Returns the requested collection.
Definition specialcollectionsrequestjob.cpp:308
SpecialCollectionsRequestJob(SpecialCollections *collections, QObject *parent=0)
Creates a new special collections request job.
Definition specialcollectionsrequestjob.cpp:282
void setNameForTypeMap(const QMap< QByteArray, QString > &map)
Sets the map of special collection types to display names.
Definition specialcollectionsrequestjob.cpp:332
void setDefaultResourceOptions(const QVariantMap &options)
Sets the configuration options that shall be applied to the new resource that is created if the reque...
Definition specialcollectionsrequestjob.cpp:322
void requestDefaultCollection(const QByteArray &type)
Requests a special collection of the given type in the default resource.
Definition specialcollectionsrequestjob.cpp:294
void setDefaultResourceType(const QString &type)
Sets the type of the resource that shall be created if the requested special collection does not exis...
Definition specialcollectionsrequestjob.cpp:317
bool hasCollection(const QByteArray &type, const AgentInstance &instance) const
Returns whether the given agent instance has a special collection of the given type.
Definition specialcollections.cpp:194
bool hasDefaultCollection(const QByteArray &type) const
Returns whether the default resource has a special collection of the given type.
Definition specialcollections.cpp:272
bool registerCollection(const QByteArray &type, const Akonadi::Collection &collection)
Registers the given collection as a special collection with the given type.
Definition specialcollections.cpp:244
Base class for jobs that need to run a sequence of sub-jobs in a transaction.
Definition transactionsequence.h:70
void commit()
Commits the transaction as soon as all pending sub-jobs finished successfully.
Definition transactionsequence.cpp:154
bool AKONADI_TESTS_EXPORT releaseLock()
Releases the SpecialCollectionsRequestJob lock that was obtained through GetLockJob.
Definition specialcollectionshelperjobs.cpp:655
void setCollectionAttributes(Akonadi::Collection &col, const QByteArray &type, const QMap< QByteArray, QString > &nameForType, const QMap< QByteArray, QString > &iconForType)
Sets on col the required attributes of SpecialCollection type type These are a SpecialCollectionAttri...
Definition specialcollectionshelperjobs.cpp:637
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.