sensorservices/tiltcompensationssy/inc/tcstatetiltidle.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2007 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:  TTCStateTiltIdle class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TCSTATETILTIDLE_H
       
    21 #define TCSTATETILTIDLE_H
       
    22 
       
    23 // INCLUDES
       
    24 #include "tcstatetilt.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Idle state for tilt channel.
       
    32 *
       
    33 *  @lib None
       
    34 *  @since S60 5.0
       
    35 */
       
    36 NONSHARABLE_CLASS( CTCStateTiltIdle ): public CTCStateTilt
       
    37     {
       
    38     public:
       
    39     
       
    40         /**
       
    41         * Two phased constructor.
       
    42         * 
       
    43         * @param aStatePool State pool interface.
       
    44         * @param aTransactionHandler Transaction handler interface.
       
    45         * @return CTCStateTiltIdle*
       
    46         */
       
    47         static CTCStateTiltIdle* NewL( MTCStatePool& aStatePool,
       
    48             MTCTransactionHandler& aTransactionHandler );
       
    49         
       
    50         /**
       
    51         * Two phased constructor.
       
    52         * 
       
    53         * @param aStatePool State pool interface.
       
    54         * @param aTransactionHandler Transaction handler interface.
       
    55         * @return CTCStateTiltIdle*
       
    56         */
       
    57         static CTCStateTiltIdle* NewLC( MTCStatePool& aStatePool,
       
    58             MTCTransactionHandler& aTransactionHandler );
       
    59     
       
    60     private: // From base classes
       
    61     
       
    62         // @see CTCStateBase
       
    63         void HandleEventL( TTCEventId aId, TTCEvent* aEvent );
       
    64     
       
    65         // @see CTCStateBase
       
    66         void HandleTransactionCompletedL( TTCTransactionId aTransactionId, TInt aError );
       
    67         
       
    68         // @see CTCStateBase
       
    69         void HandleStateEntryL();
       
    70 
       
    71         // @see CTCStateBase
       
    72         void HandleStateExitL();
       
    73 
       
    74     private:
       
    75         
       
    76         /**
       
    77         * C++ constructor
       
    78         *
       
    79         * @param aStatePool
       
    80         * @param aTransactionHandler
       
    81         */
       
    82         CTCStateTiltIdle( MTCStatePool& aStatePool,
       
    83             MTCTransactionHandler& aTransactionHandler );
       
    84     };
       
    85 
       
    86 #endif // TCSTATETILTIDLE_H
       
    87 
       
    88 // End of File