connectivitymodules/SeCon/servers/pcconn/inc/sconpcconnclientserver.h
branchRCL_3
changeset 20 4a793f564d72
parent 0 d0791faffa3f
child 21 74aa6861c87d
equal deleted inserted replaced
19:0aa8cc770c8a 20:4a793f564d72
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  PC Connectivity server client
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __SCONPCCONNCLIENTSERVER_H__
       
    22 #define __SCONPCCONNCLIENTSERVER_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 // for debugging ConML messages and capability objects 
       
    27 //#define DEBUG_XML
       
    28 
       
    29 
       
    30 // reasons for server panic
       
    31 enum TPCConnServPanic
       
    32 	{
       
    33 	E_BadRequest = 1,
       
    34 	E_DispatchRequest,
       
    35 	E_InvalidClient,
       
    36 	E_CleanupCreate,
       
    37 	E_MainSchedulerError
       
    38 	};
       
    39 	
       
    40 	
       
    41 // server related constants
       
    42 _LIT( KSConPCConnServerName,"SConPCConnServer" );
       
    43 _LIT( KSConPCConnServerExe, "SConPCConnServer.exe" );
       
    44 
       
    45 // client 
       
    46 _LIT( KSConPCConnClientDll, "SConPCConnClient.dll" );
       
    47 
       
    48 
       
    49 // Chunk
       
    50 const TUint KSConPCConnChunkSize = 128;
       
    51 const TUint KSConPCConnChunkMaxSize = 65536;
       
    52 const TUint KSConPCConnBufferMaxSize = 65000; 
       
    53 
       
    54 // Version number
       
    55 const TUint KSConPCConnServerVersionMajor = 1;
       
    56 const TUint KSConPCConnServerVersionMinor = 0;
       
    57 const TUint KSConPCConnServerVersionBuild = 1;
       
    58 
       
    59 
       
    60 // Function codes
       
    61 
       
    62 enum TRequest 
       
    63 {
       
    64 	EPutMessage,
       
    65 	EGetMessage,
       
    66 	EResetMessage,
       
    67 	EChunkMessage
       
    68 };
       
    69 
       
    70 #endif // __SCONPCCONNCLIENTSERVER_H__