localconnectivityservice/obexserviceman/obexservicemanserver/inc/SrcsClSv.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:20:40 +0100
branchRCL_3
changeset 40 52a167391590
parent 0 c3e98f10fcf4
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  ObexServicemanager opcodes, panic enumerations and other 
*                definitions.                 
*
*/


#ifndef _SRCSCLSV_H
#define _SRCSCLSV_H

//  INCLUDES

#include <e32base.h>

// CONSTANTS

// Panic definitions
_LIT(KSrcsPanic,"Srcs panic");

// reasons for server panic
enum TSrcsPanic
{
    ESrcsBadRequest,
    ESrcsBadDescriptor,
    ESrcsBadHelper,
    ESrcsBadMessage,
    ESrcsNoLimitedMessage,
    ESrcsClassMemberVariableIsNull,
    ESrcsClassMemberVariableIsNotNull,
    ESrcsMainSchedulerError,
    ESrcsNotImplementedYet
};

/// server name
_LIT(KSrcsName,"obexserviceman");

// Server path

_LIT(KSrcsImg,"z:\\sys\\bin\\obexserviceman.exe");

// SRCS Server Uid
const TUid KSrcsUid={0x101F7C87};

// SRCS Server thread memory allocation.
// These are only used in WINS when the server is not running
// before the client tries to connect to it.
#ifdef __WINS__
const TInt KSrcsStackSize       =0x2000;			//  8KB
const TInt KSrcsMinHeapSize     =0x1000;		    //  4KB
const TInt KSrcsMaxHeapSize     =0x100000;		    //  1MB
#endif

// A version must be specifyed when creating a session with the server
const TUint KSrcsMajorVersionNumber=1;
const TUint KSrcsMinorVersionNumber=0;
const TUint KSrcsBuildVersionNumber=1;

// Opcodes used in message passing between client and server
enum TSrcsServRequest
{
    ESrcsBTServicesON,
    ESrcsBTServicesOFF,
    ESrcsStartUSB,
    ESrcsStopUSB,    
    ESrcsIrDAServicesON,
    ESrcsIrDAServicesOFF,    
    ESrcsCancelRequest
};

/**
* Define transports which are supported by SRCS
*/
enum TSrcsTransport
{
    ESrcsTransportBT,
    ESrcsTransportUSB,
    ESrcsTransportIrDA
};

/**
*	Transportation string definition
*/
_LIT8(KSrcsTransportBT,"OBEX/BT");
_LIT8(KSrcsTransportUSB,"OBEX/USB");
_LIT8(KSrcsTransportIrDA,"OBEX/IrDA");



#endif // SRCSCLSV_H