2
Copyright (C) 2004,2005 Oswald Buddenhagen <ossi@kde.org>
3
Copyright (C) 2005 Stephan Kulow <coolo@kde.org>
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the Lesser GNU General Public
7
License as published by the Free Software Foundation; either
8
version 2 of the License, 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 GNU
13
General Public License for more details.
15
You should have received a copy of the Lesser GNU General Public License
16
along with this program; see the file COPYING. If not, write to
17
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
Boston, MA 02110-1301, USA.
24
#include <kapplication.h>
27
QString display, from, user, session;
32
typedef QValueList<SessEnt> SessList;
43
void shutdown( KApplication::ShutdownType shutdownType,
44
KApplication::ShutdownMode shutdownMode,
45
const QString &bootOption = QString::null );
47
void setLock( bool on );
52
bool localSessions( SessList &list );
53
bool switchVT( int vt );
54
void lockSwitchVT( int vt );
56
bool bootOptions( QStringList &opts, int &dflt, int &curr );
58
static QString sess2Str( const SessEnt &se );
59
static void sess2Str2( const SessEnt &se, QString &user, QString &loc );
64
bool exec( const char *cmd, QCString &ret );
65
bool exec( const char *cmd );
67
void GDMAuthenticate();
74
bool canShutdown() { return false; }
75
void shutdown( KApplication::ShutdownType shutdownType,
76
KApplication::ShutdownMode shutdownMode,
77
const QString &bootOption = QString::null ) {}
79
void setLock( bool ) {}
81
bool isSwitchable() { return false; }
82
int numReserve() { return -1; }
83
void startReserve() {}
84
bool localSessions( SessList &list ) { return false; }
85
void switchVT( int vt ) {}
87
bool bootOptions( QStringList &opts, int &dflt, int &curr );