summaryrefslogtreecommitdiffstats
path: root/src/tdebluezioclient/main.cpp
diff options
context:
space:
mode:
authorEmanoil Kotsev <[email protected]>2023-03-13 20:31:19 +0000
committerEmanoil Kotsev <[email protected]>2023-03-20 07:25:45 +0000
commitc95a42982628b4b06ceed0c01cada10806c9b53c (patch)
treeee5bb82e46741f57362bb5c4a0f2133d1d525cdb /src/tdebluezioclient/main.cpp
parent66c9d2a5920b30474b595603a79915d2be38cdbe (diff)
downloadtdebluez-c95a42982628b4b06ceed0c01cada10806c9b53c.tar.gz
tdebluez-c95a42982628b4b06ceed0c01cada10806c9b53c.zip
i18n and some minor corrections
Signed-off-by: Emanoil Kotsev <[email protected]>
Diffstat (limited to 'src/tdebluezioclient/main.cpp')
-rw-r--r--src/tdebluezioclient/main.cpp74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/tdebluezioclient/main.cpp b/src/tdebluezioclient/main.cpp
new file mode 100644
index 0000000..7428407
--- /dev/null
+++ b/src/tdebluezioclient/main.cpp
@@ -0,0 +1,74 @@
+//-*-c++-*-
+/***************************************************************************
+ * Copyright (C) 2003 by Fred Schaettgen *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+
+#include <tdeapplication.h>
+#include <tdeaboutdata.h>
+#include <tdecmdlineargs.h>
+#include <tdelocale.h>
+#include <kurl.h>
+#include <tqwidget.h>
+
+#include "commandhandler.h"
+
+static const char description[] =
+ I18N_NOOP("TDEIO command line client for tdebluez");
+
+//FIXME static const char* version = TDEBluetoothConfig::version;
+
+static const char* version = "0.0.1";
+
+static TDECmdLineOptions options[] =
+{
+ {"d", 0, 0}, {"date", I18N_NOOP("List date"), 0},
+ {"u", 0, 0}, {"user", I18N_NOOP("List user"), 0},
+ {"i", 0, 0}, {"iconName", I18N_NOOP("List icon name"), 0},
+ {"g", 0, 0}, {"group", I18N_NOOP("List group"), 0},
+ {"extra", I18N_NOOP("List extra"), 0},
+ {"noname", I18N_NOOP("Do not list name"), 0},
+ {"p", 0, 0}, {"access", I18N_NOOP("List access permissions"), 0},
+ {"m", 0, 0}, {"mtime", I18N_NOOP("List modification time"), 0},
+ {"a", 0, 0}, {"atime", I18N_NOOP("List access time"), 0},
+ {"c", 0, 0}, {"ctime", I18N_NOOP("List creation time"), 0},
+ {"f", 0, 0}, {"filetype", I18N_NOOP("List file type"), 0},
+ {"D", 0, 0}, {"linkdest", I18N_NOOP("List link destination"), 0},
+ {"U", 0, 0}, {"url", I18N_NOOP("List URL"), 0},
+ {"M", 0, 0}, {"mimetype", I18N_NOOP("List mime type"), 0},
+ {"G", 0, 0}, {"guessedmimetype", I18N_NOOP("List guessed mime type"), 0},
+ {"X", 0, 0}, {"xmlproperties", I18N_NOOP("List XML properties"), 0},
+ {"s", 0, 0}, {"size", I18N_NOOP("List size"), 0},
+ {"outfile [filename]", I18N_NOOP("Output file. Defaults to stdout"), 0},
+ {"infile [filename]", I18N_NOOP("Input file. Defaults to stdin"), 0},
+ {"progresswindow", I18N_NOOP("Show a progress window"), 0},
+ {"nooverwrite", I18N_NOOP("Ask (graphically) before overwriting files"), 0},
+ {"messages", I18N_NOOP("Show messages from the tdeioslave"), 0},
+ {"+[cmd]", I18N_NOOP("Command (ls, cat, put, cp, rm, mv, mkdir, rmdir)"), 0 },
+ TDECmdLineLastOption
+};
+
+int main(int argc, char **argv)
+{
+ TDELocale::setMainCatalogue("tdebluez");
+ TDEAboutData about("tdebluezioclient",
+ I18N_NOOP("tdeio client for tdebluez"),
+ version, description,
+ TDEAboutData::License_GPL,
+ "(C) 2004 Fred Schaettgen", 0, 0,
+ about.addAuthor("Emanoil Kotsev", I18N_NOOP("Bluez5 and port to TDE"), "[email protected]");
+ TDECmdLineArgs::init(argc, argv, &about);
+ TDECmdLineArgs::addCmdLineOptions(options);
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
+ TDEApplication app;
+
+ CommandHandler commandHandler(args);
+ commandHandler.start();
+ return app.exec();
+}