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.
63 lines
1.6 KiB
63 lines
1.6 KiB
15 years ago
|
/*
|
||
|
Copyright (c) 2003 Malte Starostik <malte@kde.org>
|
||
|
|
||
|
This library is free software; you can redistribute it and/or
|
||
|
modify it under the terms of the GNU Library General Public
|
||
|
License as published by the Free Software Foundation; either
|
||
|
version 2 of the License, or (at your option) any later version.
|
||
|
|
||
|
This library is distributed in the hope that it will be useful,
|
||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
Library General Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU Library General Public License
|
||
|
along with this library; see the file COPYING.LIB. If not, write to
|
||
|
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef KPAC_DOWNLOADER_H
|
||
|
#define KPAC_DOWNLOADER_H
|
||
|
|
||
15 years ago
|
#include <tqobject.h>
|
||
15 years ago
|
|
||
|
#include <kurl.h>
|
||
|
|
||
12 years ago
|
namespace TDEIO { class Job; }
|
||
15 years ago
|
|
||
|
namespace KPAC
|
||
|
{
|
||
14 years ago
|
class Downloader : public TQObject
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
15 years ago
|
Downloader( TQObject* );
|
||
15 years ago
|
|
||
|
void download( const KURL& );
|
||
|
const KURL& scriptURL() { return m_scriptURL; }
|
||
15 years ago
|
const TQString& script() { return m_script; }
|
||
|
const TQString& error() { return m_error; }
|
||
15 years ago
|
|
||
|
signals:
|
||
|
void result( bool );
|
||
|
|
||
|
protected:
|
||
|
virtual void failed();
|
||
15 years ago
|
void setError( const TQString& );
|
||
15 years ago
|
|
||
|
private slots:
|
||
12 years ago
|
void data( TDEIO::Job*, const TQByteArray& );
|
||
|
void result( TDEIO::Job* );
|
||
15 years ago
|
|
||
|
private:
|
||
15 years ago
|
TQByteArray m_data;
|
||
15 years ago
|
KURL m_scriptURL;
|
||
15 years ago
|
TQString m_script;
|
||
|
TQString m_error;
|
||
15 years ago
|
};
|
||
|
}
|
||
|
|
||
|
#endif // KPAC_DOWNLOADER_H
|