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())
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()
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
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)
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)
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
KIO::MetaData & requestMetaData()
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
static bool runCommand(const QString &cmd, QWidget *window)
Use KWallet to store login credentials and other form data from web sites.
Definition: kwebpage.h:108
static KMimeTypeTrader * self()
KIO::AccessManager AccessManager
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
KGuiItem ok()
const KShortcut & cut()
static void putReplyOnHold(QNetworkReply *reply)
bool isExternalContentAllowed() const
virtual bool acceptNavigationRequest(QWebFrame *frame, const QNetworkRequest &request, NavigationType type)
Definition: kwebpage.cpp:445
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())
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 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)
An enhanced QWebPage that provides integration into the KDE environment.
Definition: kwebpage.h:75
QStringList categories() 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
QString sessionMetaData(const QString &key) const
Get an item of session metadata.
Definition: kwebpage.cpp:373
QString requestMetaData(const QString &key) const
Get an item of request metadata.
Definition: kwebpage.cpp:384
static bool isMimeTypeAssociatedWithSelf(const KService::Ptr &offer)
Definition: kwebpage.cpp:78
KService::Ptr preferredService(const QString &mimeType, const QString &genericServiceType=QString::fromLatin1("Application"))
void setDisableCookieStorage(bool disable)
const KShortcut & paste()
int error() const
QStringList list(const QString &fileClass)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.