bluetoothengine/btsac/inc/btsacdefs.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 12:06:42 +0200
changeset 1 6a1fe72036e3
parent 0 f63038272f30
child 45 b0aebde9b1fb
permissions -rw-r--r--
Revision: 201001 Kit: 201004

/*
* Copyright (c) 2006 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:  type declaration.
*
*/


#ifndef BTSACDEFS_H
#define BTSACDEFS_H

const TInt KBTDevAddrReadable = KBTDevAddrSize * 2;

const TUint8 KRequestNone 	  = 0x00; 
const TUint8 KConnectReq 	  = 0x01; 
const TUint8 KDisconnectReq	  = 0x02;
const TUint8 KOpenAudioReq	  = 0x04;
const TUint8 KCloseAudioReq	  = 0x08;
const TUint8 KCompleteAllReqs = 0xff;


const TInt KRequestIdWaitRemoteConfStart = 0xfffb;
const TInt KRequestIdGavdpError = 0xfffc;
const TInt KRequestIdTimer = 0xfffd;
const TInt KRequestIdSelfComplete = 0xfffe;

enum TBTConnType
	{
	EOutgoingConn,
	EOutgoingConnNoDiscovery,
	EOutgoingConnWithAudio,
	EOutgoingConnWithAudioNoDiscovery,
	EIncomingConn,
	EConnExists
	};

enum TAudioOpenedBy
	{
	EAudioOpenedByNone,
	EAudioOpenedByAFW,
	EAudioOpenedByAcc	
	};

enum TStreamConfiguredBy
	{
	EStreamConfiguredBySrc,
	EStreamConfiguredBySink
	};

enum TBTSACGavdpResetReason
    {
    EGavdpResetReasonNone,
    EGavdpResetReasonGeneral  
    };

//Panic codes
enum TBTPanicCode 
    {
	EBTPanicNullPointer = 33400,
    EBTPanicSocketExists 
    };
    
#endif      // BTSACDEFS_H