installationservices/swtransactionservices/inc_private/stscommon.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
child 27 e8965914fac7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
     1 /*
       
     2 * Copyright (c) 2008-2009 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 the License "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: 
       
    15 * sts.h
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalComponent
       
    23  @released
       
    24 */
       
    25 
       
    26 
       
    27 #ifndef __STSCOMMON_H__
       
    28 #define __STSCOMMON_H__
       
    29 
       
    30 namespace Usif
       
    31 	{
       
    32 	_LIT(KStsServerName, "!SoftwareTransactionServicesServer");
       
    33 	_LIT(KStsServerImgName, "softwaretransactionservices.exe");
       
    34 	const TInt KStsVerMajor = 1;		
       
    35 	const TInt KStsVerMinor = 0;		
       
    36 	const TInt KStsVerBuild = 0;		
       
    37 		
       
    38     const TInt KUidStsClient         = 0x10285BCE;
       
    39     const TInt KUidStsRecoveryClient = 0x10285BD0;
       
    40     const TInt KUidStsServer         = 0x10285BCD;
       
    41     const TInt KUidDaemon 			 = 0x10202DCE;
       
    42     
       
    43     enum TStsClientServerFunctionType
       
    44 		{
       
    45 		//client to server
       
    46 		ECreateTransaction,  //creates a new transaction
       
    47 		EOpenTransaction,    //opens an existing transaction
       
    48 		ECommit,             //instructs the server to commit the transaction that is currently associated with the session
       
    49 		ERollBack,           //instructs the server to roll back the transaction that is currently associated with the session
       
    50 		EGetId,              //instructs the server to retrieve the id of the transaction that is currently associated with the session
       
    51 
       
    52 		ERegisterNew,        //notifies the server that a new file was added by client
       
    53 		ECreateNew,          //instructs the server to create a new file and return a handle to it to the client
       
    54 		ERemove,             //instructs the server to remove a file
       
    55 		ERegisterTemporary,  //notifies the server that a new temporary file was added by client
       
    56 		ECreateTemporary,    //instructs the server to create a new temporary file and return a handle to it to the client
       
    57 		EOverwrite,          //instructs the server to create a new file (owervriting the existing one)
       
    58 		
       
    59 		//recovery of all transactions
       
    60 		ERollBackAllPending
       
    61 		};
       
    62 		/**
       
    63 			Delay in microseconds before the STS Server is shut down, after
       
    64 			the last remaining session has been closed.
       
    65 		 */
       
    66 		const TInt KStsServerShutdownPeriod = 2 * 1000 * 1000;
       
    67 
       
    68 		//IPC argument slot in client-server messaging
       
    69 		const TInt KFilePathIPCSlot 	= 0;
       
    70 		const TInt KIdIPCSlot       	= 1;
       
    71 		const TInt KFileHandleIPCSlot	= 2;
       
    72 		const TInt KFileModeIPCSlot	    = 3;
       
    73 		
       
    74 	}//endof namespace Usif
       
    75 #endif
       
    76 
       
    77 
       
    78 
       
    79