• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Applets

Kickoff::UrlItemLauncher

Kickoff::UrlItemLauncher Class Reference

UrlItemLauncher provides facilities to open a item from a Kickoff model based on its UrlRole data. More...

#include <urlitemlauncher.h>

Inheritance diagram for Kickoff::UrlItemLauncher:

Inheritance graph
[legend]

List of all members.


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)

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 56 of file urlitemlauncher.h.


Member Enumeration Documentation

enum Kickoff::UrlItemLauncher::HandlerType

Enumerator:
ProtocolHandler 
ExtensionHandler 

Definition at line 64 of file urlitemlauncher.h.


Constructor & Destructor Documentation

UrlItemLauncher::UrlItemLauncher ( QObject *  parent = 0  ) 

Definition at line 86 of file urlitemlauncher.cpp.

UrlItemLauncher::~UrlItemLauncher (  )  [virtual]

Definition at line 92 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]

Open the specified index from a Kickoff model.

Definition at line 97 of file urlitemlauncher.cpp.

bool UrlItemLauncher::openUrl ( const QString &  url  )  [slot]

Open the specified url.

Definition at line 121 of file urlitemlauncher.cpp.


The documentation for this class was generated from the following files:
  • urlitemlauncher.h
  • urlitemlauncher.cpp

Applets

Skip menu "Applets"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal