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

akonadi

  • sources
  • kde-4.12
  • kdepimlibs
  • 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 
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 
196  private:
197  //@cond PRIVATE
198  class Private;
199  Private * const d;
200 
201  Q_PRIVATE_SLOT( d, void slotCollectionAvailable( const QModelIndex& ) )
202  Q_PRIVATE_SLOT( d, void slotSelectionChanged() )
203  Q_PRIVATE_SLOT( d, void slotAddChildCollection() )
204  Q_PRIVATE_SLOT( d, void slotCollectionCreationResult(KJob* job) )
205  Q_PRIVATE_SLOT( d, void slotFilterFixedString( const QString & ) )
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 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