tstaskmonitor/client/src/tstaskmonitor.cpp
changeset 102 8b8b34fa9751
parent 100 0920c6a9b6c8
child 106 e78d6e055a5b
equal deleted inserted replaced
100:0920c6a9b6c8 102:8b8b34fa9751
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #include "tstaskmonitor.h"
       
    19 #include "tstaskmonitor_p.h"
       
    20 
       
    21 #include "tstask.h"
       
    22 
       
    23 /*!
       
    24     @class TsTaskMonitor
       
    25     @ingroup publicApi
       
    26     @brief TsTaskMonitor gives access to list of running tasks.
       
    27     
       
    28     This class is one of the Qt interfaces for Task Monitor server. It can be
       
    29     used to retrieve list of running tasks and receive notifications about the
       
    30     changes of this list.
       
    31 */
       
    32 
       
    33 /*!
       
    34     Constructor.
       
    35 */
       
    36 TsTaskMonitor::TsTaskMonitor(QObject *parent) : QObject(parent), d_ptr(0)
       
    37 {
       
    38     d_ptr = new TsTaskMonitorPrivate(this);
       
    39 }
       
    40 
       
    41 /*!
       
    42     Destructor.
       
    43 */
       
    44 TsTaskMonitor::~TsTaskMonitor()
       
    45 {
       
    46     delete d_ptr;
       
    47 }
       
    48 
       
    49 /*!
       
    50     \return Current list of tasks from Task Monitor server.
       
    51 
       
    52     \sa TsTask, taskListChanged()
       
    53 */
       
    54 QList< QSharedPointer<TsTask> > TsTaskMonitor::taskList()
       
    55 {
       
    56     return d_ptr->taskList();
       
    57 }
       
    58 
       
    59 /*!
       
    60     @fn TsTaskMonitor::taskListChanged()
       
    61 
       
    62     This signal is emitted when task list changes in any way:
       
    63     - the new task is started
       
    64     - running task is terminated
       
    65     - parameters of one task change (for example image representing the task is updated)
       
    66 
       
    67     No data is passed within this signal, user should retrieve task list
       
    68     using taskList().
       
    69 
       
    70     \sa taskList()
       
    71 */