libplasma
appletbrowser.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 APPLETBROWSERWINDOW_H_
00021 #define APPLETBROWSERWINDOW_H_
00022
00023 #include <KDE/KDialog>
00024
00025 #include <plasma/plasma_export.h>
00026
00027 namespace Plasma
00028 {
00029
00030 class Corona;
00031 class Containment;
00032 class Applet;
00033 class AppletBrowserPrivate;
00034 class AppletBrowserWidgetPrivate;
00035
00036 class PLASMA_EXPORT AppletBrowserWidget : public QWidget
00037 {
00038 Q_OBJECT
00039 public:
00040 explicit AppletBrowserWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
00041 virtual ~AppletBrowserWidget();
00042
00043 void setApplication(const QString& application = QString());
00044 QString application();
00045
00051 void setContainment(Plasma::Containment *containment);
00052
00056 Containment* containment() const;
00057
00058 public Q_SLOTS:
00062 void addApplet();
00063
00067 void destroyApplets(const QString &name);
00068
00072 void downloadWidgets();
00073
00077 void openWidgetFile();
00078
00079 private:
00080 Q_PRIVATE_SLOT(d, void appletAdded(Plasma::Applet*))
00081 Q_PRIVATE_SLOT(d, void appletRemoved(Plasma::Applet*))
00082
00083 AppletBrowserWidgetPrivate * const d;
00084 };
00085
00086 class PLASMA_EXPORT AppletBrowser: public KDialog
00087 {
00088 Q_OBJECT
00089 public:
00090 explicit AppletBrowser(QWidget *parent = 0, Qt::WindowFlags f = 0);
00091 virtual ~AppletBrowser();
00092
00093 void setApplication(const QString& application = QString());
00094 QString application();
00095
00101 void setContainment(Plasma::Containment *containment);
00102
00106 Containment* containment() const;
00107
00108 private:
00109 AppletBrowserPrivate * const d;
00110 };
00111
00112 }
00113
00114 #endif