sensorservices/tiltcompensationssy/inc/tctransaction.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:  TTCTransaction class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TCTRANSACTION_H
       
    21 #define TCTRANSACTION_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 // DATA TYPES
       
    27 
       
    28 /**
       
    29 * Transaction IDs.
       
    30 */
       
    31 enum TTCTransactionId
       
    32     {
       
    33     ETCTransactionIdNull,
       
    34     ETCTransactionIdOpenChannel,
       
    35     ETCTransactionIdCloseChannel,
       
    36     ETCTransactionIdStartChannelData,
       
    37     ETCTransactionIdStopChannelData,
       
    38     ETCTransactionIdFlushBuffer,
       
    39     TTCTransactionIdLast
       
    40     };
       
    41     
       
    42 // CLASS DECLARATION
       
    43 
       
    44 /**
       
    45 *  Transaction base class.
       
    46 *
       
    47 *  @lib None
       
    48 *  @since S60 5.0
       
    49 */
       
    50 NONSHARABLE_CLASS( TTCTransaction )
       
    51     {
       
    52     public:
       
    53     
       
    54         /**
       
    55         * Return transaction ID.
       
    56         *
       
    57         * @return TTCTransactionId
       
    58         */
       
    59         TTCTransactionId Id() const;
       
    60         
       
    61     protected:
       
    62     
       
    63         /**
       
    64         * Default C++ constructor.
       
    65         * 
       
    66         * @param aId Transaction ID.
       
    67         */
       
    68         TTCTransaction( TTCTransactionId aId );
       
    69         
       
    70     private: // Data
       
    71     
       
    72         /** Transaction ID */
       
    73         TTCTransactionId iId;
       
    74     };
       
    75 
       
    76 #endif // TCTRANSACTION_H
       
    77 
       
    78 // End of File