• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

PlasmaComponents

  • sources
  • kde-4.14
  • kde-runtime
  • plasma
  • declarativeimports
  • plasmacomponents
plasmacomponentsplugin.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011 by Marco Martin <mart@kde.org>
3 
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Library General Public License as
6  * published by the Free Software Foundation; either version 2, or
7  * (at your option) any later version.
8  *
9  * This program 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
12  * GNU General Public License for more details
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef PLASMACOMPONENTSPLUGIN_H
21 #define PLASMACOMPONENTSPLUGIN_H
22 
23 #include <QDeclarativeExtensionPlugin>
24 #include <QSet>
25 
26 class QDeclarativeEngine;
27 class QDeclarativeItem;
28 class PlasmaComponentsPlugin;
29 
30 class EngineBookKeeping : public QObject
31 {
32  Q_OBJECT
33 
34 public:
35  EngineBookKeeping();
36  static EngineBookKeeping *self();
37 
38  void insertEngine(QDeclarativeEngine *engine);
39  QDeclarativeEngine *engine() const;
40 
41 private Q_SLOTS:
42  void engineDestroyed(QObject *deleted);
43 
44 private:
45  QSet <QDeclarativeEngine*> m_engines;
46 };
47 
48 class PlasmaComponentsPlugin : public QDeclarativeExtensionPlugin
49 {
50  Q_OBJECT
51 
52 public:
53  void initializeEngine(QDeclarativeEngine *engine, const char *uri);
54  void registerTypes(const char *uri);
55 };
56 
57 #endif
QDeclarativeEngine
EngineBookKeeping::engine
QDeclarativeEngine * engine() const
Definition: plasmacomponentsplugin.cpp:59
EngineBookKeeping::EngineBookKeeping
EngineBookKeeping()
Definition: plasmacomponentsplugin.cpp:50
PlasmaComponentsPlugin::registerTypes
void registerTypes(const char *uri)
Definition: plasmacomponentsplugin.cpp:94
EngineBookKeeping
Definition: plasmacomponentsplugin.h:30
QObject
QSet< QDeclarativeEngine * >
QDeclarativeExtensionPlugin
EngineBookKeeping::insertEngine
void insertEngine(QDeclarativeEngine *engine)
Definition: plasmacomponentsplugin.cpp:70
QDeclarativeItem
PlasmaComponentsPlugin
Definition: plasmacomponentsplugin.h:48
PlasmaComponentsPlugin::initializeEngine
void initializeEngine(QDeclarativeEngine *engine, const char *uri)
Definition: plasmacomponentsplugin.cpp:84
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

PlasmaComponents

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

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

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