aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects/KvsObject_webView.h
diff options
context:
space:
mode:
authorGravatar Elvio Basello2011-03-30 17:50:38 +0000
committerGravatar Elvio Basello2011-03-30 17:50:38 +0000
commit21a4c690d3697816ed40655ee7f458277b5b8e8c (patch)
tree4a8896a894d4f5f9ebf93b2f21650a8c4205bc45 /src/modules/objects/KvsObject_webView.h
parentfixed translation string (diff)
downloadKVIrc-21a4c690d3697816ed40655ee7f458277b5b8e8c.tar.gz
KVIrc-21a4c690d3697816ed40655ee7f458277b5b8e8c.tar.bz2
KVIrc-21a4c690d3697816ed40655ee7f458277b5b8e8c.zip
fixed compilation warnings
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5732 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/KvsObject_webView.h')
-rw-r--r--src/modules/objects/KvsObject_webView.h104
1 files changed, 51 insertions, 53 deletions
diff --git a/src/modules/objects/KvsObject_webView.h b/src/modules/objects/KvsObject_webView.h
index a096cea7f..3e16c0ed0 100644
--- a/src/modules/objects/KvsObject_webView.h
+++ b/src/modules/objects/KvsObject_webView.h
@@ -33,89 +33,87 @@
#include <QtWebKit/QWebView>
#include <QtWebKit/QWebFrame>
#include <QWebElement>
-class KviKvsDownloadHandler;
class KvsObject_webView : public KviKvsObject
{
Q_OBJECT
public:
KVSO_DECLARE_OBJECT(KvsObject_webView)
+protected:
+ KviKvsRunTimeContext * m_pContext;
+ QHash<QString,QWebFrame *> m_dictFrames;
+ QHash<QString,QWebElement *> m_dictCache;
+ KviPointerList<QNetworkReply> * m_pReplyList;
+ QNetworkAccessManager * m_pNetworkManager;
+ QWebElementCollection m_webElementCollection;
+ QWebElement m_currentElement;
public:
- QWidget * widget() { return (QWidget *)object(); }
+ QWidget * widget(){ return (QWidget *)object(); }
protected:
- KviKvsRunTimeContext *m_pContext;
- QWebPage * m_pWebPage;
- QHash<QString,QWebFrame *> m_dictFrames;
- QHash<QString,QWebElement *> m_dictCache;
- KviPointerList<QNetworkReply> *m_pReplyList;
- QNetworkAccessManager *m_pNetworkManager;
- QList<QWebElement> lStack;
- QWebElementCollection m_webElementCollection;
- QWebElement m_currentElement;
- void getFrames(QWebFrame *pFrame,KviKvsArray *n, kvs_uint_t & uIdx);
- virtual bool init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams);
-
- bool removeFromDocument(KviKvsObjectFunctionCall *c);
- bool makePreview(KviKvsObjectFunctionCall *c);
+ void getFrames(QWebFrame * pFrame, KviKvsArray * pArray, kvs_uint_t & uIdx);
+ virtual bool init(KviKvsRunTimeContext * pContext, KviKvsVariantList * pParams);
- bool removeClass(KviKvsObjectFunctionCall *c);
- bool classes(KviKvsObjectFunctionCall *c);
+ bool removeFromDocument(KviKvsObjectFunctionCall * c);
+ bool makePreview(KviKvsObjectFunctionCall * c);
- bool rememberCurrent(KviKvsObjectFunctionCall *c);
- bool moveTo(KviKvsObjectFunctionCall *c);
+ bool removeClass(KviKvsObjectFunctionCall * c);
+ bool classes(KviKvsObjectFunctionCall * c);
+ bool rememberCurrent(KviKvsObjectFunctionCall * c);
+ bool moveTo(KviKvsObjectFunctionCall * c);
- bool firstChild(KviKvsObjectFunctionCall *c);
- bool parentElement(KviKvsObjectFunctionCall *c);
- bool nextSibling(KviKvsObjectFunctionCall *c);
+ bool firstChild(KviKvsObjectFunctionCall * c);
+ bool parentElement(KviKvsObjectFunctionCall * c);
+ bool nextSibling(KviKvsObjectFunctionCall * c);
- bool toPlainText(KviKvsObjectFunctionCall *c);
- bool load(KviKvsObjectFunctionCall *c);
- bool getDocumentElement(KviKvsObjectFunctionCall *c);
- bool currentElementTagName(KviKvsObjectFunctionCall *c);
- bool findAll(KviKvsObjectFunctionCall *c);
- bool findFirst(KviKvsObjectFunctionCall *c);
+ bool toPlainText(KviKvsObjectFunctionCall * c);
+ bool load(KviKvsObjectFunctionCall * c);
+ bool getDocumentElement(KviKvsObjectFunctionCall * c);
+ bool currentElementTagName(KviKvsObjectFunctionCall * c);
+ bool findAll(KviKvsObjectFunctionCall * c);
+ bool findFirst(KviKvsObjectFunctionCall * c);
- bool moveToQueryResultsAt(KviKvsObjectFunctionCall *c);
- bool queryResultsCount(KviKvsObjectFunctionCall *c);
+ bool moveToQueryResultsAt(KviKvsObjectFunctionCall * c);
+ bool queryResultsCount(KviKvsObjectFunctionCall * c);
- bool attributeNames(KviKvsObjectFunctionCall *c);
- bool setLinkDelegationPolicy(KviKvsObjectFunctionCall *c);
- bool setAttribute(KviKvsObjectFunctionCall *c);
- bool setWebSetting(KviKvsObjectFunctionCall *c);
- bool attribute(KviKvsObjectFunctionCall *c);
- bool frames(KviKvsObjectFunctionCall *c);
+ bool attributeNames(KviKvsObjectFunctionCall * c);
+ bool setLinkDelegationPolicy(KviKvsObjectFunctionCall * c);
+ bool setAttribute(KviKvsObjectFunctionCall * c);
+ bool setWebSetting(KviKvsObjectFunctionCall * c);
+ bool attribute(KviKvsObjectFunctionCall * c);
+ bool frames(KviKvsObjectFunctionCall * c);
- bool loadStartedEvent(KviKvsObjectFunctionCall *c);
- bool linkClickedEvent(KviKvsObjectFunctionCall *c);
- bool loadFinishedEvent(KviKvsObjectFunctionCall *c);
- bool loadProgressEvent(KviKvsObjectFunctionCall *c);
- bool downloadCompletedEvent(KviKvsObjectFunctionCall *c);
- bool downloadProgressEvent(KviKvsObjectFunctionCall *c);
- bool downloadRequestEvent(KviKvsObjectFunctionCall *c);
+ bool loadStartedEvent(KviKvsObjectFunctionCall * c);
+ bool linkClickedEvent(KviKvsObjectFunctionCall * c);
+ bool loadFinishedEvent(KviKvsObjectFunctionCall * c);
+ bool loadProgressEvent(KviKvsObjectFunctionCall * c);
+ bool downloadCompletedEvent(KviKvsObjectFunctionCall * c);
+ bool downloadProgressEvent(KviKvsObjectFunctionCall * c);
+ bool downloadRequestEvent(KviKvsObjectFunctionCall * c);
protected slots:
void slotLoadFinished(bool);
void slotLoadProgress(int);
void slotLoadStarted();
void slotDownloadRequest(const QNetworkRequest &);
void slotLinkClicked(const QUrl &);
-
};
-class KviKvsDownloadHandler : public QObject
+
+class KviKvsDownloadHandler : public QObject
{
Q_OBJECT
public:
- KviKvsDownloadHandler(KvsObject_webView *par,QFile *pFile,QNetworkReply *pNetReply,int iId);
+ KviKvsDownloadHandler(KvsObject_webView * pParent, QFile * pFile, QNetworkReply * pNetReply, int iId);
virtual ~KviKvsDownloadHandler();
protected:
- KvsObject_webView *m_pParentScript;
- QFile *m_pFile;
- QNetworkReply *m_pReply;
- int m_Id;
+ KvsObject_webView * m_pParentScript;
+ QFile * m_pFile;
+ QNetworkReply * m_pReply;
+ int m_Id;
protected slots:
void slotReadyRead();
void slotReplyFinished();
};
-#endif // COMPILE_WEBKIT_SUPPORT
-#endif //!_CLASS_WEBVIEW_H_
+
+#endif // COMPILE_WEBKIT_SUPPORT
+#endif // _CLASS_WEBVIEW_H_