diff options
| author | 2008-09-12 14:27:09 +0000 | |
|---|---|---|
| committer | 2008-09-12 14:27:09 +0000 | |
| commit | 0012f2217579f97bb20c6371be8a7921a2119a04 (patch) | |
| tree | f375c2a315776f79c663a8192029eee35c567af2 /src/modules/objects/class_http.h | |
| parent | fixed subversion message (diff) | |
| download | KVIrc-0012f2217579f97bb20c6371be8a7921a2119a04.tar.gz KVIrc-0012f2217579f97bb20c6371be8a7921a2119a04.tar.bz2 KVIrc-0012f2217579f97bb20c6371be8a7921a2119a04.zip | |
QT4 new stuff and ftp/http(wip) new classes (lack of docs :\)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2441 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_http.h')
| -rw-r--r-- | src/modules/objects/class_http.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/src/modules/objects/class_http.h b/src/modules/objects/class_http.h new file mode 100644 index 000000000..197250117 --- /dev/null +++ b/src/modules/objects/class_http.h @@ -0,0 +1,83 @@ +#ifndef _CLASS_HTTP_H_ +#define _CLASS_HTTP_H_ +// +// File : class_http.h +// Creation date : Fry Sep 5 18:13:45 2008 GMT by Carbone Alesssandro +// +// This file is part of the KVirc irc client distribution +// Copyright (C) 2001 Szymon Stefanek (pragma at kvirc dot net) +// +// 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 opinion) any later version. +// +// This program 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 General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, write to the Free Software Foundation, +// Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// + + + + +//=============================================================== +#include "object_macros.h" +#include <QHttp> +#include <QFile> +#include <QHash> +class KviKvsObject_http : public KviKvsObject +{ + Q_OBJECT +public: + KVSO_DECLARE_OBJECT(KviKvsObject_http) +protected: + QHttp *m_pHttp; +// QFile *m_pFile; + QHash<int, QFile*> getDict; + int m_id; + bool m_bAbort; +protected: + bool functionSetHost(KviKvsObjectFunctionCall *c); + bool functionGet(KviKvsObjectFunctionCall *c); + bool functionSetUser(KviKvsObjectFunctionCall *c); + bool functionSetProxy(KviKvsObjectFunctionCall *c); + bool functionRequestFinishedEvent(KviKvsObjectFunctionCall *c); + bool functionRequestStartedEvent(KviKvsObjectFunctionCall *c); + bool functionDataReadProgressEvent(KviKvsObjectFunctionCall *c); + bool functionDataSendProgressEvent(KviKvsObjectFunctionCall *c); + bool functionResponseHeaderReceivedEvent(KviKvsObjectFunctionCall *c); + bool functionAbort(KviKvsObjectFunctionCall *c); + bool functionDoneEvent(KviKvsObjectFunctionCall *c); + bool functionStateChangedEvent(KviKvsObjectFunctionCall *c); + bool functionReadAll(KviKvsObjectFunctionCall *c); + bool functionReadyReadEvent(KviKvsObjectFunctionCall *c); + bool functionErrorString(KviKvsObjectFunctionCall *c); + bool functionPost(KviKvsObjectFunctionCall *c); + + #ifndef QT_NO_OPENSSL + bool functionIgnoreSslErrors(KviKvsObjectFunctionCall *c); + bool functionSslErrorsEvent(KviKvsObjectFunctionCall *c); + #endif + +protected slots: + void slotRequestFinished ( int id, bool error );
+ void slotDone (bool error );
+ void slotRequestStarted ( int id );
+ void slotDataSendProgress ( int done, int total );
+ void slotDataReadProgress ( int done, int total );
+ #ifndef QT_NO_OPENSSL + void slotSslErrors(QList<QSslError>);
+#endif
+ void slotResponseHeaderReceived(const QHttpResponseHeader &r);
+ void slotReadyRead(const QHttpResponseHeader &r);
+ void slotStateChanged ( int state);
+
+
+ +}; +#endif //_CLASS_HTTP_H_ |
