downloader.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef KPAC_DOWNLOADER_H
00022
#define KPAC_DOWNLOADER_H
00023
00024
#include <qobject.h>
00025
00026
#include <kurl.h>
00027
00028
namespace KIO {
class Job; }
00029
00030
namespace KPAC
00031 {
00032
class Downloader :
public QObject
00033 {
00034 Q_OBJECT
00035
public:
00036 Downloader(
QObject* );
00037
00038
void download(
const KURL& );
00039
const KURL& scriptURL() {
return m_scriptURL; }
00040
const QString& script() {
return m_script; }
00041
const QString& error() {
return m_error; }
00042
00043 signals:
00044
void result(
bool );
00045
00046
protected:
00047
virtual void failed();
00048
void setError(
const QString& );
00049
00050
private slots:
00051
void data(
KIO::Job*,
const QByteArray& );
00052
void result(
KIO::Job* );
00053
00054
private:
00055
QByteArray m_data;
00056
KURL m_scriptURL;
00057
QString m_script;
00058
QString m_error;
00059 };
00060 }
00061
00062
#endif // KPAC_DOWNLOADER_H
00063
00064
This file is part of the documentation for kio Library Version 3.3.0.