• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

Kontact Plugin Interface Library

  • kontactinterface
core.h
1/*
2 This file is part of the KDE Kontact Plugin Interface Library.
3
4 Copyright (c) 2001 Matthias Hoelzer-Kluepfel <mhk@kde.org>
5 Copyright (c) 2002-2003 Daniel Molkentin <molkentin@kde.org>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library 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 GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21
22*/
23#ifndef KONTACTINTERFACE_CORE_H
24#define KONTACTINTERFACE_CORE_H
25
26#include "kontactinterface_export.h"
27#include <kparts/mainwindow.h>
28#include <kparts/part.h>
29
30namespace KontactInterface {
31
32class Plugin;
33
39class KONTACTINTERFACE_EXPORT Core : public KParts::MainWindow
40{
41 Q_OBJECT
42
43 public:
47 virtual ~Core();
48
55 virtual void selectPlugin( KontactInterface::Plugin *plugin ) = 0;
56
63 virtual void selectPlugin( const QString &plugin ) = 0;
64
68 virtual QList<KontactInterface::Plugin*> pluginList() const = 0;
69
76 KParts::ReadOnlyPart *createPart( const char *library );
77
83 virtual void partLoaded( Plugin *plugin, KParts::ReadOnlyPart *part ) = 0;
84
85 Q_SIGNALS:
91 void dayChanged( const QDate &date );
92
93 protected:
100 explicit Core( QWidget *parent = 0, Qt::WindowFlags flags = KDE_DEFAULT_WINDOWFLAGS );
101
106 QString lastErrorMessage() const;
107
108 private:
109 //@cond PRIVATE
110 class Private;
111 Private *const d;
112
113 Q_PRIVATE_SLOT( d, void slotPartDestroyed( QObject * ) )
114 Q_PRIVATE_SLOT( d, void checkNewDay() )
115 //@endcond
116};
117
118}
119
120#endif
121
122// vim: sw=2 sts=2 et tw=80
KontactInterface::Core
The abstract interface that represents the Kontact core.
Definition core.h:40
KontactInterface::Core::selectPlugin
virtual void selectPlugin(KontactInterface::Plugin *plugin)=0
Selects the given plugin and raises the associated part.
KontactInterface::Core::partLoaded
virtual void partLoaded(Plugin *plugin, KParts::ReadOnlyPart *part)=0
KontactInterface::Core::dayChanged
void dayChanged(const QDate &date)
This signal is emitted whenever a new day starts.
KontactInterface::Core::selectPlugin
virtual void selectPlugin(const QString &plugin)=0
This is an overloaded member function.
KontactInterface::Core::pluginList
virtual QList< KontactInterface::Plugin * > pluginList() const =0
Returns the pointer list of available plugins.
KontactInterface::Plugin
Base class for all Plugins in Kontact.
Definition plugin.h:78
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kontact Plugin Interface Library

Skip menu "Kontact Plugin Interface Library"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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