applayerpluginsandutils/bookmarksupport/test/cenrepsrv/transstate.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef TRANSSTATE_H
       
    17 #define TRANSSTATE_H
       
    18 
       
    19 // Definition of enumerator used to record CTransactor state.
       
    20 // Must ensure the mode enums here match CRepository::TTransactionMode
       
    21 enum TTransactionState
       
    22 	{
       
    23 	ENoTransaction = 0,
       
    24 	EReadBit = 1,
       
    25 	EWriteBit = 2,
       
    26 	EFailedBit = 4,
       
    27 	EReadTransaction = EReadBit,					// pessimistic, locking
       
    28 	EConcurrentReadWriteTransaction = EWriteBit,	// optimistic, non-serialised
       
    29 	EReadWriteTransaction = EReadBit | EWriteBit,	// pessimistic, locking
       
    30 	// must ensure all bits used to represent transaction mode are set in
       
    31 	// EAllTransactionModeBits otherwise TransactionMode method will not be correct
       
    32 	EAllTransactionModeBits = EReadBit | EWriteBit
       
    33 	};
       
    34 
       
    35 #endif // TRANSSTATE_H