equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
40 #include <bluetooth/hci/setupsynchronousconnectioncommand.h> |
40 #include <bluetooth/hci/setupsynchronousconnectioncommand.h> |
41 #include <bluetooth/hci/acceptsynchronousconnectionrequestcommand.h> |
41 #include <bluetooth/hci/acceptsynchronousconnectionrequestcommand.h> |
42 #include <bluetooth/hci/rejectsynchronousconnectionrequestcommand.h> |
42 #include <bluetooth/hci/rejectsynchronousconnectionrequestcommand.h> |
43 #include <bluetooth/hci/disconnectcommand.h> |
43 #include <bluetooth/hci/disconnectcommand.h> |
44 #include <bluetooth/hci/writelinkpolicysettingscommand.h> |
44 #include <bluetooth/hci/writelinkpolicysettingscommand.h> |
45 #include <bluetooth/hci/hostnumberofcompletedpacketscommand.h> |
|
46 #include <bluetooth/hci/acceptconnectionrequestcommand.h> |
45 #include <bluetooth/hci/acceptconnectionrequestcommand.h> |
47 #include <bluetooth/hci/rejectconnectionrequestcommand.h> |
46 #include <bluetooth/hci/rejectconnectionrequestcommand.h> |
48 #include <bluetooth/hci/readremoteversioninfocommand.h> |
47 #include <bluetooth/hci/readremoteversioninfocommand.h> |
49 #include <bluetooth/hci/readremotesupportedfeaturescommand.h> |
48 #include <bluetooth/hci/readremotesupportedfeaturescommand.h> |
50 #include <bluetooth/hci/readremoteextendedfeaturescommand.h> |
49 #include <bluetooth/hci/readremoteextendedfeaturescommand.h> |
184 |
183 |
185 // Ownership of cmd transfered even if MhcqAddCommandL leaves |
184 // Ownership of cmd transfered even if MhcqAddCommandL leaves |
186 iCmdController->MhcqAddCommandL(cmd, *this); |
185 iCmdController->MhcqAddCommandL(cmd, *this); |
187 } |
186 } |
188 |
187 |
189 void CHCIFacade::HostNumberOfCompletedPacketsL(THCIConnHandle aConnH, TUint16 aFrags) |
|
190 { |
|
191 RArray<THCIConnectionHandle> connHandles; |
|
192 connHandles.Append(aConnH); |
|
193 |
|
194 RArray<THCINumOfCompletedPackets> numPackets; |
|
195 numPackets.Append(aFrags); |
|
196 |
|
197 CHostNumberOfCompletedPacketsCommand* cmd = CHostNumberOfCompletedPacketsCommand::NewL(1, connHandles, numPackets); |
|
198 |
|
199 // Ownership of cmd transfered even if MhcqAddCommandL leaves |
|
200 iCmdController->MhcqAddCommandL(cmd, *this); |
|
201 } |
|
202 |
|
203 void CHCIFacade::AcceptConnectionRequestL(const TBTDevAddr& aAddr, TUint8 aRole) |
188 void CHCIFacade::AcceptConnectionRequestL(const TBTDevAddr& aAddr, TUint8 aRole) |
204 { |
189 { |
205 CAcceptConnectionRequestCommand* cmd = CAcceptConnectionRequestCommand::NewL(aAddr, aRole); |
190 CAcceptConnectionRequestCommand* cmd = CAcceptConnectionRequestCommand::NewL(aAddr, aRole); |
206 |
191 |
207 // Ownership of cmd transfered even if MhcqAddCommandL leaves |
192 // Ownership of cmd transfered even if MhcqAddCommandL leaves |