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

Applets

Kickoff::UrlItemLauncher

Kickoff::UrlItemLauncher Class Reference

#include <urlitemlauncher.h>

Inheritance diagram for Kickoff::UrlItemLauncher:

Inheritance graph
[legend]

List of all members.


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

enum Kickoff::UrlItemLauncher::HandlerType

Enumerator:
ProtocolHandler 
ExtensionHandler 

Definition at line 62 of file urlitemlauncher.h.


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]

Open the specified index from a Kickoff model.

Definition at line 99 of file urlitemlauncher.cpp.

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

Open the specified url.

Definition at line 123 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
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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