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

akonadi

  • akonadi
collectiondialog.h
1/*
2 Copyright 2008 Ingo Klöcker <kloecker@kde.org>
3 Copyright 2010 Laurent Montel <montel@kde.org>
4
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
9
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
19*/
20
21#ifndef AKONADI_COLLECTIONDIALOG_H
22#define AKONADI_COLLECTIONDIALOG_H
23
24#include "akonadi_export.h"
25
26#include <kdialog.h>
27
28#include <akonadi/collection.h>
29
30#include <QAbstractItemView>
31
32namespace Akonadi {
33
67class AKONADI_EXPORT CollectionDialog : public KDialog
68{
69 Q_OBJECT
70 Q_DISABLE_COPY(CollectionDialog)
71
72public:
73 /* @since 4.6
74 */
75 enum CollectionDialogOption {
76 None = 0,
77 AllowToCreateNewChildCollection = 1,
78 KeepTreeExpanded = 2
79 };
80
81 Q_DECLARE_FLAGS(CollectionDialogOptions, CollectionDialogOption)
82
83
88 explicit CollectionDialog(QWidget *parent = 0);
89
101 explicit CollectionDialog(QAbstractItemModel *model, QWidget *parent = 0);
102
116 explicit CollectionDialog(CollectionDialogOptions options, QAbstractItemModel *model = 0, QWidget *parent = 0);
117
121 ~CollectionDialog();
122
128 void setMimeTypeFilter(const QStringList &mimeTypes);
129
133 QStringList mimeTypeFilter() const;
134
140 void setAccessRightsFilter(Collection::Rights rights);
141
147 Collection::Rights accessRightsFilter() const;
148
154 void setDescription(const QString &text);
155
161 void setDefaultCollection(const Collection &collection);
162
169 void setSelectionMode(QAbstractItemView::SelectionMode mode);
170
175 QAbstractItemView::SelectionMode selectionMode() const;
176
182 Akonadi::Collection selectedCollection() const;
183
187 Akonadi::Collection::List selectedCollections() const;
188
194 void changeCollectionDialogOptions(CollectionDialogOptions options);
195
199 void setUseFolderByDefault(bool b);
203 bool useFolderByDefault() const;
208 void setContentMimeTypes(const QStringList &mimetypes);
209
210private:
211 //@cond PRIVATE
212 class Private;
213 Private *const d;
214
215 Q_PRIVATE_SLOT(d, void slotCollectionAvailable(const QModelIndex &))
216 Q_PRIVATE_SLOT(d, void slotSelectionChanged())
217 Q_PRIVATE_SLOT(d, void slotAddChildCollection())
218 Q_PRIVATE_SLOT(d, void slotCollectionCreationResult(KJob *job))
219 Q_PRIVATE_SLOT(d, void slotFilterFixedString(const QString &))
220 Q_PRIVATE_SLOT(d, void slotDoubleClicked())
221 //@endcond
222};
223
224} // namespace Akonadi
225
226#endif // AKONADI_COLLECTIONDIALOG_H
Akonadi::CollectionDialog
A collection selection dialog.
Definition collectiondialog.h:68
Akonadi::Collection
Represents a collection of PIM items.
Definition collection.h:76
Akonadi::Collection::List
QList< Collection > List
Describes a list of collections.
Definition collection.h:81
Akonadi
FreeBusyManager::Singleton.
Definition actionstatemanager_p.h:28
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • 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