• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • DefaultResourceJob
Public Member Functions | Protected Member Functions | List of all members
Akonadi::DefaultResourceJob Class Reference

#include <specialcollectionshelperjobs_p.h>

Inheritance diagram for Akonadi::DefaultResourceJob:
Inheritance graph
[legend]

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)
 
- Public Member Functions inherited from Akonadi::ResourceScanJob
 ResourceScanJob (const QString &resourceId, KCoreConfigSkeleton *settings, QObject *parent=0)
 
 ~ResourceScanJob ()
 
QString resourceId () const
 
Akonadi::Collection rootResourceCollection () const
 
void setResourceId (const QString &resourceId)
 
Akonadi::Collection::List specialCollections () const
 
- Public Member Functions inherited from Akonadi::Job
 Job (QObject *parent=0)
 
virtual ~Job ()
 
virtual QString errorString () const
 
void start ()
 

Protected Member Functions

virtual void doStart ()
 
virtual void slotResult (KJob *job)
 
- Protected Member Functions inherited from Akonadi::Job
virtual bool addSubjob (KJob *job)
 
virtual void doHandleResponse (const QByteArray &tag, const QByteArray &data)
 
virtual bool doKill ()
 
void emitWriteFinished ()
 
virtual bool removeSubjob (KJob *job)
 

Additional Inherited Members

- Public Types inherited from Akonadi::Job
enum  Error {
  ConnectionFailed = UserDefinedError, ProtocolVersionMismatch, UserCanceled, Unknown,
  UserError = UserDefinedError + 42
}
 
typedef QList< Job * > List
 
- Signals inherited from Akonadi::Job
void aboutToStart (Akonadi::Job *job)
 
void writeFinished (Akonadi::Job *job)
 
- Protected Slots inherited from Akonadi::Job

Detailed Description

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.

Author
Constantin Berzan exit3.nosp@m.219@.nosp@m.gmail.nosp@m..com
Since
4.4

Definition at line 116 of file specialcollectionshelperjobs_p.h.

Constructor & Destructor Documentation

DefaultResourceJob::DefaultResourceJob ( KCoreConfigSkeleton *  settings,
QObject *  parent = 0 
)
explicit

Creates a new DefaultResourceJob.

Definition at line 485 of file specialcollectionshelperjobs.cpp.

DefaultResourceJob::~DefaultResourceJob ( )

Destroys the DefaultResourceJob.

Definition at line 491 of file specialcollectionshelperjobs.cpp.

Member Function Documentation

void DefaultResourceJob::doStart ( )
protectedvirtual

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 521 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 501 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 496 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 516 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 511 of file specialcollectionshelperjobs.cpp.

void DefaultResourceJob::setTypes ( const QList< QByteArray > &  types)

Sets the list of well known special collection types.

Definition at line 506 of file specialcollectionshelperjobs.cpp.


The documentation for this class was generated from the following files:
  • specialcollectionshelperjobs_p.h
  • specialcollectionshelperjobs.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal