• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.11.3 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 
32 namespace Akonadi {
33 
67 class AKONADI_EXPORT CollectionDialog : public KDialog
68 {
69  Q_OBJECT
70  Q_DISABLE_COPY( CollectionDialog )
71 
72  public:
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 
84 
89  explicit CollectionDialog( QWidget *parent = 0 );
90 
102  explicit CollectionDialog( QAbstractItemModel *model, QWidget *parent = 0 );
103 
117  explicit CollectionDialog( CollectionDialogOptions options, QAbstractItemModel *model = 0, QWidget *parent = 0 );
118 
122  ~CollectionDialog();
123 
129  void setMimeTypeFilter( const QStringList &mimeTypes );
130 
134  QStringList mimeTypeFilter() const;
135 
141  void setAccessRightsFilter( Collection::Rights rights );
142 
148  Collection::Rights accessRightsFilter() const;
149 
155  void setDescription( const QString &text );
156 
162  void setDefaultCollection( const Collection &collection );
163 
170  void setSelectionMode( QAbstractItemView::SelectionMode mode );
171 
176  QAbstractItemView::SelectionMode selectionMode() const;
177 
183  Akonadi::Collection selectedCollection() const;
184 
188  Akonadi::Collection::List selectedCollections() const;
189 
195  void changeCollectionDialogOptions( CollectionDialogOptions options );
196 
197  private:
198  //@cond PRIVATE
199  class Private;
200  Private * const d;
201 
202  Q_PRIVATE_SLOT( d, void slotCollectionAvailable( const QModelIndex& ) )
203  Q_PRIVATE_SLOT( d, void slotSelectionChanged() )
204  Q_PRIVATE_SLOT( d, void slotAddChildCollection() )
205  Q_PRIVATE_SLOT( d, void slotCollectionCreationResult(KJob* job) )
206  //@endcond
207 };
208 
209 } // namespace Akonadi
210 
211 #endif // AKONADI_COLLECTIONDIALOG_H
Akonadi::CollectionDialog
A collection selection dialog.
Definition: collectiondialog.h:67
Akonadi::Collection
Represents a collection of PIM items.
Definition: collection.h:75
Akonadi::Collection::List
QList< Collection > List
Describes a list of collections.
Definition: collection.h:81
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:03:16 by doxygen 1.8.5 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-4.11.3 API Reference

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