bluetoothmgmt/bluetoothclientlib/avctpservices/avctpserviceutils.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Utility functions for AvctpServices
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #ifndef AVCTPSERVICEUTILS_H
       
    24 #define AVCTPSERVICEUTILS_H
       
    25 
       
    26 /**
       
    27 Avctp Services panic codes
       
    28 */
       
    29 enum TAvctpServicesPanic
       
    30 	{
       
    31 	/** Invalid message type */
       
    32 	EAvctpInvalidMessageType = 0,
       
    33 	/** A null TBTDevAddr has been given*/
       
    34 	EAvctpNullBTDevAddr = 1,
       
    35 	/** You must call Open on RAvctp before calling any other method*/
       
    36 	EAvctpRAvctpNotOpen = 2,
       
    37 	/** You must call not Open RAvctp if it is already open*/
       
    38 	EAvctpRAvctpAlreadyOpen = 3,
       
    39 	/** We've got into an unrecognised state */
       
    40 	EAvctpUnrecognisedState = 4,
       
    41 	/** Incorrect state transition in CAvctpReceiver */
       
    42 	EAvctpRecvBadStateTransition = 5,
       
    43 	/** At the RAvctp level all packet types must be normal*/
       
    44 	EAvctpPacketTypeNotNormal = 6,
       
    45 	/** We've got a wrong PID somehow*/
       
    46 	EAvctpIncorrectPid = 7,
       
    47 	/** We are setting the notifier that is already assigned*/
       
    48 	EAvctpSecondaryChannelNotifyAlreadyAssigned = 8,
       
    49 	/** RAvctp::CloseGracefully doesn't support a Cancel */
       
    50 	EAvctpCloseGracefullyCancelled = 9,
       
    51 	/** The same device address occurs more than once in the remote device array*/
       
    52 	EAvctpRemoteAddressOccursMultipleTimes = 10,
       
    53 	EAvctpSecondChannelNotPresent = 11,
       
    54 	EAvctpRemoteDeviceNotConnected = 12,
       
    55 	EAvctpInvalidChannelState = 13,
       
    56 	EAvctpSenderAlreadyAllocated = 14,
       
    57 	EAvctpReceiverAlreadyAllocated = 15,
       
    58 	EAvctpInvalidChannel = 16,
       
    59 	EAvctpSecondaryChannelUnexpected = 17,
       
    60 	EAvctpUnexpectedErrorCode = 18,
       
    61 	EAvctpNullControllerChannel = 19,
       
    62 	EDetachIndicateForSecondChannelWithNoConsumer = 20,
       
    63 	EAvctpUnexpectedLeave = 21,
       
    64 	};
       
    65 
       
    66 void Panic(TAvctpServicesPanic aPanic);
       
    67 
       
    68 class TBTDevAddr;
       
    69 TBool IsNullAddress(const TBTDevAddr& aAddr);
       
    70 
       
    71 class TBTDevAddr;	// forward declaration
       
    72 
       
    73 const TInt KBTAddressLength = 12;	// used to allocate a TBuf<> needed to get the readable BTDevAddress
       
    74 
       
    75 #endif // AVCTPSERVICEUTILS_H
       
    76