Add (and install) svg for the new krunner interface.
[kdebase/uwolfer.git] / workspace / krunner / krunnerapp.h
blob4f28442d27a3ab96da55fee1f4eb2cbcc517cc42
1 /*
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.
19 #ifndef KRUNNERAPP_H
20 #define KRUNNERAPP_H
22 #include <kworkspace.h>
24 #include "restartingapplication.h"
25 #include "saverengine.h"
27 class KActionCollection;
28 class KDialog;
29 class Interface;
30 class StartupId;
32 class KRunnerApp : public RestartingApplication
34 Q_OBJECT
35 Q_CLASSINFO("D-Bus Interface", "org.kde.krunner.App")
37 public:
38 static KRunnerApp* self();
39 ~KRunnerApp();
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;
50 public Q_SLOTS:
51 //void showWindowList();
53 void logout();
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();
65 private slots:
66 /**
67 * Called when the task dialog emits its finished() signal
69 void taskDialogFinished();
71 private:
72 KRunnerApp(Display *display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
73 void initialize();
75 KActionCollection *m_actionCollection;
76 SaverEngine m_saver;
77 Interface* m_interface;
78 KDialog* m_tasks;
79 StartupId* m_startupId;
82 #endif /* KRUNNERAPP_H */