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

libkdepim

  • sources
  • kde-4.14
  • kdepim
  • libkdepim
  • widgets
tagwidgets.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2014 Christian Mollekopf <mollekopf@kolabsys.com>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef KDEPIM_TAGWIDGETS_H
19 #define KDEPIM_TAGWIDGETS_H
20 
21 #include "kdepim_export.h"
22 #include <Akonadi/Tag>
23 #include <Akonadi/TagSelectionDialog>
24 #include <QWidget>
25 #include <KDialog>
26 
27 class KJob;
28 namespace Akonadi {
29  class TagWidget;
30 }
31 
32 namespace KPIM {
33 
34 class KDEPIM_EXPORT TagWidget: public QWidget
35 {
36  Q_OBJECT
37 public:
38  explicit TagWidget(QWidget* parent = 0);
39  void setSelection(const QStringList &);
40  QStringList selection() const;
41 signals:
42  void selectionChanged(const QStringList &);
43 
44 private slots:
45  void onTagCreated(KJob*);
46  void onSelectionChanged(const Akonadi::Tag::List &);
47 
48 private:
49  Akonadi::TagWidget *mTagWidget;
50  Akonadi::Tag::List mTagList;
51  QStringList mCachedTagNames;
52 };
53 
54 class KDEPIM_EXPORT TagSelectionDialog : public Akonadi::TagSelectionDialog
55 {
56  Q_OBJECT
57 public:
58  explicit TagSelectionDialog(QWidget* parent = 0);
59  void setSelection(const QStringList &);
60  QStringList selection() const;
61 
62 private slots:
63  void onTagCreated(KJob*);
64 
65 private:
66  Akonadi::Tag::List mTagList;
67 };
68 
69 }
70 
71 #endif
kdepim_export.h
QWidget
KPIM::TagSelectionDialog
Definition: tagwidgets.h:54
QStringList
KPIM::TagWidget
Definition: tagwidgets.h:34
KJob
KDEPIM_EXPORT
#define KDEPIM_EXPORT
Definition: kdepim_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

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

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
  • pimprint

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