KontactInterface

core.h
1 /*
2  This file is part of the KDE Kontact Plugin Interface Library.
3 
4  SPDX-FileCopyrightText: 2001 Matthias Hoelzer-Kluepfel <[email protected]>
5  SPDX-FileCopyrightText: 2002-2003 Daniel Molkentin <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 
9 */
10 #ifndef KONTACTINTERFACE_CORE_H
11 #define KONTACTINTERFACE_CORE_H
12 
13 #include "kontactinterface_export.h"
14 
15 #include <KParts/MainWindow>
16 #include <KParts/Part>
17 
18 namespace KontactInterface
19 {
20 
21 class Plugin;
22 
28 class KONTACTINTERFACE_EXPORT Core : public KParts::MainWindow
29 {
30  Q_OBJECT
31 
32 public:
36  ~Core() override;
37 
44  virtual void selectPlugin(KontactInterface::Plugin *plugin) = 0;
45 
52  virtual void selectPlugin(const QString &plugin) = 0;
53 
57  virtual QList<KontactInterface::Plugin *> pluginList() const = 0;
58 
65  Q_REQUIRED_RESULT KParts::Part *createPart(const char *library);
66 
72  virtual void partLoaded(Plugin *plugin, KParts::Part *part) = 0;
73 
74 Q_SIGNALS:
80  void dayChanged(const QDate &date);
81 
82 protected:
89  explicit Core(QWidget *parent = nullptr, Qt::WindowFlags flags = {});
90 
95  QString lastErrorMessage() const;
96 
97 private:
98  //@cond PRIVATE
99  class Private;
100  Private *const d;
101  //@endcond
102 };
103 
104 }
105 
106 #endif
107 
Base class for all Plugins in Kontact.
Definition: plugin.h:80
The abstract interface that represents the Kontact core.
Definition: core.h:28
typedef WindowFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Sep 21 2020 23:13:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.