• 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
recentcollectionaction_p.h
1 /*
2  * Copyright (c) 2011 Laurent Montel <montel@kde.org>
3  *
4  * This library is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU Library General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
11  * License for more details.
12  *
13  * You should have received a copy of the GNU Library General Public License
14  * along with this library; see the file COPYING.LIB. If not, write to the
15  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16  * 02110-1301, USA.
17  */
18 #ifndef RECENTCOLLECTIONACTION_P_H
19 #define RECENTCOLLECTIONACTION_P_H
20 
21 #include <QStringList>
22 #include <QModelIndex>
23 #include <akonadi/collection.h>
24 #include <ksharedconfig.h>
25 
26 class QMenu;
27 class QAbstractItemModel;
28 class QAction;
36 namespace Akonadi {
37 class RecentCollectionAction : public QObject
38 {
39  Q_OBJECT
40 public:
44  explicit RecentCollectionAction(const QAbstractItemModel *model, QMenu *menu);
48  ~RecentCollectionAction();
49 
53  void addRecentCollection( Akonadi::Collection::Id id);
54 
55  void cleanRecentCollection();
56 
57 private:
58  void writeConfig();
59  void fillRecentCollection();
60  QString actionName(QModelIndex index);
61 
62 private:
63  QStringList mListRecentCollection;
64  QMenu *mMenu;
65  const QAbstractItemModel *mModel;
66  QAction *mRecentAction;
67  KSharedConfig::Ptr mAkonadiConfig;
68 };
69 }
70 
71 #endif /* RECENTCOLLECTIONACTION_P_H */
72 
Akonadi::Entity::Id
qint64 Id
Describes the unique id type.
Definition: entity.h:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 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