• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

KNotify

  • sources
  • kde-4.14
  • kde-runtime
  • knotify
knotifyplugin.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2005-2006 by Olivier Goffart <ogoffart at kde.org>
3 
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, or (at your option)
8  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
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 
19  */
20 
21 
22 
23 #ifndef KNOTIFYPLUGIN_H
24 #define KNOTIFYPLUGIN_H
25 
26 #include <QtCore/QObject>
27 #include <KPluginFactory>
28 
29 #include "knotify_export.h"
30 
31 class KNotifyPluginPrivate;
32 class KNotifyConfig;
33 
34 
44 class KNOTIFY_EXPORT KNotifyPlugin : public QObject
45 { Q_OBJECT
46  public:
47  KNotifyPlugin(QObject *parent=0l, const QVariantList &args=QVariantList());
48  virtual ~KNotifyPlugin();
49 
56  virtual QString optionName() =0;
67  virtual void notify(int id , KNotifyConfig *config )=0;
68 
72  virtual void update(int id, KNotifyConfig *config);
73 
77  virtual void close(int id);
78 
79  protected:
88  void finish(int id);
89 
90  Q_SIGNALS:
94  void finished(int id);
100  void actionInvoked(int id , int action);
101 
102  private:
103  KNotifyPluginPrivate *const d;
104 
105 };
106 
107 #define K_EXPORT_KNOTIFY_METHOD(libname,classname) \
108 K_PLUGIN_FACTORY(KNotifyMethodPluginFactory, registerPlugin<classname>();) \
109 K_EXPORT_PLUGIN(KNotifyMethodPluginFactory("knotify_method_" #libname))
110 
111 #endif
KNotifyPlugin
abstract class for KNotify actions
Definition: knotifyplugin.h:44
QObject
QString
knotify_export.h
KNotifyConfig
Represent the configuration for an event.
Definition: knotifyconfig.h:60
KNOTIFY_EXPORT
#define KNOTIFY_EXPORT
Definition: knotify_export.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNotify

Skip menu "KNotify"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

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