• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

appletbrowser.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright (C) 2007 Ivan Cukic <ivan.cukic+kde@gmail.com>
00003  *
00004  *   This program is free software; you can redistribute it and/or modify
00005  *   it under the terms of the GNU Library/Lesser General Public License
00006  *   version 2, or (at your option) any later version, as published by the
00007  *   Free Software Foundation
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details
00013  *
00014  *   You should have received a copy of the GNU Library/Lesser General Public
00015  *   License along with this program; if not, write to the
00016  *   Free Software Foundation, Inc.,
00017  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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 } // namespace Plasma
00113 
00114 #endif /*APPLETBROWSERWINDOW_H_*/

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal