You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.1 KiB
56 lines
2.1 KiB
15 years ago
|
/***************************************************************************
|
||
|
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. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
12 years ago
|
#include <tdeio/slavebase.h>
|
||
|
#include <tdeio/global.h>
|
||
15 years ago
|
#include <kurl.h>
|
||
|
#include <kprocess.h>
|
||
|
|
||
14 years ago
|
#include <tqstring.h>
|
||
|
#include <tqcstring.h>
|
||
|
#include <tqfile.h>
|
||
13 years ago
|
#include <tqtextstream.h>
|
||
15 years ago
|
|
||
12 years ago
|
class MacProtocol : public TQObject, public TDEIO::SlaveBase
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
MacProtocol(const TQCString &pool, const TQCString &app);
|
||
15 years ago
|
~MacProtocol();
|
||
|
virtual void get(const KURL& url );
|
||
|
virtual void listDir(const KURL& url);
|
||
|
virtual void stat(const KURL& url);
|
||
|
protected slots:
|
||
12 years ago
|
void slotGetStdOutput(TDEProcess*, char*, int);
|
||
|
void slotSetDataStdOutput(TDEProcess*, char *s, int len);
|
||
15 years ago
|
protected:
|
||
14 years ago
|
TQString prepareHP(const KURL& _url);
|
||
12 years ago
|
TQValueList<TDEIO::UDSAtom> makeUDS(const TQString& _line);
|
||
14 years ago
|
int makeTime(TQString mday, TQString mon, TQString third);
|
||
|
TQString getMimetype(TQString type, TQString app);
|
||
12 years ago
|
TQValueList<TDEIO::UDSAtom> doStat(const KURL& url);
|
||
15 years ago
|
|
||
12 years ago
|
TDEIO::filesize_t processedBytes;
|
||
14 years ago
|
TQString standardOutputStream;
|
||
12 years ago
|
TDEProcess* myTDEProcess;
|
||
15 years ago
|
|
||
|
//for debugging
|
||
14 years ago
|
//TQFile* logFile;
|
||
|
//TQTextStream* logStream;
|
||
15 years ago
|
};
|