1/*
2 * Copyright 2009 David Faure <faure@kde.org>
3 *
4 * This library is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2 of the License or ( at
7 * your option ) version 3 or, at the discretion of KDE e.V. ( which shall
8 * act as a proxy as in section 14 of the GPLv3 ), any later version.
9 *
10 * This library 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 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#include "klauncher_cmds.h"
22
23const char* commandToString(int command)
24{
25 switch (command) {
26 case LAUNCHER_EXEC:
27 return "EXEC";
28 case LAUNCHER_SETENV:
29 return "LAUNCHER_SETENV";
30 case LAUNCHER_CHILD_DIED:
31 return "LAUNCHER_CHILD_DIED";
32 case LAUNCHER_OK:
33 return "LAUNCHER_OK";
34 case LAUNCHER_ERROR:
35 return "LAUNCHER_ERROR";
36 case LAUNCHER_SHELL:
37 return "SHELL";
38 case LAUNCHER_TERMINATE_KDE:
39 return "LAUNCHER_TERMINATE_KDE";
40 case LAUNCHER_TERMINATE_KDEINIT:
41 return "LAUNCHER_TERMINATE_KDEINIT";
42 case LAUNCHER_DEBUG_WAIT:
43 return "LAUNCHER_DEBUG_WAIT";
44 case LAUNCHER_EXT_EXEC:
45 return "EXT_EXEC";
46 case LAUNCHER_KWRAPPER:
47 return "KWRAPPER";
48 case LAUNCHER_EXEC_NEW:
49 return "EXEC_NEW";
50 default:
51 return "UNKNOWN COMMAND";
52 }
53}
54