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

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
  • interfaces
  • korganizer
part.h
Go to the documentation of this file.
1 /*
2  This file is part of the KOrganizer interfaces.
3 
4  Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KORG_INTERFACES_PART_H
23 #define KORG_INTERFACES_PART_H
24 
25 #include "korganizer/mainwindow.h"
26 
27 #include <KPluginFactory>
28 #include <KParts/Part>
29 
30 #include <QWidget>
31 
32 namespace KOrg {
33 
34 class Part : public KParts::Part
35 {
36  public:
37  static int interfaceVersion()
38  {
39  return 2;
40  }
41 
42  static QString serviceType()
43  {
44  return QLatin1String( "KOrganizer/Part" );
45  }
46 
47  typedef QList<Part*> List;
48 
49  explicit Part( MainWindow *parent )
50  : KParts::Part( parent ? ( parent->topLevelWidget() ) : 0 ), mMainWindow( parent )
51  {
52  }
53 
54  virtual ~Part()
55  {
56  }
57 
58  virtual QString info() = 0;
59 
61  virtual QString shortInfo() = 0;
62 
63  MainWindow *mainWindow()
64  {
65  return mMainWindow;
66  }
67 
68  private:
69  MainWindow *mMainWindow;
70 };
71 
72 class PartFactory : public KPluginFactory
73 {
74  public:
75  virtual Part *createPluginFactory( MainWindow *parent ) = 0;
76 
77  protected:
78  virtual QObject *createObject( QObject *, const char *, const QStringList & )
79  {
80  return 0;
81  }
82 };
83 
84 }
85 
86 #endif
KOrg::Part::interfaceVersion
static int interfaceVersion()
Definition: part.h:37
KOrg::Part::serviceType
static QString serviceType()
Definition: part.h:42
QObject
KOrg::Part::~Part
virtual ~Part()
Definition: part.h:54
KOrg::Part
Definition: part.h:34
KOrg::Part::List
QList< Part * > List
Definition: part.h:47
KOrg::PartFactory
Definition: part.h:72
mainwindow.h
KOrg::MainWindow
interface for korganizer main window
Definition: mainwindow.h:44
KOrg::Part::mainWindow
MainWindow * mainWindow()
Definition: part.h:63
KOrg::Part::Part
Part(MainWindow *parent)
Definition: part.h:49
KOrg::PartFactory::createObject
virtual QObject * createObject(QObject *, const char *, const QStringList &)
Definition: part.h:78
KOrg::PartFactory::createPluginFactory
virtual Part * createPluginFactory(MainWindow *parent)=0
KPluginFactory
KOrg::Part::info
virtual QString info()=0
KOrg::Part::shortInfo
virtual QString shortInfo()=0
short name of the part, used as category in the keybindings dialog
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

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

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