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

akonadi

  • Akonadi
  • AgentSearchInterface
Public Member Functions
Akonadi::AgentSearchInterface Class Reference

#include <agentsearchinterface.h>

List of all members.

Public Member Functions

 AgentSearchInterface ()
virtual ~AgentSearchInterface ()
virtual void addSearch (const QString &query, const QString &queryLanguage, const Akonadi::Collection &resultCollection)=0
virtual void removeSearch (const Akonadi::Collection &resultCollection)=0

Detailed Description

An interface for agents (or resources) that support searching in their backend.

Inherit from this additionally to Akonadi::AgentBase (or Akonadi::ResourceBase) and implement its two pure virtual methods.

Make sure to add the Search capability to the agent desktop file.

Since:
4.5

Definition at line 40 of file agentsearchinterface.h.


Constructor & Destructor Documentation

AgentSearchInterface::AgentSearchInterface ( )

Creates a new agent search interface.

Definition at line 46 of file agentsearchinterface.cpp.

AgentSearchInterface::~AgentSearchInterface ( )
virtual

Destroys the agent search interface.

Definition at line 51 of file agentsearchinterface.cpp.


Member Function Documentation

virtual void Akonadi::AgentSearchInterface::addSearch ( const QString &  query,
const QString &  queryLanguage,
const Akonadi::Collection &  resultCollection 
)
pure virtual

Adds a new search.

Parameters:
queryThe query string, using the language specified in queryLanguage
queryLanguageThe query language used for query
resultCollectionThe destination collection for the search results. It's a virtual collection, results can be added/removed using Akonadi::LinkJob and Akonadi::UnlinkJob respectively.
virtual void Akonadi::AgentSearchInterface::removeSearch ( const Akonadi::Collection &  resultCollection)
pure virtual

Removes a previously added search.

Parameters:
resultCollectionThe result collection given in an previous addSearch() call. You do not need to take care of deleting results in there, the collection is just provided as a way to identify the search.

The documentation for this class was generated from the following files:
  • agentsearchinterface.h
  • agentsearchinterface.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:32 by doxygen 1.8.1.1 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-4.9.1 API Reference

Skip menu "kdepimlibs-4.9.1 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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