1 #ifndef _CLASS_WEVBIEW_H_
2 #define _CLASS_WEVBIEW_H_
29 #if defined(COMPILE_WEBKIT_SUPPORT)
32 #include <QNetworkAccessManager>
35 #include <QWebElement>
36 #include <QMouseEvent>
37 #include <QContextMenuEvent>
39 class KvsObject_webView;
40 class KviKvsWebView :
public QWebView
44 KviKvsWebView(QWidget * par,
const char *
name, KvsObject_webView *);
47 virtual ~KviKvsWebView();
50 KvsObject_webView * m_pParentScript;
53 virtual void mouseMoveEvent(QMouseEvent * ev);
54 virtual void contextMenuEvent(QContextMenuEvent *);
55 virtual bool event(QEvent *
e);
70 int insertElement(const QWebElement & ele);
71 QWebElement getElement(
int iIdx);
72 int getElementId(const QWebElement &);
73 QHash<
int, QWebElement> m_elementMapper;
75 QHash<QString, QWebElement *> m_dictCache;
77 QNetworkAccessManager * m_pNetworkManager;
78 QWebElementCollection m_webElementCollection;
79 QWebElement m_currentElement;
82 QWidget * widget() {
return (QWidget *)
object(); }
84 void getFrames(QWebFrame * pCurFrame, QStringList & szFramesNames);
85 QWebFrame *
findFrame(QWebFrame * pCurFrame, QString & szFrameName);
144 void slotLoadFinished(
bool);
145 void slotLoadProgress(
int);
146 void slotLoadStarted();
147 void slotDownloadRequest(
const QNetworkRequest &);
148 void slotLinkClicked(
const QUrl &);
150 void slotOnChange(QString);
151 void slotOnSubmit(QString);
152 void slotOnClick(QString);
153 void slotOnMouseOver(QString);
154 void slotOnMouseOut(QString);
157 class KviKvsDownloadHandler :
public QObject
161 KviKvsDownloadHandler(KvsObject_webView * pParent, QFile * pFile, QNetworkReply * pNetReply,
int iId);
163 virtual ~KviKvsDownloadHandler();
166 KvsObject_webView * m_pParentScript;
168 QNetworkReply * m_pReply;
171 void slotReadyRead();
172 void slotReplyFinished();
175 #endif // COMPILE_WEBKIT_SUPPORT
176 #endif // _CLASS_WEBVIEW_H_
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
Definition: KviKvsObjectFunctionCall.h:33
Definition: KviKvsObject.h:50
#define e
Definition: detector.cpp:69
m_pFile
Definition: KvsObject_file.cpp:191
#define KVSO_DECLARE_OBJECT(__className)
Definition: object_macros.h:33
UrlDlgList * findFrame()
Definition: libkviurl.cpp:649
QObject * object() const
Definition: KviKvsObject.h:94
A template double linked list of pointers.
Definition: KviPointerList.h:55
Definition: KviKvsRunTimeContext.h:103
virtual bool init(KviKvsRunTimeContext *pContext, KviKvsVariantList *pParams)
Definition: KviKvsObject.cpp:774
QString name()
Definition: KviRuntimeInfo.cpp:655
This file contains compile time settings.