bluetoothengine/btsac/inc/btsacdefs.h
changeset 0 f63038272f30
child 1 6a1fe72036e3
equal deleted inserted replaced
-1:000000000000 0:f63038272f30
       
     1 /*
       
     2 * Copyright (c) 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:  type declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTSACDEFS_H
       
    20 #define BTSACDEFS_H
       
    21 
       
    22 const TInt KBTDevAddrReadable = KBTDevAddrSize * 2;
       
    23 
       
    24 const TUint8 KRequestNone 	  = 0x00; 
       
    25 const TUint8 KConnectReq 	  = 0x01; 
       
    26 const TUint8 KDisconnectReq	  = 0x02;
       
    27 const TUint8 KOpenAudioReq	  = 0x04;
       
    28 const TUint8 KCloseAudioReq	  = 0x08;
       
    29 const TUint8 KCompleteAllReqs = 0xff;
       
    30 
       
    31 
       
    32 const TInt KRequestIdWaitRemoteConfStart = 0xfffb;
       
    33 const TInt KRequestIdGavdpError = 0xfffc;
       
    34 const TInt KRequestIdTimer = 0xfffd;
       
    35 const TInt KRequestIdSelfComplete = 0xfffe;
       
    36 
       
    37 enum TBTConnType
       
    38 	{
       
    39 	EOutgoingConn,
       
    40 	EOutgoingConnNoDiscovery,
       
    41 	EOutgoingConnWithAudio,
       
    42 	EOutgoingConnWithAudioNoDiscovery,
       
    43 	EIncomingConn,
       
    44 	EConnExists
       
    45 	};
       
    46 
       
    47 enum TAudioOpenedBy
       
    48 	{
       
    49 	EAudioOpenedByNone,
       
    50 	EAudioOpenedByAFW,
       
    51 	EAudioOpenedByAcc	
       
    52 	};
       
    53 
       
    54 enum TStreamConfiguredBy
       
    55 	{
       
    56 	EStreamConfiguredBySrc,
       
    57 	EStreamConfiguredBySink
       
    58 	};
       
    59 
       
    60 enum TBTSACGavdpResetReason
       
    61     {
       
    62     EGavdpResetReasonNone,
       
    63     EGavdpResetReasonGeneral,
       
    64     EGavdpResetReasonCancelOpenAudio,
       
    65     EGavdpResetReasonDisconnect  
       
    66     };
       
    67 
       
    68 //Panic codes
       
    69 enum TBTPanicCode 
       
    70     {
       
    71 	EBTPanicNullPointer = 33400,
       
    72     EBTPanicSocketExists 
       
    73     };
       
    74     
       
    75 #endif      // BTSACDEFS_H
       
    76