akregator
#include <openurlrequest.h>
| Public Types | |
| enum | Options { None =0, NewTab, ExternalBrowser } | 
| Public Member Functions | |
| OpenUrlRequest (const KUrl &url=KUrl()) | |
| KParts::OpenUrlArguments | args () const | 
| KParts::BrowserArguments | browserArgs () const | 
| QString | debugInfo () const | 
| int | frameId () const | 
| bool | openInBackground () const | 
| Options | options () const | 
| KParts::ReadOnlyPart * | part () const | 
| void | setArgs (const KParts::OpenUrlArguments &args) | 
| void | setBrowserArgs (const KParts::BrowserArguments &args) | 
| void | setFrameId (int frameId) | 
| void | setOpenInBackground (bool background) | 
| void | setOptions (Options options) | 
| void | setPart (KParts::ReadOnlyPart *part) | 
| void | setUrl (const KUrl &url) | 
| void | setWasHandled (bool handled) | 
| KUrl | url () const | 
| bool | wasHandled () const | 
Detailed Description
Definition at line 42 of file openurlrequest.h.
Member Enumeration Documentation
Akregator-specific options specifying how a link should be handled.
TODO: check what can be done by overriding KURLArgs flags.
| Enumerator | |
|---|---|
| None | no explicit options, use default | 
| NewTab | open in new tab | 
| ExternalBrowser | open in external browser | 
Definition at line 50 of file openurlrequest.h.
Constructor & Destructor Documentation
| 
 | explicit | 
Definition at line 31 of file openurlrequest.cpp.
Member Function Documentation
| KParts::OpenUrlArguments Akregator::OpenUrlRequest::args | ( | ) | const | 
Definition at line 65 of file openurlrequest.cpp.
| KParts::BrowserArguments Akregator::OpenUrlRequest::browserArgs | ( | ) | const | 
Definition at line 76 of file openurlrequest.cpp.
| QString Akregator::OpenUrlRequest::debugInfo | ( | ) | const | 
Definition at line 114 of file openurlrequest.cpp.
| int Akregator::OpenUrlRequest::frameId | ( | ) | const | 
the Id of the frame that sent the request
Definition at line 36 of file openurlrequest.cpp.
| bool Akregator::OpenUrlRequest::openInBackground | ( | ) | const | 
Definition at line 55 of file openurlrequest.cpp.
| OpenUrlRequest::Options Akregator::OpenUrlRequest::options | ( | ) | const | 
Definition at line 86 of file openurlrequest.cpp.
| KParts::ReadOnlyPart * Akregator::OpenUrlRequest::part | ( | ) | const | 
The part that was created for a "NewTab" request.
It must be set after creating the tab, so that the initiating part can load the URL into the new part. This works only synchronously and requires args().serviceType to be set.
- See also
- KParts::BrowserExtension::createNewWindow()
Definition at line 109 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setArgs | ( | const KParts::OpenUrlArguments & | args | ) | 
Definition at line 70 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setBrowserArgs | ( | const KParts::BrowserArguments & | args | ) | 
Definition at line 81 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setFrameId | ( | int | frameId | ) | 
Definition at line 41 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setOpenInBackground | ( | bool | background | ) | 
Definition at line 60 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setOptions | ( | OpenUrlRequest::Options | options | ) | 
Definition at line 99 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setPart | ( | KParts::ReadOnlyPart * | part | ) | 
Definition at line 104 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setUrl | ( | const KUrl & | url | ) | 
Definition at line 51 of file openurlrequest.cpp.
| void Akregator::OpenUrlRequest::setWasHandled | ( | bool | handled | ) | 
Definition at line 129 of file openurlrequest.cpp.
| KUrl Akregator::OpenUrlRequest::url | ( | ) | const | 
Definition at line 46 of file openurlrequest.cpp.
| bool Akregator::OpenUrlRequest::wasHandled | ( | ) | const | 
Definition at line 124 of file openurlrequest.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 KDE API Reference
    KDE API Reference