diff options
| author | 2011-01-01 20:19:56 +0000 | |
|---|---|---|
| committer | 2011-01-01 20:19:56 +0000 | |
| commit | c601b5a27f74b16158adafe429faefbe573e64a2 (patch) | |
| tree | a3cde3206a45628f8ac86e8dfbdab70b20c3a831 /src/modules/objects/class_http.h | |
| parent | probable compilation fix for rijndaled/crypto++ (diff) | |
| download | KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.gz KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.bz2 KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.zip | |
The big rename for modules. Still some details remaining.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5284 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_http.h')
| -rw-r--r-- | src/modules/objects/class_http.h | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/src/modules/objects/class_http.h b/src/modules/objects/class_http.h deleted file mode 100644 index cd221a995..000000000 --- a/src/modules/objects/class_http.h +++ /dev/null @@ -1,89 +0,0 @@ -#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) 2008 Alessandro Carbone (elfonol at gmail dot com) -// -// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -// -//============================================================================= - - - - -//=============================================================== -#include "object_macros.h" -#include <QHttp> -#include <QFile> -#include <QHash> -#include <QSslError> - -class KviKvsObject_http : public KviKvsObject -{ - Q_OBJECT -public: - KVSO_DECLARE_OBJECT(KviKvsObject_http) -protected: - QHttp *m_pHttp; - QHash<int, QFile*> getDict; - bool m_bAbort; - bool m_bEnableForceRedirect; -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); - bool functionFollowRedirect(KviKvsObjectFunctionCall *c); - bool functionCurrentId(KviKvsObjectFunctionCall *c); - void redirect(QString &file,const QHttpResponseHeader &r); - - #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_ |
