sensorservices/tiltcompensationssy/inc/tcutil.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:  TCUtil class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TCUTIL_H
       
    21 #define TCUTIL_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 #include "tcevent.h"
       
    27 #include "tctransaction.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CTCState;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  Tilt SSY utility class.
       
    37 *
       
    38 *  @lib None
       
    39 *  @since S60 5.0
       
    40 */
       
    41 NONSHARABLE_CLASS( TCUtil )
       
    42     {
       
    43     public:
       
    44 
       
    45         // Converts state type to descriptor
       
    46         static const TDesC& StateTypeAsDesC( CTCState* aState );
       
    47 
       
    48         // Converts state type to descriptor
       
    49         static const TDesC& StateIdAsDesC( CTCState* aState );
       
    50         
       
    51         // Converts event ID to descriptor
       
    52         static const TDesC& EventIdAsDesC( TTCEventId aId );
       
    53     
       
    54         // Converts transaction ID to descriptor
       
    55         static const TDesC& TransactionIdAsDesC( TTCTransactionId aId );
       
    56 
       
    57     private:
       
    58     
       
    59         // Deny creation
       
    60         TCUtil();
       
    61     };
       
    62 
       
    63 #endif // TCUTIL_H
       
    64 
       
    65 // End of File