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

akonadi

  • Akonadi
  • AgentSearchInterface
Public Member Functions | List of all members
Akonadi::AgentSearchInterface Class Referenceabstract

#include <agentsearchinterface.h>

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 41 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-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