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

Plasma

desktop.h

Go to the documentation of this file.
00001 /*
00002 *   Copyright 2007 by Aaron Seigo <aseigo@kde.org>
00003 *   Copyright 2008 by Chani Armitage <chanika@gmail.com>
00004 *
00005 *   This program is free software; you can redistribute it and/or modify
00006 *   it under the terms of the GNU Library General Public License version 2,
00007 *   or (at your option) any later version.
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 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 PLASMA_SAVERDESKTOP_H
00021 #define PLASMA_SAVERDESKTOP_H
00022 
00023 #include <QList>
00024 #include <QObject>
00025 
00026 #include <plasma/containment.h>
00027 
00028 class QAction;
00029 class QDBusMessage;
00030 class QDBusError;
00031 
00038 class SaverDesktop : public Plasma::Containment
00039 {
00040     Q_OBJECT
00041 
00042 public:
00043     SaverDesktop(QObject *parent, const QVariantList &args);
00044     ~SaverDesktop();
00045     void init();
00046 
00047     void constraintsEvent(Plasma::Constraints constraints);
00048     QList<QAction*> contextualActions();
00049 
00050 signals:
00051     void locked();
00052     void unlocked();
00053 
00054 public slots:
00055     void toggleLock();
00056     void unlock(QDBusMessage reply);
00057     void dbusError(QDBusError error);
00058     void unlockDesktop();
00059 
00060 private:
00061     QAction *m_lockDesktopAction;
00062     QAction *m_appletBrowserAction;
00063 };
00064 
00065 #endif

Plasma

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

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
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