2 * Copyright (C) 2006 Aaron Seigo <aseigo@kde.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License version 2 as
6 * published by the Free Software Foundation
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details
13 * You should have received a copy of the GNU Library General Public
14 * License along with this program; if not, write to the
15 * Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 #include <kworkspace.h>
24 #include "restartingapplication.h"
25 #include "saverengine.h"
27 class KActionCollection
;
32 class KRunnerApp
: public RestartingApplication
35 Q_CLASSINFO("D-Bus Interface", "org.kde.krunner.App")
38 static KRunnerApp
* self();
41 void logout( KWorkSpace::ShutdownConfirm confirm
, KWorkSpace::ShutdownType sdtype
);
42 // The action collection of the active widget
43 KActionCollection
*actionCollection();
45 virtual int newInstance();
46 SaverEngine
& screensaver() { return m_saver
; }
48 bool hasCompositeManager() const;
51 //void showWindowList();
54 void logoutWithoutConfirmation();
55 void haltWithoutConfirmation();
56 void rebootWithoutConfirmation();
58 // DBUS interface. if you change these methods, you MUST run:
59 // qdbuscpp2xml -m krunnerapp.h -o org.kde.krunner.App.xml
60 Q_SCRIPTABLE
void initializeStartupNotification();
62 /** Show taskmanager */
63 Q_SCRIPTABLE
void showTaskManager();
67 * Called when the task dialog emits its finished() signal
69 void taskDialogFinished();
72 KRunnerApp(Display
*display
, Qt::HANDLE visual
= 0, Qt::HANDLE colormap
= 0);
75 KActionCollection
*m_actionCollection
;
77 Interface
* m_interface
;
79 StartupId
* m_startupId
;
82 #endif /* KRUNNERAPP_H */