Akonadi::SpecialCollectionsRequestJob
#include <specialcollectionsrequestjob.h>
Detailed Description
A job to request SpecialCollections.
Use this job to request the SpecialCollections you need. You can request both default SpecialCollections and SpecialCollections in a given resource. The default SpecialCollections resource is created when the first default SpecialCollection is requested, but if a SpecialCollection in a custom resource is requested, this job expects that resource to exist already.
If the folders you requested already exist, this job simply succeeds. Otherwise, it creates the required collections and registers them with SpecialCollections.
This class is not meant to be used directly but as a base class for type specific special collection request jobs.
- Since
- 4.4
Definition at line 41 of file specialcollectionsrequestjob.h.
Constructor & Destructor Documentation
◆ ~SpecialCollectionsRequestJob()
|
overridedefault |
Destroys the special collections request job.
◆ SpecialCollectionsRequestJob()
|
explicitprotected |
Creates a new special collections request job.
- Parameters
-
collections The SpecialCollections object that shall be used. parent The parent object.
Definition at line 260 of file specialcollectionsrequestjob.cpp.
Member Function Documentation
◆ collection()
Akonadi::Collection SpecialCollectionsRequestJob::collection | ( | ) | const |
Returns the requested collection.
Definition at line 283 of file specialcollectionsrequestjob.cpp.
◆ doStart()
|
overrideprotectedvirtual |
This method must be reimplemented in the concrete jobs.
It will be called after the job has been started and a connection to the Akonadi backend has been established.
Implements Akonadi::Job.
Definition at line 317 of file specialcollectionsrequestjob.cpp.
◆ requestCollection()
void SpecialCollectionsRequestJob::requestCollection | ( | const QByteArray & | type, |
const AgentInstance & | instance ) |
Requests a special collection of the given type
in the given resource instance
.
Definition at line 276 of file specialcollectionsrequestjob.cpp.
◆ requestDefaultCollection()
void SpecialCollectionsRequestJob::requestDefaultCollection | ( | const QByteArray & | type | ) |
Requests a special collection of the given type
in the default resource.
Definition at line 269 of file specialcollectionsrequestjob.cpp.
◆ setDefaultResourceOptions()
|
protected |
Sets the configuration options
that shall be applied to the new resource that is created if the requested special collection does not exist yet.
Definition at line 297 of file specialcollectionsrequestjob.cpp.
◆ setDefaultResourceType()
Sets the type
of the resource that shall be created if the requested special collection does not exist yet.
Definition at line 292 of file specialcollectionsrequestjob.cpp.
◆ setIconForTypeMap()
|
protected |
Sets the map
of special collection types to icon names.
Definition at line 312 of file specialcollectionsrequestjob.cpp.
◆ setNameForTypeMap()
|
protected |
Sets the map
of special collection types to display names.
Definition at line 307 of file specialcollectionsrequestjob.cpp.
◆ setTypes()
|
protected |
Sets the list of well known special collection types
.
Definition at line 302 of file specialcollectionsrequestjob.cpp.
◆ slotResult()
Reimplemented from KCompositeJob.
Definition at line 330 of file specialcollectionsrequestjob.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.