akonadi
#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 | setContentMimeTypes (const QStringList &mimetypes) |
void | setMimeTypeFilter (const QStringList &mimeTypes) |
Protected Member Functions | |
void | changeEvent (QEvent *event) |
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:
- Since
- 4.3
Definition at line 58 of file collectionrequester.h.
Constructor & Destructor Documentation
|
explicit |
Creates a collection requester.
- Parameters
-
parent The parent widget.
Definition at line 165 of file collectionrequester.cpp.
|
explicit |
Creates a collection requester with an initial collection
.
- Parameters
-
collection The initial collection. parent The parent widget.
Definition at line 172 of file collectionrequester.cpp.
CollectionRequester::~CollectionRequester | ( | ) |
Destroys the collection requester.
Definition at line 180 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 226 of file collectionrequester.cpp.
void CollectionRequester::changeCollectionDialogOptions | ( | CollectionDialog::CollectionDialogOptions | options | ) |
- Parameters
-
options new collection dialog options
Definition at line 235 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 185 of file collectionrequester.cpp.
|
signal |
This signal is emitted when the selected collection has changed.
- Parameters
-
collection The selected collection.
- Since
- 4.5
QStringList CollectionRequester::mimeTypeFilter | ( | ) | const |
Returns the mime types any of which the selected collection shall support.
Definition at line 210 of file collectionrequester.cpp.
void CollectionRequester::setAccessRightsFilter | ( | Collection::Rights | rights | ) |
Sets the access rights
that the listed collections shall match with.
- Parameters
-
rights the access rights to set
- Since
- 4.4
Definition at line 219 of file collectionrequester.cpp.
|
slot |
Sets the collection
of the requester.
Definition at line 190 of file collectionrequester.cpp.
void CollectionRequester::setContentMimeTypes | ( | const QStringList & | mimetypes | ) |
Allow to specify collection content mimetype when we create new one.
- Since
- 4.14.6
Definition at line 242 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 203 of file collectionrequester.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.