KParts
browserextension.h
Go to the documentation of this file.
323 Q_PROPERTY( bool urlDropHandling READ isURLDropHandlingEnabled WRITE setURLDropHandlingEnabled )
738 virtual BrowserHostExtension *findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &frame);
780 virtual bool get( const unsigned long objid, const QString & field, Type & type, unsigned long & retobjid, QString & value );
788 virtual bool call( const unsigned long objid, const QString & func, const QStringList & args, Type & type, unsigned long & retobjid, QString & value );
802 void partEvent( const unsigned long objid, const QString & event, const KParts::LiveConnectExtension::ArgList & args );
void openUrlNotify()
Tells the hosting browser that the part opened a new URL (which can be queried via KParts::Part::url(...
void popupMenu(const QPoint &global, const KUrl &url, mode_t mode=static_cast< mode_t >(-1), const KParts::OpenUrlArguments &args=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArgs=KParts::BrowserArguments(), KParts::BrowserExtension::PopupFlags flags=KParts::BrowserExtension::DefaultPopupItems, const KParts::BrowserExtension::ActionGroupMap &actionGroups=ActionGroupMap())
Emit this to make the browser show a standard popup menu for the given url.
void pasteRequest()
Asks the hosting browser to perform a paste (using openUrlRequestDelayed())
Definition browserextension.cpp:609
static ActionSlotMap * actionSlotMapPtr()
Definition browserextension.cpp:727
void enableAction(const char *name, bool enabled)
Enables or disable a standard action held by the browser.
void setLocationBarUrl(const QString &url)
Updates the URL shown in the browser's location bar to url.
void loadingProgress(int percent)
Since the part emits the jobid in the started() signal, progress information is automatically display...
void speedProgress(int bytesPerSecond)
void resizeTopLevelWidget(int w, int h)
Ask the hosting application to resize the top level widget.
void selectionInfo(const QString &text)
Inform the hosting application about the current selection.
void addWebSideBar(const KUrl &url, const QString &name)
Ask the hosting application to add a new HTML (aka Mozilla/Netscape) SideBar entry.
QMap< QByteArray, int > ActionNumberMap
Definition browserextension.h:700
void setActionText(const char *name, const QString &text)
Change the text of a standard action held by the browser.
QMap< QString, QList< QAction * > > ActionGroupMap
Associates a list of actions with a predefined name known by the host's popupmenu: "editactions" for ...
Definition browserextension.h:493
void setPageSecurity(int)
Tell the host (browser) about security state of current page enum PageSecurity { NotCrypted,...
bool isURLDropHandlingEnabled() const
Returns whether url drop handling is enabled.
Definition browserextension.cpp:593
void requestFocus(KParts::ReadOnlyPart *part)
Ask the hosting application to focus part.
void selectionInfo(const KUrl::List &urls)
Inform the hosting application about the current selection.
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.
static BrowserExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this BrowserExtension class.
Definition browserextension.cpp:734
void popupMenu(const QPoint &global, const KFileItemList &items, const KParts::OpenUrlArguments &args=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArgs=KParts::BrowserArguments(), KParts::BrowserExtension::PopupFlags flags=KParts::BrowserExtension::DefaultPopupItems, const KParts::BrowserExtension::ActionGroupMap &actionGroups=ActionGroupMap())
Emit this to make the browser show a standard popup menu for the files items.
void createNewWindow(const KUrl &url, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArguments=KParts::BrowserArguments(), const KParts::WindowArgs &windowArgs=KParts::WindowArgs(), KParts::ReadOnlyPart **part=0)
Asks the hosting browser to open a new window for the given url and return a reference to the content...
static ActionSlotMap actionSlotMap()
Returns a map containing the action names as keys and corresponding SLOT()'ified method names as data...
Definition browserextension.cpp:722
void moveTopLevelWidget(int x, int y)
Ask the hosting application to move the top level widget.
void selectionInfo(const KFileItemList &items)
Inform the hosting application about the current selection.
void itemsRemoved(const KFileItemList &items)
Inform the host about items that have been removed.
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
void mouseOverInfo(const KFileItem &item)
Inform the hosting application that the user moved the mouse over an item.
void openUrlRequest(const KUrl &url, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArguments=KParts::BrowserArguments())
Asks the host (browser) to open url.
QMap< QByteArray, QByteArray > ActionSlotMap
Definition browserextension.h:439
void setIconUrl(const KUrl &url)
Sets the URL of an icon for the currently displayed page.
PopupFlag
Set of flags passed via the popupMenu signal, to ask for some items in the popup menu.
Definition browserextension.h:338
@ IsLink
show "Bookmark This Link" and other link-related actions (linkactions merging group)
Definition browserextension.h:349
@ ShowNavigationItems
show "back" and "forward" (usually done when clicking the background of the view, but not an item)
Definition browserextension.h:340
@ ShowProperties
show "Properties" action (usually done by directory views)
Definition browserextension.h:351
@ ShowCreateDirectory
show "create directory" (usually only done on the background of the view, or in hierarchical views li...
Definition browserextension.h:344
@ ShowUrlOperations
show copy, paste, as well as cut if NoDeletion is not set.
Definition browserextension.h:350
@ ShowTextSelectionItems
set when selecting text, for a popup that only contains text-related items.
Definition browserextension.h:346
@ ShowReload
show "reload" (usually done when clicking the background of the view, but not an item)
Definition browserextension.h:342
@ ShowBookmark
show "add to bookmarks" (usually not done on the local filesystem)
Definition browserextension.h:343
void infoMessage(const QString &)
void setURLDropHandlingEnabled(bool enable)
Enables or disables url drop handling.
Definition browserextension.cpp:598
virtual QStringList frameNames() const
Returns a list of the names of all hosted child objects.
Definition browserextension.cpp:768
BrowserHostExtension(KParts::ReadOnlyPart *parent)
Definition browserextension.cpp:757
static BrowserHostExtension * childObject(QObject *obj)
Queries obj for a child object which inherits from this BrowserHostExtension class.
Definition browserextension.cpp:785
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
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
virtual const QList< KParts::ReadOnlyPart * > frames() const
Returns a list of pointers to all hosted child objects.
Definition browserextension.cpp:773
The purpose of this interface is to allow a direct communication between a KPart and the hosting brow...
Definition browserinterface.h:54
void partEvent(const unsigned long objid, const QString &event, const KParts::LiveConnectExtension::ArgList &args)
notify a event from the part of object objid
QList< QPair< Type, QString > > ArgList
Definition browserextension.h:772
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
static LiveConnectExtension * childObject(QObject *obj)
Definition browserextension.cpp:817
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
LiveConnectExtension(KParts::ReadOnlyPart *parent)
Definition browserextension.cpp:798
virtual void unregister(const unsigned long objid)
notifies the part that there is no reference anymore to objid
Definition browserextension.cpp:815
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
OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts::ReadOnlyP...
Definition part.h:405
OpenUrlEvent(ReadOnlyPart *part, const KUrl &url, const OpenUrlArguments &args=OpenUrlArguments(), const BrowserArguments &browserArgs=BrowserArguments())
Definition browserextension.cpp:66
BrowserArguments browserArguments() const
Definition browserextension.cpp:94
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition browserextension.h:193
void setToolBarsVisible(bool visible)
Definition browserextension.cpp:386
WindowArgs & operator=(const WindowArgs &args)
Definition browserextension.cpp:285
void setMenuBarVisible(bool visible)
Definition browserextension.cpp:376
bool isMenuBarVisible() const
Definition browserextension.cpp:381
void setStatusBarVisible(bool visible)
Definition browserextension.cpp:396
bool scrollBarsVisible() const
Definition browserextension.cpp:431
void setScrollBarsVisible(bool visible)
Definition browserextension.cpp:426
bool isStatusBarVisible() const
Definition browserextension.cpp:401
void setLowerWindow(bool lower)
Definition browserextension.cpp:416
void setResizable(bool resizable)
Definition browserextension.cpp:406
Definition browserextension.h:32
BrowserArguments is a set of web-browsing-specific arguments, which allow specifying how a URL should...
Definition browserextension.h:65
void setLockHistory(bool lock)
Whether to lock the history when opening the next URL.
Definition browserextension.cpp:199
BrowserArguments & operator=(const BrowserArguments &args)
Definition browserextension.cpp:139
bool redirectedRequest() const
Definition browserextension.cpp:177
bool forcesNewWindow() const
Whether the URL specifies to be opened in a new window.
Definition browserextension.cpp:230
void setDoPost(bool enable)
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition browserextension.cpp:187
QString contentType() const
KHTML-specific field, header defining the type of the POST data.
Definition browserextension.cpp:182
void setNewTab(bool newTab)
Whether the URL should be opened in a new tab instead in a new window.
Definition browserextension.cpp:211
QStringList docState
This buffer can be used by the part to save and restore its contents.
Definition browserextension.h:81
void setForcesNewWindow(bool forcesNewWindow)
Set whether the URL specifies to be opened in a new window.
Definition browserextension.cpp:223
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
QByteArray postData
KHTML-specific field, contents of the HTTP POST data.
Definition browserextension.h:94
void setContentType(const QString &contentType)
KHTML-specific field, header defining the type of the POST data.
Definition browserextension.cpp:163
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 doPost() const
KHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition browserextension.cpp:194
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.