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

akonadi

  • Akonadi
  • CollectionRequester
Public Slots | Signals | Public Member Functions | List of all members
Akonadi::CollectionRequester Class Reference

#include <collectionrequester.h>

Inherits KHBox.

Public Slots

void setCollection (const Akonadi::Collection &collection)
 

Signals

void collectionChanged (const Akonadi::Collection &collection)
 

Public Member Functions

 CollectionRequester (QWidget *parent=0)
 
 CollectionRequester (const Akonadi::Collection &collection, QWidget *parent=0)
 
 ~CollectionRequester ()
 
Collection::Rights accessRightsFilter () const
 
void changeCollectionDialogOptions (CollectionDialog::CollectionDialogOptions options)
 
Akonadi::Collection collection () const
 
QStringList mimeTypeFilter () const
 
void setAccessRightsFilter (Collection::Rights rights)
 
void setMimeTypeFilter (const QStringList &mimeTypes)
 

Detailed Description

A widget to request an Akonadi collection from the user.

This class is a widget showing a read-only lineedit displaying the currently chosen collection and a button invoking a dialog for choosing a collection.

Example:

// create a collection requester to select a collection of contacts
Akonadi::CollectionRequester requester( Akonadi::Collection::root(), this );
requester.setMimeTypeFilter( QStringList() << QString( "text/directory" ) );
...
const Akonadi::Collection collection = requester.collection();
if ( collection.isValid() ) {
...
}
Author
Ingo Klöcker kloec.nosp@m.ker@.nosp@m.kde.o.nosp@m.rg
Since
4.3

Definition at line 58 of file collectionrequester.h.

Constructor & Destructor Documentation

CollectionRequester::CollectionRequester ( QWidget *  parent = 0)
explicit

Creates a collection requester.

Parameters
parentThe parent widget.

Definition at line 136 of file collectionrequester.cpp.

CollectionRequester::CollectionRequester ( const Akonadi::Collection &  collection,
QWidget *  parent = 0 
)
explicit

Creates a collection requester with an initial collection.

Parameters
collectionThe initial collection.
parentThe parent widget.

Definition at line 143 of file collectionrequester.cpp.

CollectionRequester::~CollectionRequester ( )

Destroys the collection requester.

Definition at line 151 of file collectionrequester.cpp.

Member Function Documentation

Collection::Rights CollectionRequester::accessRightsFilter ( ) const

Returns the access rights that the listed collections shall match with.

Since
4.4

Definition at line 198 of file collectionrequester.cpp.

void CollectionRequester::changeCollectionDialogOptions ( CollectionDialog::CollectionDialogOptions  options)
Parameters
optionsnew collection dialog options

Definition at line 207 of file collectionrequester.cpp.

Collection CollectionRequester::collection ( ) const

Returns the currently chosen collection, or an empty collection if none none was chosen.

Definition at line 156 of file collectionrequester.cpp.

void Akonadi::CollectionRequester::collectionChanged ( const Akonadi::Collection &  collection)
signal

This signal is emitted when the selected collection has changed.

Parameters
collectionThe selected collection.
Since
4.5
QStringList CollectionRequester::mimeTypeFilter ( ) const

Returns the mime types any of which the selected collection shall support.

Definition at line 182 of file collectionrequester.cpp.

void CollectionRequester::setAccessRightsFilter ( Collection::Rights  rights)

Sets the access rights that the listed collections shall match with.

Parameters
rightsthe access rights to set
Since
4.4

Definition at line 191 of file collectionrequester.cpp.

void CollectionRequester::setCollection ( const Akonadi::Collection &  collection)
slot

Sets the collection of the requester.

Definition at line 161 of file collectionrequester.cpp.

void CollectionRequester::setMimeTypeFilter ( const QStringList &  mimeTypes)

Sets the mime types any of which the selected collection shall support.

Definition at line 175 of file collectionrequester.cpp.


The documentation for this class was generated from the following files:
  • collectionrequester.h
  • collectionrequester.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