Home · All Classes · Grouped Classes · Annotated · Functions

TaskManagerEntry Class Reference

The TaskManagerEntry class is used to insert non-application items into Qtopia's Running Applications/TaskManager window. More...

    #include <TaskManagerEntry>

Inherits QObject.

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The TaskManagerEntry class is used to insert non-application items into Qtopia's Running Applications/TaskManager window.

Normally, the TaskManager window only shows Qtopia applications. However, there may be times when you need to show other items in this window. For example, if you have a server task that displays an informational dialog about a long-running activity, you might want the dialog to be accessible via the TaskManager window so the user can return to the dialog if it is backgrounded. However, in this situation, the dialog will not automatically be displayed in the TaskManager because it is an ordinary dialog and not a Qtopia application.

In these cases, you can use the TaskManagerEntry class. For example:

    TaskManagerEntry *cpuMonitorItem =
            new TaskManagerEntry(tr("CPU Monitor"), "cpuMonitorIcon");
    connect(cpuMonitorItem, SIGNAL(activated()),
            this, SLOT(raiseCpuMonitorDialog()));
    cpuMonitorItem->show();

The activated() is emitted when the user activates the item in the TaskManager window.


Member Function Documentation

TaskManagerEntry::TaskManagerEntry ( const QString & description, const QString & iconPath, QObject * parent = 0 )

Constructs a new TaskManagerEntry. description represents the string under which the entry should appear in the task task manager launcher view and iconPath describes the icon to be used. parent is the standard QObject parent parameter.

void TaskManagerEntry::activated ()   [signal]

Emitted when the user has activated this item from the Running Applications window.

void TaskManagerEntry::hide ()   [slot]

Hides this item in the Running Applications window.

void TaskManagerEntry::show ()   [slot]

Shows this item in the Running Applications window.


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3