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

akonadi

  • sources
  • kde-4.14
  • kdepimlibs
  • akonadi
agentinstancewidget.h
1 /*
2  Copyright (c) 2006-2008 Tobias Koenig <tokoe@kde.org>
3  Copyright (c) 2012 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_AGENTINSTANCEWIDGET_H
22 #define AKONADI_AGENTINSTANCEWIDGET_H
23 
24 #include "akonadi_export.h"
25 
26 #include <QWidget>
27 
28 class QAbstractItemView;
29 namespace Akonadi {
30 
31 class AgentInstance;
32 class AgentFilterProxyModel;
33 
66 class AKONADI_EXPORT AgentInstanceWidget : public QWidget
67 {
68  Q_OBJECT
69 
70 public:
76  explicit AgentInstanceWidget(QWidget *parent = 0);
77 
81  ~AgentInstanceWidget();
82 
87  AgentInstance currentAgentInstance() const;
88 
93  QList<AgentInstance> selectedAgentInstances() const;
94 
99  AgentFilterProxyModel *agentFilterProxyModel() const;
100 
105  QAbstractItemView *view() const;
106 
107 Q_SIGNALS:
114  void currentChanged(const Akonadi::AgentInstance &current, const Akonadi::AgentInstance &previous);
115 
121  void doubleClicked(const Akonadi::AgentInstance &current);
122 
129  void clicked(const Akonadi::AgentInstance &current);
130 
131 private:
132  //@cond PRIVATE
133  class Private;
134  Private *const d;
135 
136  Q_PRIVATE_SLOT(d, void currentAgentInstanceChanged(const QModelIndex &, const QModelIndex &))
137  Q_PRIVATE_SLOT(d, void currentAgentInstanceDoubleClicked(const QModelIndex &))
138  Q_PRIVATE_SLOT(d, void currentAgentInstanceClicked(const QModelIndex &currentIndex))
139  //@endcond
140 };
141 
142 }
143 
144 #endif
QModelIndex
QWidget
QAbstractItemView
QList< AgentInstance >
Akonadi::AgentInstanceWidget
Provides a widget that lists all available agent instances.
Definition: agentinstancewidget.h:66
Akonadi::AgentFilterProxyModel
A proxy model for filtering AgentType or AgentInstance.
Definition: agentfilterproxymodel.h:52
Akonadi::AgentInstance
A representation of an agent instance.
Definition: agentinstance.h:62
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 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
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

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