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

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
collectionselection.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2009 KDAB
3  Author: Frank Osterfeld <frank@kdab.net>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 
19  As a special exception, permission is given to link this program
20  with any edition of Qt, and distribute the resulting executable,
21  without including the source code for Qt in the source distribution.
22 */
23 
24 #ifndef CALENDARSUPPORT_COLLECTIONSELECTION_H
25 #define CALENDARSUPPORT_COLLECTIONSELECTION_H
26 
27 #include "calendarsupport_export.h"
28 
29 #include <QObject>
30 
31 #include <Akonadi/Collection>
32 
33 class QItemSelection;
34 class QItemSelectionModel;
35 
36 namespace CalendarSupport {
37 
38 class CALENDARSUPPORT_EXPORT CollectionSelection : public QObject
39 {
40  Q_OBJECT
41  public:
42  explicit CollectionSelection( QItemSelectionModel *selectionModel, QObject *parent = 0 );
43  ~CollectionSelection();
44 
45  QItemSelectionModel *model() const;
46  Akonadi::Collection::List selectedCollections() const;
47  QList<Akonadi::Collection::Id> selectedCollectionIds() const;
48  bool contains( const Akonadi::Collection &c ) const;
49  bool contains( const Akonadi::Collection::Id &id ) const;
50 
51  bool hasSelection() const;
52 
53  Q_SIGNALS:
54  void selectionChanged( const Akonadi::Collection::List &selected,
55  const Akonadi::Collection::List &deselected );
56  void collectionDeselected( const Akonadi::Collection & );
57  void collectionSelected( const Akonadi::Collection & );
58 
59  private Q_SLOTS:
60  void slotSelectionChanged( const QItemSelection &, const QItemSelection & );
61 
62  private:
63  class Private;
64  Private *const d;
65 };
66 
67 }
68 
69 #endif
QObject
calendarsupport_export.h
CalendarSupport::CollectionSelection
Definition: collectionselection.h:38
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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