KParts
browserextension.h
Go to the documentation of this file.
323 Q_PROPERTY( bool urlDropHandling READ isURLDropHandlingEnabled WRITE setURLDropHandlingEnabled )
339 DefaultPopupItems=0x0000,
340 ShowNavigationItems=0x0001,
341 ShowUp=0x0002,
342 ShowReload=0x0004,
343 ShowBookmark=0x0008,
346 ShowTextSelectionItems=0x0020,
349 IsLink=0x0080,
350 ShowUrlOperations=0x0100,
352 };
738 virtual BrowserHostExtension *findFrameParent(KParts::ReadOnlyPart *callingPart, const QString &frame);
771 };
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 );
The Browser Extension is an extension (yes, no kidding) to KParts::ReadOnlyPart, which allows a bette...
Definition: browserextension.h:321
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 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,...
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.
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...
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.
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
void infoMessage(const QString &)
An extension class for container parts, i.e.
Definition: browserextension.h:713
The purpose of this interface is to allow a direct communication between a KPart and the hosting brow...
Definition: browserinterface.h:54
An extension class for LiveConnect, i.e.
Definition: browserextension.h:766
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
OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts::ReadOnlyP...
Definition: part.h:405
The KParts::OpenUrlEvent event informs that a given part has opened a given URL.
Definition: browserextension.h:250
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition: browserextension.h:193
Definition: browserextension.h:32
TransferJob * put(const KUrl &url, int permissions, JobFlags flags=DefaultFlags)
TransferJob * get(const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
KGuiItem test()
BrowserArguments is a set of web-browsing-specific arguments, which allow specifying how a URL should...
Definition: browserextension.h:65
QStringList docState
This buffer can be used by the part to save and restore its contents.
Definition: browserextension.h:81
QByteArray postData
KHTML-specific field, contents of the HTTP POST data.
Definition: browserextension.h:94
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 softReload
softReload is set when user just hits reload button.
Definition: browserextension.h:89
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.