sensorservices/tiltcompensationssy/inc/tctransactionhandler.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:  MTCStatePool interface declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TCTRANSACTIONHANDLER_H
       
    21 #define TCTRANSACTIONHANDLER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <sensrvtypes.h>
       
    26 
       
    27 #include "tctransaction.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Transaction handler. States can utilize transaction
       
    35 *  handler to execute specific actions.
       
    36 *  All transactions are asynchronous.
       
    37 *
       
    38 *  Transaction handler also provides needed data model for
       
    39 *  state classes.
       
    40 *
       
    41 *  @lib None
       
    42 *  @since S60 5.0
       
    43 */
       
    44 NONSHARABLE_CLASS( MTCTransactionHandler )
       
    45     {
       
    46     public:
       
    47     
       
    48         /**
       
    49         * Process a transaction.
       
    50         *
       
    51         * @param aId Transaction ID.
       
    52         * @param aTransaction Transaction object.
       
    53         */
       
    54         virtual void ProcessTransactionL( TTCTransactionId aId,
       
    55             TTCTransaction* aTransaction = NULL ) = 0;
       
    56 
       
    57         /**
       
    58         * Checks if new transaction can be sent.
       
    59         *
       
    60         * @return ETrue if there is existing transaction being processed.
       
    61         */
       
    62         //virtual TBool ReadyForTransaction() const = 0;
       
    63         
       
    64         /**
       
    65         * Access to data buffer.
       
    66         * Fill the channel data into this buffer.
       
    67         *
       
    68         * @return TUint8*
       
    69         */
       
    70         virtual TUint8* DataBuffer() const = 0;
       
    71 
       
    72         /**
       
    73         * Access to data item count.
       
    74         * How many channel data items are requested.
       
    75         *
       
    76         * @return TInt
       
    77         */
       
    78         virtual TInt DataCount() const = 0;
       
    79         
       
    80         /**
       
    81         * Access to current channel properties.
       
    82         * 
       
    83         * @return const RSensrvPropertyList&
       
    84         */
       
    85         virtual const RSensrvPropertyList& Properties() const = 0;
       
    86 };
       
    87 
       
    88 #endif // TCTRANSACTIONHANDLER_H
       
    89 
       
    90 // End of File