The simplest way:
QString msg;
msg.sprintf("[tdeinit] Got %s '%s' from %s.\n",
(request_header.cmd == LAUNCHER_EXEC ? "EXEC" :
(request_header.cmd == LAUNCHER_EXT_EXEC ? "EXT_EXEC" :
(request_header.cmd == LAUNCHER_EXEC_NEW ? "EXEC_NEW" :
(request_header.cmd == LAUNCHER_SHELL ? "SHELL" : "KWRAPPER"
)))),
name, launcher ? "launcher" : "socket" );
kdDebug() << msg;
Thank you!
Now the remaining problem is I can't get the messages to appear at all. :(
Darrell