persistentstorage/sql/SRC/Common/IPC/IpcDefs.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     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 __IPCDEFS_H__
       
    17 #define __IPCDEFS_H__
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 #ifdef _DEBUG
       
    22 
       
    23 const TInt KIpcStreamSize = 8;
       
    24 const TInt KIpcBufSize = 8;
       
    25 
       
    26 #else //_DEBUG
       
    27 
       
    28 const TInt KIpcStreamSize = 3 * 1024;
       
    29 const TInt KIpcBufSize = KIpcStreamSize / 2;
       
    30 
       
    31 #endif//_DEBUG
       
    32 
       
    33 /**
       
    34 IPC temporary data buffer.
       
    35 
       
    36 HIpcBuf class uses the buffer as a temporary IPC data storage when a large block of data
       
    37 has to be sent to the server. In this case the data will be split in chunks, each of 
       
    38 TIpcStreamBuf size, and every chunk will be sent separately and the large data block will
       
    39 reconstructed on the server side.
       
    40 
       
    41 @see HIpcBuf
       
    42 
       
    43 @internalComponent
       
    44 */
       
    45 NONSHARABLE_CLASS(TIpcStreamBuf)
       
    46 	{
       
    47 public:
       
    48 	enum {ESize = KIpcBufSize};
       
    49 public:
       
    50 	TInt	iExt;
       
    51 	TUint8	iData[ESize];
       
    52 	};
       
    53 
       
    54 #endif//__IPCDEFS_H__