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

calendarsupport

  • sources
  • kde-4.12
  • kdepim
  • calendarsupport
plugin.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 #ifndef CALENDARSUPPORT_PLUGIN_H
20 #define CALENDARSUPPORT_PLUGIN_H
21 
22 #include <KLocale>
23 #include <KPluginFactory>
24 
25 namespace CalendarSupport {
26 
35 class Plugin
36 {
37 
38  enum {
39  INTERFACE_VERSION = 2
40  };
41 
42  public:
43  static int interfaceVersion() { return INTERFACE_VERSION; }
44 
45  static QString serviceType() { return QLatin1String( "Calendar/Plugin" ); }
46 
47  Plugin() {}
48  virtual ~Plugin() {}
49 
50  virtual QString info() const = 0;
51 
52  virtual void configure( QWidget * ) {}
53 };
54 
55 class PluginFactory : public KPluginFactory
56 {
57  public:
58  virtual Plugin *createPluginFactory() = 0;
59 
60  protected:
61  virtual QObject *createObject( QObject *, const char *, const QStringList & )
62  { return 0; }
63 };
64 
65 }
66 
67 #endif
CalendarSupport::Plugin::interfaceVersion
static int interfaceVersion()
Definition: plugin.h:43
CalendarSupport::Plugin::configure
virtual void configure(QWidget *)
Definition: plugin.h:52
CalendarSupport::PluginFactory
Definition: plugin.h:55
QWidget
CalendarSupport::Plugin::info
virtual QString info() const =0
QObject
CalendarSupport::Plugin::~Plugin
virtual ~Plugin()
Definition: plugin.h:48
CalendarSupport::Plugin
Specifies the plugin interface.
Definition: plugin.h:35
CalendarSupport::Plugin::serviceType
static QString serviceType()
Definition: plugin.h:45
CalendarSupport::PluginFactory::createObject
virtual QObject * createObject(QObject *, const char *, const QStringList &)
Definition: plugin.h:61
CalendarSupport::Plugin::Plugin
Plugin()
Definition: plugin.h:47
CalendarSupport::PluginFactory::createPluginFactory
virtual Plugin * createPluginFactory()=0
KPluginFactory
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

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

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

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