1 /***************************************************************************
2 * Copyright (C) 2004 by Kita Developers *
3 * ikemo@users.sourceforge.jp *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
13 #include <QtCore/QObject>
28 @author Hideki Ikemoto
30 class Access : public QObject
35 Access(const KUrl& datUrl);
44 bool getupdate(int readNum);
47 bool invalidDataReceived() const;
50 void writeCacheData();
51 void emitDatLineList(const QByteArray& dataStream);
54 KIO::Job* m_currentJob;
55 QByteArray m_threadData;
59 bool m_invalidDataReceived;
62 QByteArray m_lastLine;
65 void slotReceiveThreadData(KIO::Job* job, const QByteArray& data);
66 void slotThreadResult(KJob* job);
69 void redirection(const QString&);
70 void receiveData(const QStringList&);
73 Access(const Access&);
74 Access& operator=(const Access&);
77 class OfflawAccess : public Access
82 OfflawAccess(const KUrl& datUrl) : Access(datUrl) {};
83 virtual ~OfflawAccess() {};
88 void slotReceiveThreadData(KIO::Job* job, const QByteArray& data);
89 void slotThreadResult(KIO::Job* job);