libplasma
uiloader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PLASMA_UILOADER_H
00021 #define PLASMA_UILOADER_H
00022
00023 #include <QtCore/QObject>
00024
00025 #include <plasma/plasma_export.h>
00026 #include <plasma/applet.h>
00027
00028 class QGraphicsItem;
00029
00030 namespace Plasma
00031 {
00032
00033 class Widget;
00034 class Layout;
00035 class LayoutItem;
00036 class UiLoaderPrivate;
00037
00043 class PLASMA_EXPORT UiLoader : public QObject
00044 {
00045 Q_OBJECT
00046
00047 public:
00048 UiLoader(QObject *parent = 0);
00049 virtual ~UiLoader();
00050
00051 QStringList availableWidgets() const;
00052 Applet *createWidget(const QString &className, Applet *parent = 0);
00053
00054 QStringList availableLayouts() const;
00055 Layout *createLayout(const QString &className, LayoutItem *parent);
00056
00057 private:
00058 UiLoaderPrivate *const d;
00059 };
00060
00061 }
00062
00063 #endif // PLASMA_UILOADER_H