KParts
browserextension.cpp
Go to the documentation of this file.
651 void BrowserExtension::slotOpenUrlRequest( const KUrl &url, const KParts::OpenUrlArguments& args, const KParts::BrowserArguments &browserArgs )
688 //kDebug() << "BrowserExtension::slotEnableAction setting bit " << it.data() << " to " << enabled;
803 bool LiveConnectExtension::get( const unsigned long, const QString &, Type &, unsigned long &, QString & ) {
811 bool LiveConnectExtension::call( const unsigned long, const QString &, const QStringList &, Type &, unsigned long &, QString & ) {
The Browser Extension is an extension (yes, no kidding) to KParts::ReadOnlyPart, which allows a bette...
Definition: browserextension.h:320
KGuiItem cancel()
virtual ~BrowserExtension()
Definition: browserextension.cpp:547
QString i18n(const char *text)
void setLockHistory(bool lock)
Whether to lock the history when opening the next URL.
Definition: browserextension.cpp:199
QString errorMsg() const
BrowserArguments & operator=(const BrowserArguments &args)
Definition: browserextension.cpp:139
KAction * print(const QObject *recvr, const char *slot, QObject *parent)
KAction * cut(const QObject *recvr, const char *slot, QObject *parent)
QString contentType() const
KHTML-specific field, header defining the type of the POST data.
Definition: browserextension.cpp:182
bool forcesNewWindow() const
Whether the URL specifies to be opened in a new window.
Definition: browserextension.cpp:230
bool scrollBarsVisible() const
Definition: browserextension.cpp:431
The purpose of this interface is to allow a direct communication between a KPart and the hosting brow...
Definition: browserinterface.h:53
void setBrowserInterface(BrowserInterface *impl)
Definition: browserextension.cpp:671
KAction * copy(const QObject *recvr, const char *slot, QObject *parent)
BrowserArguments browserArguments() const
Definition: browserextension.cpp:94
void setURLDropHandlingEnabled(bool enable)
Enables or disables url drop handling.
Definition: browserextension.cpp:598
void setToolBarsVisible(bool visible)
Definition: browserextension.cpp:386
#define K_GLOBAL_STATIC(TYPE, NAME)
BrowserArguments is a set of web-browsing-specific arguments, which allow specifying how a URL should...
Definition: browserextension.h:64
BrowserHostExtension(KParts::ReadOnlyPart *parent)
Definition: browserextension.cpp:757
virtual void saveState(QDataStream &stream)
Used by the browser to save the current state of the view (in order to restore it if going back in na...
Definition: browserextension.cpp:573
virtual const QMetaObject * metaObject() const
virtual bool call(const unsigned long objid, const QString &func, const QStringList &args, Type &type, unsigned long &retobjid, QString &value)
calls a function of objid, return true on success
Definition: browserextension.cpp:811
static ActionSlotMap actionSlotMap()
Returns a map containing the action names as keys and corresponding SLOT()'ified method names as data...
Definition: browserextension.cpp:722
virtual const QList< KParts::ReadOnlyPart * > frames() const
Returns a list of pointers to all hosted child objects.
Definition: browserextension.cpp:773
int height() const
int x() const
int y() const
QString & remove(int position, int n)
void setDoPost(bool enable)
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition: browserextension.cpp:187
virtual QStringList frameNames() const
Returns a list of the names of all hosted child objects.
Definition: browserextension.cpp:768
KAction * paste(const QObject *recvr, const char *slot, QObject *parent)
virtual ~LiveConnectExtension()
Definition: browserextension.cpp:801
BrowserArguments browserArguments() const
Retrieve the set of parameters to use for opening the URL (this must be called from openUrl() in the ...
Definition: browserextension.cpp:558
bool trustedSource
If true, the part who asks for a URL to be opened can be 'trusted' to execute applications.
Definition: browserextension.h:140
bool redirectedRequest() const
Definition: browserextension.cpp:177
void setData(const KUrl &url)
void setRedirectedRequest(bool redirected)
Set the redirect flag to indicate URL is a result of either a META redirect or HTTP redirect...
Definition: browserextension.cpp:170
virtual void restoreState(QDataStream &stream)
Used by the browser to restore the view in the state it was when we left it.
Definition: browserextension.cpp:579
bool isMenuBarVisible() const
Definition: browserextension.cpp:381
const char * name() const
QStringList docState
This buffer can be used by the part to save and restore its contents.
Definition: browserextension.h:81
void append(const T &value)
void enableAction(const char *name, bool enabled)
Enables or disable a standard action held by the browser.
bool toolBarsVisible() const
Definition: browserextension.cpp:391
QClipboard * clipboard()
An extension class for LiveConnect, i.e.
Definition: browserextension.h:765
bool filterUri(KUriFilterData &data, const QStringList &filters=QStringList())
bool isURLDropHandlingEnabled() const
Returns whether url drop handling is enabled.
Definition: browserextension.cpp:593
void setResizable(bool resizable)
Definition: browserextension.cpp:406
static BrowserExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this BrowserExtension class.
Definition: browserextension.cpp:734
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
int removeAll(const T &value)
QString trimmed() const
int methodCount() const
int methodOffset() const
static BrowserHostExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this BrowserHostExtension class.
Definition: browserextension.cpp:785
const char * signature() const
void setMenuBarVisible(bool visible)
Definition: browserextension.cpp:376
WindowArgs & operator=(const WindowArgs &args)
Definition: browserextension.cpp:285
void openUrlRequest(const KUrl &url, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArguments=KParts::BrowserArguments())
Asks the host (browser) to open url.
bool isStatusBarVisible() const
Definition: browserextension.cpp:401
BrowserInterface * browserInterface() const
Definition: browserextension.cpp:676
void setStatusBarVisible(bool visible)
Definition: browserextension.cpp:396
static int questionYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Notify)
static ActionSlotMap * actionSlotMapPtr()
Definition: browserextension.cpp:727
static KUriFilter * self()
An extension class for container parts, i.e.
Definition: browserextension.h:712
virtual void unregister(const unsigned long objid)
notifies the part that there is no reference anymore to objid
Definition: browserextension.cpp:815
void setForcesNewWindow(bool forcesNewWindow)
Set whether the URL specifies to be opened in a new window.
Definition: browserextension.cpp:223
bool contains(const T &value) const
QStringList pluginNames() const
bool softReload
softReload is set when user just hits reload button.
Definition: browserextension.h:89
OpenUrlArguments arguments() const
Definition: browserextension.cpp:89
bool doPost() const
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition: browserextension.cpp:194
QString text(Mode mode) const
MethodType methodType() const
void openUrlRequestDelayed(const KUrl &url, const KParts::OpenUrlArguments &arguments, const KParts::BrowserArguments &browserArguments)
This signal is emitted when openUrlRequest() is called, after a 0-seconds timer.
int width() const
virtual bool put(const unsigned long objid, const QString &field, const QString &value)
put a field value in objid, return true on success
Definition: browserextension.cpp:807
void setScrollBarsVisible(bool visible)
Definition: browserextension.cpp:426
QString escape(const QString &plain)
virtual ~BrowserArguments()
Definition: browserextension.cpp:157
int length() const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual ~BrowserHostExtension()
Definition: browserextension.cpp:763
void setContentType(const QString &contentType)
KHTML-specific field, header defining the type of the POST data.
Definition: browserextension.cpp:163
bool isActionEnabled(const char *name) const
Definition: browserextension.cpp:694
void pasteRequest()
Asks the hosting browser to perform a paste (using openUrlRequestDelayed())
Definition: browserextension.cpp:609
void setLowerWindow(bool lower)
Definition: browserextension.cpp:416
OpenUrlEvent(ReadOnlyPart *part, const KUrl &url, const OpenUrlArguments &args=OpenUrlArguments(), const BrowserArguments &browserArgs=BrowserArguments())
Definition: browserextension.cpp:66
virtual BrowserHostExtension * findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &frame)
Returns the part that contains frame and that may be accessed by callingPart.
Definition: browserextension.cpp:791
typedef ConstIterator
void setNewTab(bool newTab)
Whether the URL should be opened in a new tab instead in a new window.
Definition: browserextension.cpp:211
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
virtual bool openUrlInFrame(const KUrl &url, const KParts::OpenUrlArguments &arguments, const KParts::BrowserArguments &browserArguments)
Opens the given url in a hosted child frame.
Definition: browserextension.cpp:778
UriTypes uriType() const
static LiveConnectExtension * childObject(QObject *obj)
Definition: browserextension.cpp:817
virtual void setBrowserArguments(const BrowserArguments &args)
Set the parameters to use for opening the next URL.
Definition: browserextension.cpp:553
KUrl uri() const
QMetaMethod method(int index) const
void setCheckForExecutables(bool check)
QByteArray postData
KHTML-specific field, contents of the HTTP POST data.
Definition: browserextension.h:94
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition: browserextension.h:192
void setActionText(const char *name, const QString &text)
Change the text of a standard action held by the browser.
QString actionText(const char *name) const
Definition: browserextension.cpp:712
OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts::ReadOnlyP...
Definition: part.h:404
LiveConnectExtension(KParts::ReadOnlyPart *parent)
Definition: browserextension.cpp:798
singleShot
virtual bool get(const unsigned long objid, const QString &field, Type &type, unsigned long &retobjid, QString &value)
get a field value from objid, return true on success
Definition: browserextension.cpp:803
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:35 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:25:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.