phoneapp/phoneuicontrol/inc/mphonestatemachine.h
changeset 0 5f000ab63145
child 15 2a26698d78ba
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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 *     Describes the interface for setting and getting active state.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MPHONESTATEMACHINE_H
       
    21 #define MPHONESTATEMACHINE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "mphonestate.h"
       
    25 #include "mphoneenginemessagesender.h"
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class MPhoneState;
       
    30 class MPEPhoneModel;
       
    31 class MPEEngineInfo;
       
    32 class CSpdiaControl;
       
    33 class MPhoneStorage;
       
    34 
       
    35 /**
       
    36 *  Describes the interface for setting and getting active state
       
    37 */
       
    38 
       
    39 class MPhoneStateMachine : public MPhoneEngineMessageSender
       
    40     {
       
    41     public:
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~MPhoneStateMachine() {};
       
    47     
       
    48         /**
       
    49         * Sets active state
       
    50         */
       
    51         virtual void ChangeState( TInt aState ) = 0;
       
    52 
       
    53         /**
       
    54         * Returns active state
       
    55         */
       
    56         virtual MPhoneState* State() = 0;
       
    57         
       
    58         /**
       
    59         * Sets pointer to Phone Engine
       
    60         * @param aPhoneEngine pointer to Phone Engine instance
       
    61         */
       
    62         virtual void SetPhoneEngine( MPEPhoneModel* aPhoneEngine ) = 0;
       
    63 
       
    64         /**
       
    65         * Gets pointer to Phone Engine
       
    66         * @returns pointer to Phone Engine
       
    67         */
       
    68         virtual MPEPhoneModel* PhoneEngine() = 0;
       
    69 
       
    70         /**
       
    71         * Gets pointer to Phone Engine Info
       
    72         * @return pointer to Phone Engine Info
       
    73         */
       
    74         virtual MPEEngineInfo* PhoneEngineInfo() = 0;
       
    75         
       
    76         /**
       
    77         * Instantiates protocol specific Phone Engine
       
    78         * @param reference to Engine Monitor
       
    79         * @return Phone Engine instance
       
    80         */
       
    81         virtual MPEPhoneModel* CreatePhoneEngineL( 
       
    82             MEngineMonitor& aEngineMonitor ) = 0;
       
    83         
       
    84         /**
       
    85         * Sets callId to Phone Engine Info
       
    86         * @param aCallId
       
    87         */    
       
    88         virtual void SetCallId( TInt aCallId ) = 0;
       
    89         
       
    90         /**
       
    91         * Phone's Storage
       
    92         */
       
    93         virtual MPhoneStorage* PhoneStorage() = 0;        
       
    94 
       
    95     };
       
    96 
       
    97 #endif // MPHONESTATEMACHINE_H
       
    98 
       
    99 // End of File