summaryrefslogtreecommitdiffstats
path: root/tdeioslave/mac/tdeio_mac.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 15:11:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-27 15:11:21 -0600
commit472156a41b1348c714986c772759ad950fffbe75 (patch)
tree86369dab3bbe3d52c49051665bdfb49b9dfc16e3 /tdeioslave/mac/tdeio_mac.h
parent3e891e81335e5243583dab27faeebf001b8139a6 (diff)
downloadtdebase-472156a41b1348c714986c772759ad950fffbe75.tar.gz
tdebase-472156a41b1348c714986c772759ad950fffbe75.zip
Rename kioslaves
Diffstat (limited to 'tdeioslave/mac/tdeio_mac.h')
-rw-r--r--tdeioslave/mac/tdeio_mac.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/tdeioslave/mac/tdeio_mac.h b/tdeioslave/mac/tdeio_mac.h
new file mode 100644
index 000000000..e497e9918
--- /dev/null
+++ b/tdeioslave/mac/tdeio_mac.h
@@ -0,0 +1,55 @@
+/***************************************************************************
+ mac.cpp
+ -------------------
+ copyright : (C) 2002 Jonathan Riddell
+ email : jr@jriddell.org
+ version : 1.0
+ release date : 10 Feburary 2002
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 <tdeio/slavebase.h>
+#include <tdeio/global.h>
+#include <kurl.h>
+#include <kprocess.h>
+
+#include <tqstring.h>
+#include <tqcstring.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+
+class MacProtocol : public TQObject, public TDEIO::SlaveBase
+{
+ Q_OBJECT
+public:
+ MacProtocol(const TQCString &pool, const TQCString &app);
+ ~MacProtocol();
+ virtual void get(const KURL& url );
+ virtual void listDir(const KURL& url);
+ virtual void stat(const KURL& url);
+protected slots:
+ void slotGetStdOutput(TDEProcess*, char*, int);
+ void slotSetDataStdOutput(TDEProcess*, char *s, int len);
+protected:
+ TQString prepareHP(const KURL& _url);
+ TQValueList<TDEIO::UDSAtom> makeUDS(const TQString& _line);
+ int makeTime(TQString mday, TQString mon, TQString third);
+ TQString getMimetype(TQString type, TQString app);
+ TQValueList<TDEIO::UDSAtom> doStat(const KURL& url);
+
+ TDEIO::filesize_t processedBytes;
+ TQString standardOutputStream;
+ TDEProcess* myTDEProcess;
+
+ //for debugging
+ //TQFile* logFile;
+ //TQTextStream* logStream;
+};