diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-06 21:23:48 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-12-06 21:24:20 +0900 |
commit | 4f99f868f09bbffa2e15733b8b7c78eba07a199e (patch) | |
tree | 3fb0957e93160f69f55942fff50a2ad496bf4f4c /arts/kde/kiotest.cc | |
parent | 19f44e5ff3756172540e768fc0d08d761f0c374e (diff) | |
download | tdelibs-4f99f868f09bbffa2e15733b8b7c78eba07a199e.tar.gz tdelibs-4f99f868f09bbffa2e15733b8b7c78eba07a199e.zip |
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'arts/kde/kiotest.cc')
-rw-r--r-- | arts/kde/kiotest.cc | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/arts/kde/kiotest.cc b/arts/kde/kiotest.cc deleted file mode 100644 index ed9a3fadf..000000000 --- a/arts/kde/kiotest.cc +++ /dev/null @@ -1,54 +0,0 @@ -#include <stdio.h> -#include <kmedia2.h> -#include <tdecmdlineargs.h> -#include <connect.h> -#include <tdelocale.h> -#include <tdeapplication.h> -#include <tdeaboutdata.h> -#include "qiomanager.h" -#include "artskde.h" - -using namespace std; -using namespace Arts; - - -static TDECmdLineOptions options[] = -{ - { "+[URL]", I18N_NOOP("URL to open"), 0 }, - TDECmdLineLastOption -}; - -int main(int argc, char **argv) -{ - TDEAboutData aboutData( "kiotest", I18N_NOOP("KIOTest"), I18N_NOOP("0.1"), "", TDEAboutData::License_GPL, ""); - - TDECmdLineArgs::init(argc,argv,&aboutData); - TDECmdLineArgs::addCmdLineOptions(options); - TDEApplication app; - QIOManager qiomanager; - Dispatcher dispatcher(&qiomanager); - TDEIOInputStream stream; - StdoutWriter writer; - - TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); - - if(args->count()) - { - if(!stream.openURL(args->arg(0))) - { - printf("can't open url"); - exit(1); - } - } - else - exit(1); - - args->clear(); - - connect(stream, writer); - - writer.start(); - stream.start(); - - app.exec(); -} |