1
/***************************************************************************
2
* Copyright (C) 2007 by Alexis Ménard <darktears31@gmail.com> *
3
* Copyright (C) 2009 by Frederik Gladhorn <gladhorn@kde.org> *
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 published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (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 General Public License *
16
* 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 . *
19
***************************************************************************/
24
#include <Plasma/Applet>
32
#include "ui_lockoutConfig.h"
35
class QGraphicsLinearLayout;
37
class LockOut : public Plasma::Applet
42
LockOut(QObject *parent, const QVariantList &args);
45
virtual void constraintsEvent(Plasma::Constraints constraints);
50
void clickSwitchUser();
53
void clickHibernate();
57
void configAccepted();
60
void createConfigurationInterface(KConfigDialog *parent);
68
bool m_showLockButton;
69
bool m_showSwitchUserButton;
70
bool m_showLogoutButton;
71
bool m_showSleepButton;
72
bool m_showHibernateButton;
74
Plasma::IconWidget *m_iconLock;
75
Plasma::IconWidget *m_iconSwitchUser;
76
Plasma::IconWidget *m_iconLogout;
77
Plasma::IconWidget *m_iconSleep;
78
Plasma::IconWidget *m_iconHibernate;
79
QGraphicsLinearLayout *m_layout;
87
void configUiChanged();
90
K_EXPORT_PLASMA_APPLET(lockout, LockOut)