• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEWebKit

  • sources
  • kde-4.14
  • kdelibs
  • kdewebkit
Macros | Functions
kwebwallet.cpp File Reference
#include "kwebwallet.h"
#include <kwallet.h>
#include <kdebug.h>
#include <QtCore/QSet>
#include <QtCore/QHash>
#include <QtCore/QFile>
#include <QtCore/QWeakPointer>
#include <QtCore/QScopedPointer>
#include <QtWebKit/QWebPage>
#include <QtWebKit/QWebFrame>
#include <QtWebKit/QWebElement>
#include <QtWebKit/QWebElementCollection>
#include <qwindowdefs.h>
#include "kwebwallet.moc"
Include dependency graph for kwebwallet.cpp:

Go to the source code of this file.

Macros

#define FILLABLE_FORM_ELEMENT_EXTRACTOR_JS   "(function (){ \ var forms; \ var formList = document.forms; \ if (formList.length > 0) { \ forms = new Array; \ for (var i = 0; i < formList.length; ++i) { \ var inputList = formList[i].elements; \ if (inputList.length < 1) { \ continue; \ } \ var formObject = new Object; \ formObject.name = formList[i].name; \ if (typeof(formObject.name) != 'string') { \ formObject.name = String(formList[i].id); \ } \ formObject.index = i; \ formObject.elements = new Array; \ for (var j = 0; j < inputList.length; ++j) { \ if (inputList[j].type != 'text' && inputList[j].type != 'email' && inputList[j].type != 'password') { \ continue; \ } \ if (inputList[j].disabled || inputList[j].autocomplete == 'off') { \ continue; \ } \ var element = new Object; \ element.name = inputList[j].name; \ if (typeof(element.name) != 'string' ) { \ element.name = String(inputList[j].id); \ } \ element.value = String(inputList[j].value); \ element.type = String(inputList[j].type); \ element.readonly = Boolean(inputList[j].readOnly); \ formObject.elements.push(element); \ } \ if (formObject.elements.length > 0) { \ forms.push(formObject); \ } \ } \ } \ return forms; \}())"
 
#define QL1C(x)   QLatin1Char(x)
 
#define QL1S(x)   QLatin1String(x)
 

Functions

static void collectAllChildFrames (QWebFrame *frame, QList< QWebFrame * > &list)
 
static void createSaveKeyFor (QWebFrame *frame, QString *key)
 
static QWidget * topLevelWindow (QObject *obj)
 
static QUrl urlForFrame (QWebFrame *frame)
 
static QString walletKey (KWebWallet::WebForm form)
 

Macro Definition Documentation

#define FILLABLE_FORM_ELEMENT_EXTRACTOR_JS   "(function (){ \ var forms; \ var formList = document.forms; \ if (formList.length > 0) { \ forms = new Array; \ for (var i = 0; i < formList.length; ++i) { \ var inputList = formList[i].elements; \ if (inputList.length < 1) { \ continue; \ } \ var formObject = new Object; \ formObject.name = formList[i].name; \ if (typeof(formObject.name) != 'string') { \ formObject.name = String(formList[i].id); \ } \ formObject.index = i; \ formObject.elements = new Array; \ for (var j = 0; j < inputList.length; ++j) { \ if (inputList[j].type != 'text' && inputList[j].type != 'email' && inputList[j].type != 'password') { \ continue; \ } \ if (inputList[j].disabled || inputList[j].autocomplete == 'off') { \ continue; \ } \ var element = new Object; \ element.name = inputList[j].name; \ if (typeof(element.name) != 'string' ) { \ element.name = String(inputList[j].id); \ } \ element.value = String(inputList[j].value); \ element.type = String(inputList[j].type); \ element.readonly = Boolean(inputList[j].readOnly); \ formObject.elements.push(element); \ } \ if (formObject.elements.length > 0) { \ forms.push(formObject); \ } \ } \ } \ return forms; \}())"

Definition at line 43 of file kwebwallet.cpp.

#define QL1C (   x)    QLatin1Char(x)

Definition at line 40 of file kwebwallet.cpp.

#define QL1S (   x)    QLatin1String(x)

Definition at line 39 of file kwebwallet.cpp.

Function Documentation

static void collectAllChildFrames ( QWebFrame *  frame,
QList< QWebFrame * > &  list 
)
static

Definition at line 98 of file kwebwallet.cpp.

static void createSaveKeyFor ( QWebFrame *  frame,
QString *  key 
)
static

Definition at line 465 of file kwebwallet.cpp.

static QWidget* topLevelWindow ( QObject *  obj)
static

Definition at line 119 of file kwebwallet.cpp.

static QUrl urlForFrame ( QWebFrame *  frame)
static

Definition at line 107 of file kwebwallet.cpp.

static QString walletKey ( KWebWallet::WebForm  form)
static

Creates key used to store and retrieve form data.

Definition at line 90 of file kwebwallet.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEWebKit

Skip menu "KDEWebKit"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal