btobexprofiles/obexserviceman/obexservicemanserver/inc/SrcsClSv.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2 * Copyright (c) 2006-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:  ObexServicemanager opcodes, panic enumerations and other 
       
    15 *                definitions.                 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef _SRCSCLSV_H
       
    21 #define _SRCSCLSV_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // Panic definitions
       
    30 _LIT(KSrcsPanic,"Srcs panic");
       
    31 
       
    32 // reasons for server panic
       
    33 enum TSrcsPanic
       
    34 {
       
    35     ESrcsBadRequest,
       
    36     ESrcsBadDescriptor,
       
    37     ESrcsBadHelper,
       
    38     ESrcsBadMessage,
       
    39     ESrcsNoLimitedMessage,
       
    40     ESrcsClassMemberVariableIsNull,
       
    41     ESrcsClassMemberVariableIsNotNull,
       
    42     ESrcsMainSchedulerError,
       
    43     ESrcsNotImplementedYet
       
    44 };
       
    45 
       
    46 /// server name
       
    47 _LIT(KSrcsName,"obexserviceman");
       
    48 
       
    49 // Server path
       
    50 
       
    51 _LIT(KSrcsImg,"z:\\sys\\bin\\obexserviceman.exe");
       
    52 
       
    53 // SRCS Server Uid
       
    54 const TUid KSrcsUid={0x101F7C87};
       
    55 
       
    56 // SRCS Server thread memory allocation.
       
    57 // These are only used in WINS when the server is not running
       
    58 // before the client tries to connect to it.
       
    59 #ifdef __WINS__
       
    60 const TInt KSrcsStackSize       =0x2000;			//  8KB
       
    61 const TInt KSrcsMinHeapSize     =0x1000;		    //  4KB
       
    62 const TInt KSrcsMaxHeapSize     =0x100000;		    //  1MB
       
    63 #endif
       
    64 
       
    65 // A version must be specifyed when creating a session with the server
       
    66 const TUint KSrcsMajorVersionNumber=1;
       
    67 const TUint KSrcsMinorVersionNumber=0;
       
    68 const TUint KSrcsBuildVersionNumber=1;
       
    69 
       
    70 // Opcodes used in message passing between client and server
       
    71 enum TSrcsServRequest
       
    72 {
       
    73     ESrcsBTServicesON,
       
    74     ESrcsBTServicesOFF,
       
    75     ESrcsStartUSB,
       
    76     ESrcsStopUSB,    
       
    77     ESrcsIrDAServicesON,
       
    78     ESrcsIrDAServicesOFF,    
       
    79     ESrcsCancelRequest
       
    80 };
       
    81 
       
    82 /**
       
    83 * Define transports which are supported by SRCS
       
    84 */
       
    85 enum TSrcsTransport
       
    86 {
       
    87     ESrcsTransportBT,
       
    88     ESrcsTransportUSB,
       
    89     ESrcsTransportIrDA
       
    90 };
       
    91 
       
    92 /**
       
    93 *	Transportation string definition
       
    94 */
       
    95 _LIT8(KSrcsTransportBT,"OBEX/BT");
       
    96 _LIT8(KSrcsTransportUSB,"OBEX/USB");
       
    97 _LIT8(KSrcsTransportIrDA,"OBEX/IrDA");
       
    98 
       
    99 
       
   100 
       
   101 #endif // SRCSCLSV_H
       
   102