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

akonadi

  • akonadi
  • calendar
standardcalendaractionmanager.h
1 /*
2  * Copyright (C) 2010 Casey Link <unnamedrambler@gmail.com>
3  * Copyright (C) 2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4  * Copyright (c) 2009 - 2010 Tobias Koenig <tokoe@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Library General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or (at your
9  * option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  * License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef AKONADI_STANDARDCALENDARACTIONMANAGER_H
23 #define AKONADI_STANDARDCALENDARACTIONMANAGER_H
24 
25 #include "akonadi-calendar_export.h"
26 
27 #include <akonadi/standardactionmanager.h>
28 
29 #include <QtCore/QObject>
30 
31 //needed for windows ce, its defined somewhere
32 #undef CreateEvent
33 
34 class KAction;
35 class KActionCollection;
36 class QItemSelectionModel;
37 class QWidget;
38 
39 namespace Akonadi
40 {
41 
42 class Item;
49 class AKONADI_CALENDAR_EXPORT StandardCalendarActionManager : public QObject
50 {
51  Q_OBJECT
52 
53  public:
57  enum Type {
58  CreateEvent = StandardActionManager::LastType + 1,
59  CreateTodo,
60  CreateSubTodo,
61  CreateJournal,
62  EditIncidence,
63  LastType
64  };
65 
72  explicit StandardCalendarActionManager( KActionCollection *actionCollection, QWidget *parent = 0 );
73 
77  ~StandardCalendarActionManager();
78 
84  void setCollectionSelectionModel( QItemSelectionModel *selectionModel );
85 
90  void setItemSelectionModel( QItemSelectionModel* selectionModel );
91 
97  KAction* createAction( Type type );
98 
104  KAction* createAction( StandardActionManager::Type type );
105 
110  void createAllActions();
111 
115  KAction* action( Type type ) const;
116 
120  KAction* action( StandardActionManager::Type type ) const;
121 
134  void setActionText( StandardActionManager::Type type, const KLocalizedString &text );
135 
143  void interceptAction( Type type, bool intercept = true );
144 
152  void interceptAction( StandardActionManager::Type type, bool intercept = true );
153 
158  Akonadi::Collection::List selectedCollections() const;
159 
164  Akonadi::Item::List selectedItems() const;
165 
169  void setContextText( StandardActionManager::Type type, StandardActionManager::TextContext context, const QString &text );
170 
174  void setContextText( StandardActionManager::Type type, StandardActionManager::TextContext context, const KLocalizedString &text );
175 
176  void setCollectionPropertiesPageNames( const QStringList &names );
177 
178  Q_SIGNALS:
184  void actionStateUpdated();
185 
186  private:
187  //@cond PRIVATE
188  class Private;
189  Private* const d;
190 
191  Q_PRIVATE_SLOT( d, void slotCreateEvent() )
192  Q_PRIVATE_SLOT( d, void slotCreateTodo() )
193  Q_PRIVATE_SLOT( d, void slotCreateSubTodo() )
194  Q_PRIVATE_SLOT( d, void slotCreateJournal() )
195  Q_PRIVATE_SLOT( d, void slotEditIncidence() )
196  Q_PRIVATE_SLOT( d, void updateActions() )
197  //@endcond
198 };
199 
200 }
201 
202 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue Dec 11 2012 12:14:35 by doxygen 1.8.1.2 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.9.4 API Reference

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