remove more obsolete code
[kdebase.git] / workspace / plasma / shells / screensaver / containment / desktop.h
blobc110cf70e8b1fbd30c3cb5a7ff7c4eaacc095ab8
1 /*
2 * Copyright 2007 by Aaron Seigo <aseigo@kde.org>
3 * Copyright 2008 by Chani Armitage <chanika@gmail.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU Library General Public License version 2,
7 * or (at your option) any later version.
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
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.
20 #ifndef PLASMA_SAVERDESKTOP_H
21 #define PLASMA_SAVERDESKTOP_H
23 #include <QList>
24 #include <QObject>
26 #include <plasma/containment.h>
28 class QAction;
29 class QDBusMessage;
30 class QDBusError;
32 /**
33 * SaverDesktop
35 * This is a minimal containment for plasma-overlay.
38 class SaverDesktop : public Plasma::Containment
40 Q_OBJECT
42 public:
43 SaverDesktop(QObject *parent, const QVariantList &args);
44 ~SaverDesktop();
45 void init();
47 void constraintsEvent(Plasma::Constraints constraints);
48 QList<QAction*> contextualActions();
50 signals:
51 void locked();
52 void unlocked();
54 public slots:
55 void toggleLock();
56 void unlock(QDBusMessage reply);
57 void dbusError(QDBusError error);
58 void unlockDesktop();
60 private:
61 QAction *m_lockDesktopAction;
62 QAction *m_appletBrowserAction;
65 #endif