KDEWebKit
#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"
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
◆ FILLABLE_FORM_ELEMENT_EXTRACTOR_JS
#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.
◆ QL1C
#define QL1C | ( | x | ) | QLatin1Char(x) |
Definition at line 40 of file kwebwallet.cpp.
◆ QL1S
#define QL1S | ( | x | ) | QLatin1String(x) |
Definition at line 39 of file kwebwallet.cpp.
Function Documentation
◆ collectAllChildFrames()
|
static |
Definition at line 98 of file kwebwallet.cpp.
◆ createSaveKeyFor()
|
static |
Definition at line 465 of file kwebwallet.cpp.
◆ topLevelWindow()
Definition at line 119 of file kwebwallet.cpp.
◆ urlForFrame()
|
static |
Definition at line 107 of file kwebwallet.cpp.
◆ walletKey()
|
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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.