browserextension.h
311 TQ_PROPERTY( bool urlDropHandling READ isURLDropHandlingEnabled WRITE setURLDropHandlingEnabled )
598 void popupMenu( KXMLGUIClient *client, const TQPoint &global, const KFileItemList &items, const KParts::URLArgs &args, KParts::BrowserExtension::PopupFlags i );
635 const KParts::URLArgs &args, KParts::BrowserExtension::PopupFlags i, mode_t mode = (mode_t)-1 );
752 BrowserHostExtension *findFrameParent(KParts::ReadOnlyPart *callingPart, const TQString &frame);
807 virtual bool get( const unsigned long objid, const TQString & field, Type & type, unsigned long & retobjid, TQString & value );
815 virtual bool call( const unsigned long objid, const TQString & func, const TQStringList & args, Type & type, unsigned long & retobjid, TQString & value );
The Browser Extension is an extension (yes, no kidding) to KParts::ReadOnlyPart, which allows a bette...
Definition browserextension.h:309
void setLocationBarURL(const TQString &url)
Updates the URL shown in the browser's location bar to url.
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...
void popupMenu(const TQPoint &global, const KFileItemList &items)
Emit this to make the browser show a standard popup menu at the point global for the files items.
void createNewWindow(const KURL &url, const KParts::URLArgs &args, const KParts::WindowArgs &windowArgs, KParts::ReadOnlyPart *&part)
Asks the hosting browser to open a new window for the given url and return a reference to the content...
void selectionInfo(const KURL::List &urls)
Inform the hosting application about the current selection.
void speedProgress(int bytesPerSecond)
BrowserExtension(KParts::ReadOnlyPart *parent, const char *name=0L)
Constructor.
Definition browserextension.cpp:357
void resizeTopLevelWidget(int w, int h)
Ask the hosting application to resize the top level widget.
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:436
void openURLNotify()
Tells the hosting browser that the part opened a new URL (which can be queried via KParts::Part::url(...
void requestFocus(KParts::ReadOnlyPart *part)
Ask the hosting application to focus part.
void popupMenu(KXMLGUIClient *client, const TQPoint &global, const KFileItemList &items)
Emit this to make the browser show a standard popup menu at the point global for the files items.
void popupMenu(KXMLGUIClient *client, const TQPoint &global, const KURL &url, const TQString &mimeType, mode_t mode=(mode_t) -1)
Emit this to make the browser show a standard popup menu at the point global for the given url.
void popupMenu(KXMLGUIClient *client, const TQPoint &global, const KURL &url, const KParts::URLArgs &args, KParts::BrowserExtension::PopupFlags i, mode_t mode=(mode_t) -1)
Emit this to make the browser show a standard popup menu at the point global for the given url.
void mouseOverInfo(const KFileItem *item)
Inform the hosting application that the user moved the mouse over an item.
void popupMenu(const TQPoint &global, const KURL &url, const TQString &mimeType, mode_t mode=(mode_t) -1)
Emit this to make the browser show a standard popup menu at the point global for the given url.
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 createNewWindow(const KURL &url, const KParts::URLArgs &args=KParts::URLArgs())
Asks the hosting browser to open a new window for the given url.
void setIconURL(const KURL &url)
Sets the URL of an icon for the currently displayed page.
void selectionInfo(const TQString &text)
Inform the hosting application about the current selection.
void openURLRequestDelayed(const KURL &url, const KParts::URLArgs &args=KParts::URLArgs())
This signal is emitted when openURLRequest is called, after a 0-seconds timer.
void openURLRequest(const KURL &url, const KParts::URLArgs &args=KParts::URLArgs())
Asks the host (browser) to open url.
void setURLDropHandlingEnabled(bool enable)
Enables or disables url drop handling.
Definition browserextension.cpp:441
void addWebSideBar(const KURL &url, const TQString &name)
Ask the hosting application to add a new HTML (aka Mozilla/Netscape) SideBar entry.
void setActionText(const char *name, const TQString &text)
Change the text of a standard action held by the browser.
virtual bool openURLInFrame(const KURL &url, const KParts::URLArgs &urlArgs)
Opens the given url in a hosted child frame.
Definition browserextension.cpp:662
virtual const TQPtrList< KParts::ReadOnlyPart > frames() const
Returns a list of pointers to all hosted child objects.
Definition browserextension.cpp:657
virtual TQStringList frameNames() const
Returns a list of the names of all hosted child objects.
Definition browserextension.cpp:652
BrowserHostExtension * findFrameParent(KParts::ReadOnlyPart *callingPart, const TQString &frame)
Returns the part that contains frame and that may be accessed by callingPart.
Definition browserextension.cpp:687
static BrowserHostExtension * childObject(TQObject *obj)
Queries obj for a child object which inherits from this BrowserHostExtension class.
Definition browserextension.cpp:667
The purpose of this interface is to allow a direct communication between a KPart and the hosting brow...
Definition browserinterface.h:39
virtual void unregister(const unsigned long objid)
notifies the part that there is no reference anymore to objid
Definition browserextension.cpp:714
virtual bool put(const unsigned long objid, const TQString &field, const TQString &value)
put a field value in objid, return true on success
Definition browserextension.cpp:706
virtual bool get(const unsigned long objid, const TQString &field, Type &type, unsigned long &retobjid, TQString &value)
get a field value from objid, return true on success
Definition browserextension.cpp:702
virtual void partEvent(const unsigned long objid, const TQString &event, const ArgList &args)
notify an event from the part of object objid
virtual bool call(const unsigned long objid, const TQString &func, const TQStringList &args, Type &type, unsigned long &retobjid, TQString &value)
calls a function of objid, return true on success
Definition browserextension.cpp:710
URLArgs is a set of arguments bundled into a structure, to allow specifying how a URL should be opene...
Definition browserextension.h:58
void setContentType(const TQString &contentType)
TDEHTML-specific field, header defining the type of the POST data.
Definition browserextension.cpp:139
TQStringList docState
This buffer can be used by the part to save and restore its contents.
Definition browserextension.h:70
TQString contentType() const
TDEHTML-specific field, header defining the type of the POST data.
Definition browserextension.cpp:158
void setNewTab(bool newTab)
Whether the URL should be opened in a new tab instead in a new window.
Definition browserextension.cpp:194
int xOffset
xOffset is the horizontal scrolling of the part's widget (in case it's a scrollview).
Definition browserextension.h:81
void setDoPost(bool enable)
TDEHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition browserextension.cpp:170
TQMap< TQString, TQString > & metaData()
Meta-data to associate with the next TDEIO operation.
Definition browserextension.cpp:163
void setLockHistory(bool lock)
Whether to lock the history when opening the next URL.
Definition browserextension.cpp:182
bool reload
reload is set when the cache shouldn't be used (forced reload).
Definition browserextension.h:75
bool doPost() const
TDEHTML-specific field, whether to do a POST instead of a GET, for the next openURL.
Definition browserextension.cpp:177
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:146
TQString serviceType
The servicetype (usually mimetype) to use when opening the next URL.
Definition browserextension.h:89
void setForcesNewWindow(bool forcesNewWindow)
Set whether the URL specifies to be opened in a new window.
Definition browserextension.cpp:206
bool forcesNewWindow() const
Whether the URL specifies to be opened in a new window.
Definition browserextension.cpp:213
TQByteArray postData
TDEHTML-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:146
The WindowArgs are used to specify arguments to the "create new window" call (see the createNewWindow...
Definition browserextension.h:185
Trinity API Reference