2 * Copyright 2006, 2007 Aaron Seigo <aseigo@kde.org>
3 * Copyright 2008 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 General Public License as
7 * published by the Free Software Foundation; either version 2,
8 * or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details
15 * You should have received a copy of the GNU Library General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 #include <KUniqueApplication>
28 #include "ui_saverconfig.h"
39 class PlasmaApp
: public KUniqueApplication
42 Q_CLASSINFO("D-Bus Interface", "org.kde.plasmaoverlay.App")
46 static PlasmaApp
* self();
47 static bool hasComposite();
49 Plasma::Corona
* corona();
51 void setActiveOpacity(qreal opacity
);
52 void setIdleOpacity(qreal opacity
);
53 qreal
activeOpacity() const;
54 qreal
idleOpacity() const;
58 //if you change stuff, remember to regenerate with:
59 //qdbuscpp2xml -S -M plasmaapp.h > org.kde.plasma-overlay.App.xml
61 //XXX can this be deleted? probably. if lockprocess really cares it can use the unmapnotify
66 //if you change stuff, remember to regenerate
68 * tell plasma to go into active mode, ready for interaction
73 * tell plasma to go into idle mode
74 * this does not mean exit, it just means the computer is idle
83 //not really slots, but we want them in dbus
86 * quit the application
87 * this is a duplicate so we can have everything we need in one dbus interface
93 void createView(Plasma::Containment
*containment
);
94 void adjustSize(int screen
);
95 void dialogDestroyed(QObject
*obj
);
98 void createConfigurationInterface(KConfigDialog
*parent
);
99 void configAccepted();
102 bool eventFilter(QObject
*obj
, QEvent
*event
);
105 PlasmaApp(Display
* display
, Qt::HANDLE visual
, Qt::HANDLE colormap
);
107 Plasma::Corona
*m_corona
;
109 QList
<QWidget
*> m_dialogs
;
112 qreal m_activeOpacity
;
116 #endif // multiple inclusion guard