Applets
Kickoff::UrlItemLauncher Class Reference
#include <urlitemlauncher.h>
Inheritance diagram for Kickoff::UrlItemLauncher:

Detailed Description
UrlItemLauncher provides facilities to open a item from a Kickoff model based on its UrlRole data.By default, a UrlItemLauncher opens all URLs using the KRun class. Additional handlers can be created to handle URLs with particular protocols or extensions differently. Handlers can be registered using the static addGlobalHandler() method.
Definition at line 54 of file urlitemlauncher.h.
Public Types | |
enum | HandlerType { ProtocolHandler, ExtensionHandler } |
Public Slots | |
bool | openItem (const QModelIndex &index) |
bool | openUrl (const QString &url) |
Public Member Functions | |
UrlItemLauncher (QObject *parent=0) | |
virtual | ~UrlItemLauncher () |
Static Public Member Functions | |
static void | addGlobalHandler (HandlerType type, const QString &name, UrlItemHandler *handler) |
Member Enumeration Documentation
Constructor & Destructor Documentation
UrlItemLauncher::UrlItemLauncher | ( | QObject * | parent = 0 |
) |
Definition at line 88 of file urlitemlauncher.cpp.
UrlItemLauncher::~UrlItemLauncher | ( | ) | [virtual] |
Definition at line 94 of file urlitemlauncher.cpp.
Member Function Documentation
void UrlItemLauncher::addGlobalHandler | ( | HandlerType | type, | |
const QString & | name, | |||
UrlItemHandler * | handler | |||
) | [static] |
Definition at line 145 of file urlitemlauncher.cpp.
bool UrlItemLauncher::openItem | ( | const QModelIndex & | index | ) | [slot] |
bool UrlItemLauncher::openUrl | ( | const QString & | url | ) | [slot] |
The documentation for this class was generated from the following files: