diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kioslave/mac/kio_mac.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/mac/kio_mac.h')
-rw-r--r-- | kioslave/mac/kio_mac.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/kioslave/mac/kio_mac.h b/kioslave/mac/kio_mac.h new file mode 100644 index 000000000..c87217e08 --- /dev/null +++ b/kioslave/mac/kio_mac.h @@ -0,0 +1,55 @@ +/*************************************************************************** + mac.cpp + ------------------- + copyright : (C) 2002 Jonathan Riddell + email : [email protected] + 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 <kio/slavebase.h> +#include <kio/global.h> +#include <kurl.h> +#include <kprocess.h> + +#include <qstring.h> +#include <qcstring.h> +#include <qfile.h> +#include <qtextstream.h> + +class MacProtocol : public QObject, public KIO::SlaveBase +{ + Q_OBJECT +public: + MacProtocol(const QCString &pool, const QCString &app); + ~MacProtocol(); + virtual void get(const KURL& url ); + virtual void listDir(const KURL& url); + virtual void stat(const KURL& url); +protected slots: + void slotGetStdOutput(KProcess*, char*, int); + void slotSetDataStdOutput(KProcess*, char *s, int len); +protected: + QString prepareHP(const KURL& _url); + QValueList<KIO::UDSAtom> makeUDS(const QString& _line); + int makeTime(QString mday, QString mon, QString third); + QString getMimetype(QString type, QString app); + QValueList<KIO::UDSAtom> doStat(const KURL& url); + + KIO::filesize_t processedBytes; + QString standardOutputStream; + KProcess* myKProcess; + + //for debugging + //QFile* logFile; + //QTextStream* logStream; +}; |