Sha256: 4a7d7b6c33f181c33b22cc5017535612076c6588a3c60a05603e0c4df932a1ad
Contents?: true
Size: 1.41 KB
Versions: 22
Compression:
Stored size: 1.41 KB
Contents
#include <QObject> #include <QString> #include <QStringList> #include <QEvent> #include <QWebElement> class WebPage; class InvocationResult; class JavascriptInvocation : public QObject { Q_OBJECT Q_PROPERTY(QString functionName READ functionName) Q_PROPERTY(bool allowUnattached READ allowUnattached) Q_PROPERTY(QStringList arguments READ arguments) Q_PROPERTY(QVariant error READ getError WRITE setError) public: JavascriptInvocation(const QString &functionName, bool allowUnattached, const QStringList &arguments, WebPage *page, QObject *parent = 0); QString &functionName(); bool allowUnattached(); QStringList &arguments(); Q_INVOKABLE void leftClick(int x, int y); Q_INVOKABLE void rightClick(int x, int y); Q_INVOKABLE void doubleClick(int x, int y); Q_INVOKABLE bool clickTest(QWebElement element, int absoluteX, int absoluteY); Q_INVOKABLE QVariantMap clickPosition(QWebElement element, int left, int top, int width, int height); Q_INVOKABLE void hover(int absoluteX, int absoluteY); Q_INVOKABLE void keypress(QChar); Q_INVOKABLE const QString render(void); QVariant getError(); void setError(QVariant error); InvocationResult invoke(QWebFrame *); private: QString m_functionName; bool m_allowUnattached; QStringList m_arguments; WebPage *m_page; QVariant m_error; void hover(const QPoint &); int keyCodeFor(const QChar &); };
Version data entries
22 entries across 22 versions & 2 rubygems