KDEWebKit
kwebpage.cpp
Go to the documentation of this file.
100 const KIO::MetaData& metaData = reply->attribute(static_cast<QNetworkRequest::Attribute>(KIO::AccessManager::MetaData)).toMap();
269 settings()->setWebGraphic(QWebSettings::MissingPluginGraphic, KIcon("preferences-plugin").pixmap(32, 32));
270 settings()->setWebGraphic(QWebSettings::MissingImageGraphic, KIcon("image-missing").pixmap(32, 32));
271 settings()->setWebGraphic(QWebSettings::DefaultFrameIconGraphic, KIcon("applications-internet").pixmap(32, 32));
329 job->setMetaData(request.attribute(static_cast<QNetworkRequest::Attribute>(KIO::AccessManager::MetaData)).toMap());
377 KIO::Integration::AccessManager *manager = qobject_cast<KIO::Integration::AccessManager *>(networkAccessManager());
388 KIO::Integration::AccessManager *manager = qobject_cast<KIO::Integration::AccessManager *>(networkAccessManager());
397 KIO::Integration::AccessManager *manager = qobject_cast<KIO::Integration::AccessManager *>(networkAccessManager());
404 KIO::Integration::AccessManager *manager = qobject_cast<KIO::Integration::AccessManager *>(networkAccessManager());
411 KIO::Integration::AccessManager *manager = qobject_cast<KIO::Integration::AccessManager *>(networkAccessManager());
418 KIO::Integration::AccessManager *manager = qobject_cast<KIO::Integration::AccessManager *>(networkAccessManager());
426 const QString userAgent = KProtocolManager::userAgentForHost((url.isLocalFile() ? QL1S("localhost") : url.host()));
437 KIO::Integration::CookieJar *cookieJar = manager ? qobject_cast<KIO::Integration::CookieJar*>(manager->cookieJar()) : 0;
445 bool KWebPage::acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
483 const KIO::MetaData& data = reply->attribute(static_cast<QNetworkRequest::Attribute>(KIO::AccessManager::MetaData)).toMap();
void setEmitReadyReadOnMetaDataChange(bool)
static void extractMimeType(const QNetworkReply *reply, QString &mimeType)
Definition: kwebpage.cpp:97
static bool run(const KService &service, const KUrl::List &urls, QWidget *window, bool tempFiles=false, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
bool hasRawHeader(const QByteArray &headerName) const
bool contains(const Key &key) const
QWidget * window() const
const KShortcut & redo()
static QString userAgentForHost(const QString &hostname)
void downloadResponse(QNetworkReply *reply)
Download the resource specified by reply using KIO.
Definition: kwebpage.cpp:340
static void setActionIcon(QAction *action, const QIcon &icon)
Definition: kwebpage.cpp:208
const KShortcut & undo()
void setIcon(const QIcon &icon)
QString host() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
const KShortcut & selectAll()
TransferJob * get(const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
virtual QString userAgentForUrl(const QUrl &url) const
Definition: kwebpage.cpp:423
QNetworkRequest request() const
const KShortcut & back()
static KUrl fromPath(const QString &text)
static void setDisableCookieJarStorage(QNetworkAccessManager *manager, bool status)
Definition: kwebpage.cpp:434
bool handleReply(QNetworkReply *reply, QString *contentType=0, KIO::MetaData *metaData=0)
Attempts to handle reply and returns true on success, false otherwise.
Definition: kwebpage.cpp:477
KUrl destUrl() const
A QWebPluginFactory with integration into the KDE environment.
Definition: kwebpluginfactory.h:45
void setSuffix(const QString &suffix)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KWebPage(QObject *parent=0, Integration flags=Integration())
Constructs a KWebPage with parent parent.
Definition: kwebpage.cpp:222
void setRequestMetaData(const QString &key, const QString &value)
Set an item of metadata to be sent to the KIO slave with the next request.
Definition: kwebpage.cpp:402
void setExternalContentAllowed(bool allowed)
QString toString(QFlags< QUrl::FormattingOption > options) const
void removeRequestMetaData(const QString &key)
Remove an item of request metadata.
Definition: kwebpage.cpp:416
static void setActionShortcut(QAction *action, const KShortcut &shortcut)
Definition: kwebpage.cpp:215
QString exec() const
void setPath(const QString &path)
void clear()
QList< QKeySequence > toList(enum EmptyHandling handleEmpty=RemoveEmpty) const
static bool downloadResource(const KUrl &srcUrl, const QString &suggestedName=QString(), QWidget *parent=0, const KIO::MetaData &metaData=KIO::MetaData())
Definition: kwebpage.cpp:115
void append(const T &value)
void setShortcuts(const QList< QKeySequence > &shortcuts)
KIO::MetaData & requestMetaData()
QVariant property(const char *name) const
FileCopyJob * file_copy(const KUrl &src, const KUrl &dest, int permissions=-1, JobFlags flags=DefaultFlags)
bool isExternalContentAllowed() const
Whether access to remote content is permitted.
Definition: kwebpage.cpp:290
int toInt(bool *ok) const
bool isEmpty() const
QString trimmed() const
QWebFrame * mainFrame() const
const char * constData() const
static bool runCommand(const QString &cmd, QWidget *window)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
Use KWallet to store login credentials and other form data from web sites.
Definition: kwebpage.h:108
QVariant attribute(Attribute code, const QVariant &defaultValue) const
static KMimeTypeTrader * self()
QByteArray rawHeader(const QByteArray &headerName) const
KIO::AccessManager AccessManager
QString scheme() const
const KShortcut & reload()
const KShortcut & copy()
static bool displayOpenWithDialog(const KUrl::List &lst, QWidget *window, bool tempFiles=false, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
static QString defaultUserAgent()
QString quoteArg(const QString &arg)
virtual void downloadRequest(const QNetworkRequest &request)
Download request using KIO.
Definition: kwebpage.cpp:323
const KShortcut & forward()
void setAllowExternalContent(bool allow)
Set whether to allow remote content.
Definition: kwebpage.cpp:303
QUrl url() const
QByteArray simplified() const
QWebSettings * settings() const
KGuiItem ok()
const KShortcut & cut()
void setPluginFactory(QWebPluginFactory *factory)
virtual QString userAgentForUrl(const QUrl &url) const
static void putReplyOnHold(QNetworkReply *reply)
bool isExternalContentAllowed() const
QNetworkAccessManager::Operation operation() const
virtual bool acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
Definition: kwebpage.cpp:445
bool isValid() const
static bool runUrl(const KUrl &url, const QString &mimetype, QWidget *window, bool tempFile=false, bool runExecutables=true, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
QMap< QString, QVariant > toMap() const
KIO::MetaData & sessionMetaData()
void setWindow(QWidget *widget)
static void reloadRequestWithoutDisposition(QNetworkReply *reply)
Definition: kwebpage.cpp:66
QString desktopEntryName() const
QString fileName(const DirectoryOptions &options=IgnoreTrailingSlash) const
Use KPart componenets, if available, to display content in
Definition: kwebpage.h:101
void setRawHeader(const QByteArray &headerName, const QByteArray &headerValue)
void removeSessionMetaData(const QString &key)
Remove an item of session metadata.
Definition: kwebpage.cpp:409
void setWallet(KWebWallet *wallet)
Set the KWebWallet that is used to store form data.
Definition: kwebpage.cpp:310
CopyJob * copy(const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
QVariant attribute(QNetworkRequest::Attribute code) const
QUrl url() const
An enhanced QWebPage that provides integration into the KDE environment.
Definition: kwebpage.h:75
QStringList categories() const
void load(const QUrl &url)
QString left(int n) const
NetworkError error() const
QWidget * view() const
QNetworkCookieJar * cookieJar() const
static void publishSlaveOnHold()
bool isLocalFile() const
void setSessionMetaData(const QString &key, const QString &value)
Set an item of metadata to be sent to the KIO slave with every request.
Definition: kwebpage.cpp:395
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QNetworkAccessManager * networkAccessManager() const
QObject * parent() const
QString sessionMetaData(const QString &key) const
Get an item of session metadata.
Definition: kwebpage.cpp:373
void setCache(QAbstractNetworkCache *cache)
QString requestMetaData(const QString &key) const
Get an item of request metadata.
Definition: kwebpage.cpp:384
QString toString() const
void setNetworkAccessManager(QNetworkAccessManager *manager)
QAction * action(WebAction action) const
static bool isMimeTypeAssociatedWithSelf(const KService::Ptr &offer)
Definition: kwebpage.cpp:78
KService::Ptr preferredService(const QString &mimeType, const QString &genericServiceType=QString::fromLatin1("Application"))
QString applicationName()
void setDisableCookieStorage(bool disable)
const KShortcut & paste()
int error() const
QStringList list(const QString &fileClass)
const T value(const Key &key) const
int remove(const Key &key)
void setWebGraphic(WebGraphic type, const QPixmap &graphic)
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.