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