akonadi
Akonadi::DefaultResourceJob Class Reference
#include <specialcollectionshelperjobs_p.h>

Public Member Functions | |
DefaultResourceJob (KCoreConfigSkeleton *settings, QObject *parent=0) | |
~DefaultResourceJob () | |
void | setDefaultResourceOptions (const QVariantMap &options) |
void | setDefaultResourceType (const QString &type) |
void | setIconForTypeMap (const QMap< QByteArray, QString > &map) |
void | setNameForTypeMap (const QMap< QByteArray, QString > &map) |
void | setTypes (const QList< QByteArray > &types) |
Protected Member Functions | |
virtual void | doStart () |
virtual void | slotResult (KJob *job) |
Detailed Description
For internal use only.
Helper job for SpecialCollectionsRequestJob.A custom ResourceScanJob for the default local folders resource. This is a maildir resource stored in ~/.local/share/local-mail.This job does two things that a regular ResourceScanJob does not do: 1) It creates and syncs the resource if it is missing. The resource ID is stored in a config file named specialcollectionsrc. 2) If the resource had to be recreated, but the folders existed on disk before that, it recovers the folders based on name. For instance, it will give a folder named outbox a SpecialCollectionAttribute of type Outbox.
- Since:
- 4.4
Definition at line 117 of file specialcollectionshelperjobs_p.h.
Constructor & Destructor Documentation
DefaultResourceJob::DefaultResourceJob | ( | KCoreConfigSkeleton * | settings, | |
QObject * | parent = 0 | |||
) | [explicit] |
Creates a new DefaultResourceJob.
Definition at line 454 of file specialcollectionshelperjobs.cpp.
DefaultResourceJob::~DefaultResourceJob | ( | ) |
Destroys the DefaultResourceJob.
Definition at line 460 of file specialcollectionshelperjobs.cpp.
Member Function Documentation
void DefaultResourceJob::doStart | ( | ) | [protected, virtual] |
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.
Reimplemented from Akonadi::ResourceScanJob.
Definition at line 490 of file specialcollectionshelperjobs.cpp.
void DefaultResourceJob::setDefaultResourceOptions | ( | const QVariantMap & | options | ) |
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 470 of file specialcollectionshelperjobs.cpp.
void DefaultResourceJob::setDefaultResourceType | ( | const QString & | type | ) |
Sets the type
of the resource that shall be created if the requested special collection does not exist yet.
Definition at line 465 of file specialcollectionshelperjobs.cpp.
void DefaultResourceJob::setIconForTypeMap | ( | const QMap< QByteArray, QString > & | map | ) |
Sets the map
of special collection types to icon names.
Definition at line 485 of file specialcollectionshelperjobs.cpp.
void DefaultResourceJob::setNameForTypeMap | ( | const QMap< QByteArray, QString > & | map | ) |
Sets the map
of special collection types to display names.
Definition at line 480 of file specialcollectionshelperjobs.cpp.
void DefaultResourceJob::setTypes | ( | const QList< QByteArray > & | types | ) |
Sets the list of well known special collection types
.
Definition at line 475 of file specialcollectionshelperjobs.cpp.
The documentation for this class was generated from the following files: