taskswitcherapp/tsapplication/inc/tstaskswitcher.h
changeset 39 4e8ebe173323
parent 36 cdae8c6c3876
child 42 517f4fb5ec74
child 46 23b5d6a29cce
equal deleted inserted replaced
36:cdae8c6c3876 39:4e8ebe173323
     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 #ifndef TSTASKSWITCHER_H
       
    19 #define TSTASKSWITCHER_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class T_TsTaskSwitcher;
       
    24 
       
    25 class QStateMachine;
       
    26 
       
    27 /**
       
    28  * @ingroup group_tsapplication
       
    29  * @brief TaskSwitcher application main class.
       
    30  *
       
    31  * Loads a runtime from a runtime provider plugin. Manages
       
    32  * the runtime execution.
       
    33  *
       
    34  * @lib ?library
       
    35  * @since S60 ?S60_version
       
    36  */
       
    37  
       
    38 class TsTaskSwitcher : public QObject
       
    39 {
       
    40     Q_OBJECT
       
    41 
       
    42 public:
       
    43     /**
       
    44      * Constructor.
       
    45      * @since S60 ?S60_version.
       
    46      * @param aParent Parent object.
       
    47      */
       
    48     TsTaskSwitcher(QObject* parent = 0);
       
    49 
       
    50 private:
       
    51 
       
    52     Q_DISABLE_COPY(TsTaskSwitcher)
       
    53 
       
    54 signals:
       
    55     /**
       
    56      * Emitted when the teleport application needs to exit.
       
    57      * @since S60 ?S60_version.
       
    58      */
       
    59     void exit();
       
    60 
       
    61 public slots:
       
    62     /**
       
    63      * Starts the runtime.
       
    64      * @since S60 ?S60_version.
       
    65      */
       
    66     void start();
       
    67 
       
    68     /**
       
    69      * Stops the runtime.
       
    70      * @since S60 ?S60_version.
       
    71      */
       
    72     void stop();
       
    73 
       
    74 private:
       
    75     /**
       
    76      * Runtime.
       
    77      */
       
    78     QStateMachine* mRuntime;
       
    79 
       
    80     friend class T_TsTaskSwitcher;
       
    81 };
       
    82 
       
    83 #endif // TSTASKSWITCHER_H