Home · All Namespaces · All Classes
Public Member Functions

LauncherAction Class Reference

#include <launcheraction.h>

Inheritance diagram for LauncherAction:
Inheritance graph
[legend]
Collaboration diagram for LauncherAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LauncherAction ()
 LauncherAction (const QString &dekstopEntry)

Detailed Description

A convenience wrapper around libcontentaction's ContenAction::Action. The object is used to turn .desktop files into objects that take care of invoking of the default action (D-Bus method call, execution of a binary, etc) specified in these .desktop files.

Instantiated with a valid .desktop file path, the object provides a trigger() method that asynchronously trigers the default action for that .desktop file.

Definition at line 35 of file launcheraction.h.


Constructor & Destructor Documentation

LauncherAction::LauncherAction (  ) 

Constructs an empty LauncherAction object.

Definition at line 22 of file launcheraction.cpp.

    : Action()
{
}

LauncherAction::LauncherAction ( const QString &  dekstopEntry  ) 

Constructs a LauncherAction object from a given .desktop file.

Parameters:
dekstopEntry Path to the .desktop file to initialize the action for.

Definition at line 27 of file launcheraction.cpp.

    : Action(Action::defaultActionForFile(desktopEntry, "application/x-desktop"))
{
}


The documentation for this class was generated from the following files:

Copyright © 2010 Nokia Corporation Generated on Thu Nov 4 2010 18:20:42
Doxygen 1.7.1
MeeGo Touch