• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::SearchCreateJob

Akonadi::SearchCreateJob Class Reference

#include <searchcreatejob.h>

Inheritance diagram for Akonadi::SearchCreateJob:

Inheritance graph
[legend]

List of all members.


Detailed Description

Job that creates a virtual/search collection in the Akonadi storage.

This job creates so called virtual or search collections, which don't contain real data, but references to items that match a given search query.

 const QString name = "My search folder";
 const QString query = "...";

 Akonadi::SearchCreateJob *job = new Akonadi::SearchCreateJob( name, query );
 if ( job->exec() )
   qDebug() << "Created search folder successfully";
 else
   qDebug() << "Error occurred";

Todo:
Add method that returns the new search collection.
Author:
Volker Krause <vkrause@kde.org>

Definition at line 52 of file searchcreatejob.h.


Public Member Functions

 SearchCreateJob (const QString &name, const QString &query, QObject *parent=0)
 ~SearchCreateJob ()

Protected Member Functions

void doStart ()

Constructor & Destructor Documentation

SearchCreateJob::SearchCreateJob ( const QString &  name,
const QString &  query,
QObject *  parent = 0 
)

Creates a search create job.

Parameters:
name The name of the search collection.
query The search query (format not defined yet).
parent The parent object.

Definition at line 39 of file searchcreatejob.cpp.

SearchCreateJob::~SearchCreateJob (  ) 

Destroys the search create job.

Definition at line 48 of file searchcreatejob.cpp.


Member Function Documentation

void SearchCreateJob::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.

Implements Akonadi::Job.

Definition at line 52 of file searchcreatejob.cpp.


The documentation for this class was generated from the following files:
  • searchcreatejob.h
  • searchcreatejob.cpp

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.6
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal