• 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
kocore.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License along
18  with this program; if not, write to the Free Software Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 
26 #ifndef KORG_KOCORE_H
27 #define KORG_KOCORE_H
28 
29 #include "korganizer_export.h"
30 #include "korganizer/part.h"
31 #include "korganizer/printplugin.h"
32 
33 #include <calendarviews/agenda/calendardecoration.h>
34 
35 #include <KService>
36 
37 namespace KPIMIdentities {
38  class IdentityManager;
39 }
40 
41 class KORGANIZER_CORE_EXPORT KOCore
42 {
43  public:
44  ~KOCore();
45 
46  static KOCore *self();
47 
48  KService::List availablePlugins();
49  KService::List availableCalendarDecorations();
50  KService::List availableParts();
51  KService::List availablePrintPlugins();
52 
53  CalendarSupport::Plugin *loadPlugin( KService::Ptr service );
54  CalendarSupport::Plugin *loadPlugin( const QString & );
55 
56  EventViews::CalendarDecoration::Decoration *loadCalendarDecoration( KService::Ptr service );
57  EventViews::CalendarDecoration::Decoration *loadCalendarDecoration( const QString & );
58 
59  KOrg::Part *loadPart( KService::Ptr, KOrg::MainWindow *parent );
60  KOrg::Part *loadPart( const QString &, KOrg::MainWindow *parent );
61 
62  KOrg::PrintPlugin *loadPrintPlugin( KService::Ptr service );
63  KOrg::PrintPlugin *loadPrintPlugin( const QString & );
64  KOrg::PrintPlugin::List loadPrintPlugins();
65  EventViews::CalendarDecoration::Decoration::List loadCalendarDecorations();
66  KOrg::Part::List loadParts( KOrg::MainWindow *parent );
67 
68  void addXMLGUIClient( QWidget *, KXMLGUIClient *guiclient );
69  void removeXMLGUIClient( QWidget * );
70  KXMLGUIClient *xmlguiClient( QWidget * ) const;
71 
78  void unloadParts( KOrg::MainWindow *parent, KOrg::Part::List &parts );
79  void unloadPlugins();
80 
81  void reloadPlugins();
82 
89  KOrg::Part::List reloadParts( KOrg::MainWindow *parent, KOrg::Part::List &parts );
90 
91  KPIMIdentities::IdentityManager *identityManager();
92 
93  protected:
94  KOCore();
95  KService::List availablePlugins( const QString &type, int pluginInterfaceVersion = -1 );
96 
97  private:
98  static KOCore *mSelf;
99 
100  EventViews::CalendarDecoration::Decoration::List mCalendarDecorations;
101  bool mCalendarDecorationsLoaded;
102 
103  QMap<QWidget*, KXMLGUIClient*> mXMLGUIClients;
104 
105  KPIMIdentities::IdentityManager *mIdentityManager;
106 };
107 
108 #endif
printplugin.h
QWidget
KOrg::PrintPlugin::List
QList< PrintPlugin * > List
Definition: printplugin.h:69
KOrg::Part
Definition: part.h:34
KOrg::Part::List
QList< Part * > List
Definition: part.h:47
KOrg::PrintPlugin
Base class for KOrganizer printing classes.
Definition: printplugin.h:62
KOrg::MainWindow
interface for korganizer main window
Definition: mainwindow.h:44
korganizer_export.h
KORGANIZER_CORE_EXPORT
#define KORGANIZER_CORE_EXPORT
Definition: korganizer_export.h:61
part.h
KOCore
Definition: kocore.h:41
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