bluetooth/btstack/avdtp/avdtpServiceInterface.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2003-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 // AVDTPSERVICEINTERFACEH.h
       
    15 // Service interfaces for AVDTP
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef AVDTPSERVICEINTERFACEH
       
    20 #define AVDTPSERVICEINTERFACEH
       
    21 
       
    22 #include "avdtpSignallingMessages.h"
       
    23 
       
    24 #define UNEXPECTED_SERVICE_UPCALL __DEBUGGER()
       
    25 #define UNIMPLEMENTED_INDICATION __DEBUGGER(); // chenge to flog later
       
    26 
       
    27 
       
    28 /**
       
    29 @note this class is effectively M class with a single dblquelink as member data
       
    30 as it must contain member data, the name is chosen (as per Programming DB)
       
    31 to show the semi-unusual case
       
    32 Can be queued, but only one one queue at a time.
       
    33 to avoid having to enumerate a set of possibly unknown friends
       
    34 the queuelink is made public
       
    35 The link member is given a nonobvious name to avoid clashing
       
    36 */
       
    37 NONSHARABLE_CLASS(XAvdtpSignalReceiver)
       
    38 	{
       
    39 public:
       
    40 // for indications that necessarily involve interaction with higher entities
       
    41 // we pass the transaction label
       
    42 // for those that the signalling channel can process "locally" with signalling session
       
    43 // it does not need to forward the label
       
    44 
       
    45 	virtual TInt DiscoverIndication(TAvdtpTransactionLabel /*aLabel*/, CAvdtpOutboundSignallingMessage& /*aDiscoverResponsePacket*/) 
       
    46 		{
       
    47 		UNIMPLEMENTED_INDICATION
       
    48 		return KErrNotSupported;
       
    49 		}
       
    50 		
       
    51 	virtual TInt GetCapsIndication(TAvdtpTransactionLabel /*aLabel*/,
       
    52 									TSEID /*aSEID*/,
       
    53 									CAvdtpOutboundSignallingMessage& /*aGetCapsResponseMessage*/)
       
    54 		{
       
    55 		UNIMPLEMENTED_INDICATION
       
    56 		return KErrNotSupported;
       
    57 		}
       
    58 	
       
    59 	// if the implementor finds a bad service category the caller expects that this is returned in aConfigData
       
    60 	virtual TInt SetConfigIndication(TAvdtpTransactionLabel /*aLabel*/,
       
    61 									  TSEID /*aACPSEID*/,
       
    62 									  TSEID /*aINTSEID*/,
       
    63 									  RBuf8& /*aConfigData*/)
       
    64 		{
       
    65 		UNIMPLEMENTED_INDICATION
       
    66 		return KErrNotSupported;
       
    67 		}
       
    68 		
       
    69 	virtual TInt GetConfigIndication(TAvdtpTransactionLabel /*aLabel*/,
       
    70 									 TSEID /*aSEID*/,
       
    71 									 CAvdtpOutboundSignallingMessage& /*aGetConfigResponseMessage*/)
       
    72 		{
       
    73 		UNIMPLEMENTED_INDICATION
       
    74 		return KErrNotSupported;
       
    75 		}
       
    76 		
       
    77 	// if the implementor finds a bad service category the caller expects that this is returned in aConfigData
       
    78 	virtual TInt ReconfigIndication(TAvdtpTransactionLabel /*aLabel*/,
       
    79 									 TSEID /*aSEID*/,
       
    80 									 RBuf8& /*aConfigData*/)
       
    81 		{
       
    82 		UNIMPLEMENTED_INDICATION
       
    83 		return KErrNotSupported;
       
    84 		}
       
    85 		
       
    86 	virtual TInt OpenIndication(TSEID /*aSEID*/)
       
    87 		{
       
    88 		UNIMPLEMENTED_INDICATION
       
    89 		return KErrNotSupported;
       
    90 		}
       
    91 
       
    92 	virtual TInt StartIndication(TAvdtpTransactionLabel /*aLabel*/, TSEID /*aACPSEID*/)
       
    93 		{
       
    94 		UNIMPLEMENTED_INDICATION
       
    95 		return KErrNotSupported;
       
    96 		}
       
    97 		
       
    98 	virtual TInt ReleaseIndication(TAvdtpTransactionLabel /*aLabel*/, TSEID /*aACPSEID*/)
       
    99 		{
       
   100 		UNIMPLEMENTED_INDICATION
       
   101 		return KErrNotSupported;
       
   102 		}
       
   103 		
       
   104 	virtual TInt SuspendIndication(TAvdtpTransactionLabel /*aLabel*/, TSEID /*aSEID*/)
       
   105 		{
       
   106 		UNIMPLEMENTED_INDICATION
       
   107 		return KErrNotSupported;
       
   108 		}
       
   109 		
       
   110 	virtual TInt AbortIndication(TAvdtpTransactionLabel /*aLabel*/, TSEID /*aACPSEID*/)
       
   111 		{
       
   112 		UNIMPLEMENTED_INDICATION
       
   113 		return KErrNotSupported;
       
   114 		}
       
   115 		
       
   116 	virtual TInt SecurityControlIndication(TAvdtpTransactionLabel /*aLabel*/, TSEID /*aACPSEID*/, const HBufC8* /*aSecurityData*/)
       
   117 		{
       
   118 		UNIMPLEMENTED_INDICATION
       
   119 		return KErrNotSupported;
       
   120 		}
       
   121 		
       
   122 	virtual void SignallingChannelReady(CSignallingChannel& /*aNewSignallingChannel*/)
       
   123 		{
       
   124 		UNIMPLEMENTED_INDICATION		
       
   125 		}
       
   126 		
       
   127 	virtual void SignallingChannelError(TInt /*aError*/)
       
   128 		{
       
   129 		UNIMPLEMENTED_INDICATION		
       
   130 		}
       
   131 		
       
   132 // protocol confirms
       
   133 // no labels needed
       
   134 	virtual void DiscoverConfirm(TInt /*aResult*/, const TAvdtpInternalDiscoverConfirm* const /*aConfirm*/)
       
   135 		{
       
   136 		UNEXPECTED_SERVICE_UPCALL		
       
   137 		}
       
   138 		
       
   139 	virtual void GetCapsConfirm(TInt /*aResult*/, TSEID /*aRemoteSEID*/, TAvdtpServiceCatBitMask /*aSeen*/)
       
   140 		{
       
   141 		UNEXPECTED_SERVICE_UPCALL		
       
   142 		}
       
   143 		
       
   144 	virtual void SetConfigConfirm(TInt /*aResult*/,TSEID /*aRemoteSEID*/, TAvdtpServiceCategory /*aFailedCategory*/)
       
   145 		{
       
   146 		UNEXPECTED_SERVICE_UPCALL		
       
   147 		}
       
   148 		
       
   149 	virtual void GetConfigConfirmL(TSEID /*aRemoteSEID*/)
       
   150 		{
       
   151 		UNEXPECTED_SERVICE_UPCALL		
       
   152 		}
       
   153 	
       
   154 	virtual void ReconfigConfirm(TInt /*aResult*/,TSEID /*aRemoteSEID*/, TAvdtpServiceCategory /*aFailedCategory*/)
       
   155 		{
       
   156 		UNEXPECTED_SERVICE_UPCALL		
       
   157 		}
       
   158 
       
   159 	virtual void OpenConfirm(TInt /*aResult*/, TSEID /*aRemoteSEID*/)
       
   160 		{
       
   161 		UNEXPECTED_SERVICE_UPCALL
       
   162 		}
       
   163 			
       
   164 	virtual void StartConfirm(TInt /*aResult*/, /*RSEIDArray&  aRemoteSEIDs*/TSEID /*aRemoteSEID*/)
       
   165 		{
       
   166 		UNEXPECTED_SERVICE_UPCALL		
       
   167 		}
       
   168 
       
   169 	virtual void ReleaseConfirm(TInt /*aResult*/, TSEID /*aRemoteSEID*/)
       
   170 		{
       
   171 		UNEXPECTED_SERVICE_UPCALL		
       
   172 		}
       
   173 
       
   174 	virtual void SuspendConfirm(TInt /*aResult*/, /*RSEIDArray&  aRemoteSEIDs*/TSEID /*aRemoteSEID*/)
       
   175 		{
       
   176 		UNEXPECTED_SERVICE_UPCALL		
       
   177 		}
       
   178 
       
   179 	virtual void AbortConfirm(TSEID /*aRemoteSEID*/)
       
   180 		{
       
   181 		UNEXPECTED_SERVICE_UPCALL		
       
   182 		}
       
   183 
       
   184 	virtual void SecurityControlConfirm(TInt /*aResult*/, TSEID /*aRemoteSEID*/, const TDesC8& /*aResponseData*/)
       
   185 		{
       
   186 		UNEXPECTED_SERVICE_UPCALL		
       
   187 		}
       
   188 
       
   189 public:	// see above
       
   190 	TDblQueLink	iSignalReceiverEmbeddedLink;
       
   191 	};
       
   192 
       
   193 
       
   194 #endif //AVDTPSERVICEINTERFACEH