36 #include <kapplication.h>
37 #include <kaboutdata.h>
38 #include <kmessagebox.h>
39 #include <kcmdlineargs.h>
45 {
"error",
I18N_NOOP(
"Display error message (default)"), 0 },
47 {
"warning",
I18N_NOOP(
"Display warning message"), 0 },
49 {
"info",
I18N_NOOP(
"Display informational message"), 0 },
50 {
"+message",
I18N_NOOP(
"Message string to be displayed"), 0 },
55 I18N_NOOP(
"Utility to display aRts error messages"),
56 KAboutData::License_GPL,
"(c) 2001, Jeff Tranter", 0, 0,
"tranter@kde.org");
58 int main(
int argc,
char **argv) {
59 aboutData.
addAuthor(
"Jeff Tranter", 0,
"tranter@kde.org");
69 if (args->
count() == 0) {
74 for (
int i = 0; i < args->
count(); i++) {
78 msg += TQString(
" ") + args->
arg(i);
81 const int notifyOptions = 0;
82 if (args->
isSet(
"w")) {
84 }
else if (args->
isSet(
"i")) {
86 id.replace(TQRegExp(
"[\\[\\]\\s=]"),
"_");