diff options
author | Emanoil Kotsev <deloptes@gmail.com> | 2023-03-13 20:31:19 +0000 |
---|---|---|
committer | Emanoil Kotsev <deloptes@gmail.com> | 2023-03-20 07:25:45 +0000 |
commit | c95a42982628b4b06ceed0c01cada10806c9b53c (patch) | |
tree | ee5bb82e46741f57362bb5c4a0f2133d1d525cdb /src/tdebluezioclient/commandhandler.h | |
parent | 66c9d2a5920b30474b595603a79915d2be38cdbe (diff) | |
download | tdebluez-c95a42982628b4b06ceed0c01cada10806c9b53c.tar.gz tdebluez-c95a42982628b4b06ceed0c01cada10806c9b53c.zip |
i18n and some minor corrections
Signed-off-by: Emanoil Kotsev <deloptes@gmail.com>
Diffstat (limited to 'src/tdebluezioclient/commandhandler.h')
-rw-r--r-- | src/tdebluezioclient/commandhandler.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/tdebluezioclient/commandhandler.h b/src/tdebluezioclient/commandhandler.h new file mode 100644 index 0000000..29fb552 --- /dev/null +++ b/src/tdebluezioclient/commandhandler.h @@ -0,0 +1,60 @@ +//-*-c++-*- +/*************************************************************************** + * Copyright (C) 2004 by Fred Schaettgen <kdebluetooth@schaettgen.de>* + * * + * 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. * + ***************************************************************************/ +#ifndef COMMANDHANDLER_H +#define COMMANDHANDLER_H + +#include <tqobject.h> +#include <tqstringlist.h> +#include <tdeio/jobclasses.h> +#include <tqfile.h> +#include <kurl.h> + +class TDECmdLineArgs; +namespace TDEIO { class Job; } + +class CommandHandler : public TQObject +{ + Q_OBJECT + +public: + CommandHandler(TDECmdLineArgs *args); + ~CommandHandler(); + void start(); + +private: + KURL::List urlList(const TQStringList& list); + void exitPrintUsage(const TQString& message); + void list(const TQString& target); + void get(const TQString& target); + void put(const TQString& target); + void mkdir(const TQString& target); + void rmdir(const TQString& target); + void del(const TQStringList& targets); + void copy(const TQStringList& sources, const TQString& target); + void commonConnect(TDEIO::Job* job); + + TQString command, origCommand, target, lastMessage; + TQStringList targets, sources; + TDEIO::Job* job; + int returnValue; + TDECmdLineArgs *args; + TQFile outFile, inFile; + bool showProgressWindow, overwrite, iterate; + +private slots: + void slotFinished(TDEIO::Job *job); + void slotEntries(TDEIO::Job* job, const TDEIO::UDSEntryList& list); + void slotData(TDEIO::Job *, const TQByteArray &data); + void slotDataReq(TDEIO::Job *, TQByteArray &data); + void slotInfoMessage(TDEIO::Job* job,const TQString& msg); + void slotPercent(TDEIO::Job* job, unsigned long percent); +}; + +#endif |