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

akonadi/contact

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

#include <recentcontactscollectionrequestjob.h>

Inherits SpecialCollectionsRequestJob.

List of all members.

Public Member Functions

 RecentContactsCollectionRequestJob (QObject *parent=0)
 ~RecentContactsCollectionRequestJob ()
void requestCollection (const AgentInstance &instance)
void requestDefaultCollection ()

Detailed Description

A job to request the collection used for storing recent contacts.

Use this job to retrieve the collection that is used for storing recent contacts (e.g. by email clients).

Example:

 RecentContactsCollectionRequestJob *job = new RecentContactsCollectionRequestJob( this );
 job->requestDefaultCollection();
 connect( job, SIGNAL( result( KJob* ) ), this, SLOT( requestDone( KJob* ) ) );

 ...

 MyClass::requestDone( KJob *job )
 {
   if ( job->error() )
     return;

   RecentContactsCollectionRequestJob *requestJob = qobject_cast<RecentContactsCollectionRequestJob*>( job );

   const Collection collection = requestJob->collection();
   ...
 }
Author:
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org
Since:
4.4

Definition at line 65 of file recentcontactscollectionrequestjob.h.


Constructor & Destructor Documentation

RecentContactsCollectionRequestJob::RecentContactsCollectionRequestJob ( QObject *  parent = 0) [explicit]

Creates a new recent contacts collection request job.

Definition at line 36 of file recentcontactscollectionrequestjob.cpp.

RecentContactsCollectionRequestJob::~RecentContactsCollectionRequestJob ( )

Destroys the recent contacts collection request job.

Definition at line 58 of file recentcontactscollectionrequestjob.cpp.


Member Function Documentation

void RecentContactsCollectionRequestJob::requestCollection ( const AgentInstance &  instance)

Requests the recent contacts collection in the given resource instance.

Definition at line 67 of file recentcontactscollectionrequestjob.cpp.

void RecentContactsCollectionRequestJob::requestDefaultCollection ( )

Requests the recent contacts collection in the default resource.

Definition at line 62 of file recentcontactscollectionrequestjob.cpp.


The documentation for this class was generated from the following files:
  • recentcontactscollectionrequestjob.h
  • recentcontactscollectionrequestjob.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:49:35 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi/contact

Skip menu "akonadi/contact"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 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