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);
770 TypeVoid=0, TypeBool, TypeFunction, TypeNumber, TypeObject, TypeString
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 );
QByteArray postData
KHTML-specific field, contents of the HTTP POST data.
Definition: browserextension.h:94
void selectionInfo(const QString &text)
Inform the hosting application about the current selection.
bool softReload
softReload is set when user just hits reload button.
Definition: browserextension.h:89
QStringList docState
This buffer can be used by the part to save and restore its contents.
Definition: browserextension.h:81
void partEvent(const unsigned long objid, const QString &event, const KParts::LiveConnectExtension::ArgList &args)
notify a event from the part of object objid
BrowserArguments is a set of web-browsing-specific arguments, which allow specifying how a URL should...
Definition: browserextension.h:65
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 infoMessage(const QString &)
void setLocationBarUrl(const QString &url)
Updates the URL shown in the browser's location bar to url.
void setActionText(const char *name, const QString &text)
Change the text of a standard action held by the browser.
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 enableAction(const char *name, bool enabled)
Enables or disable a standard action held by the browser.
void loadingProgress(int percent)
Since the part emits the jobid in the started() signal, progress information is automatically display...
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
KGuiItem test()
An extension class for LiveConnect, i.e.
Definition: browserextension.h:766
void selectionInfo(const KFileItemList &items)
Inform the hosting application about the current selection.
TransferJob * put(const KUrl &url, int permissions, JobFlags flags=DefaultFlags)
void requestFocus(KParts::ReadOnlyPart *part)
Ask the hosting application to focus part.
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 moveTopLevelWidget(int x, int y)
Ask the hosting application to move the top level widget.
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition: browserextension.h:193
void resizeTopLevelWidget(int w, int h)
Ask the hosting application to resize the top level widget.
The Browser Extension is an extension (yes, no kidding) to KParts::ReadOnlyPart, which allows a bette...
Definition: browserextension.h:321
void selectionInfo(const KUrl::List &urls)
Inform the hosting application about the current selection.
void speedProgress(int bytesPerSecond)
void setIconUrl(const KUrl &url)
Sets the URL of an icon for the currently displayed page.
TransferJob * get(const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
void addWebSideBar(const KUrl &url, const QString &name)
Ask the hosting application to add a new HTML (aka Mozilla/Netscape) SideBar entry.
The purpose of this interface is to allow a direct communication between a KPart and the hosting brow...
Definition: browserinterface.h:54
void openUrlRequest(const KUrl &url, const KParts::OpenUrlArguments &arguments=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArguments=KParts::BrowserArguments())
Asks the host (browser) to open url.
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.
bool trustedSource
If true, the part who asks for a URL to be opened can be 'trusted' to execute applications.
Definition: browserextension.h:140
QMap< QByteArray, QByteArray > ActionSlotMap
Definition: browserextension.h:439
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.
QList< QPair< Type, QString > > ArgList
Definition: browserextension.h:772
Definition: browserextension.h:32
OpenUrlArguments is the set of arguments that specify how a URL should be opened by KParts::ReadOnlyP...
Definition: part.h:405
PopupFlag
Set of flags passed via the popupMenu signal, to ask for some items in the popup menu.
Definition: browserextension.h:338
The KParts::OpenUrlEvent event informs that a given part has opened a given URL.
Definition: browserextension.h:250
An extension class for container parts, i.e.
Definition: browserextension.h:713
QMap< QByteArray, int > ActionNumberMap
Definition: browserextension.h:700
void setPageSecurity(int)
Tell the host (browser) about security state of current page enum PageSecurity { NotCrypted,...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.