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"
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
Definition at line 98 of file kwebwallet.cpp.
Definition at line 465 of file kwebwallet.cpp.
Definition at line 119 of file kwebwallet.cpp.
Definition at line 107 of file kwebwallet.cpp.
|
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
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.