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.AppendL(aConnH); |
|
193 CleanupClosePushL(connHandles); |
|
194 |
|
195 RArray<THCINumOfCompletedPackets> numPackets; |
|
196 numPackets.AppendL(aFrags); |
|
197 CleanupClosePushL(numPackets); |
|
198 |
|
199 CHostNumberOfCompletedPacketsCommand* cmd = CHostNumberOfCompletedPacketsCommand::NewL(1, connHandles, numPackets); |
|
200 // ownership of arrays has been taken by cmd |
|
201 CleanupStack::Pop(2, &connHandles); // &numPackets, &connHandles |
|
202 |
|
203 // Ownership of cmd transfered even if MhcqAddCommandL leaves |
|
204 iCmdController->MhcqAddCommandL(cmd, *this); |
|
205 } |
|
206 |
|
207 void CHCIFacade::AcceptConnectionRequestL(const TBTDevAddr& aAddr, TUint8 aRole) |
188 void CHCIFacade::AcceptConnectionRequestL(const TBTDevAddr& aAddr, TUint8 aRole) |
208 { |
189 { |
209 CAcceptConnectionRequestCommand* cmd = CAcceptConnectionRequestCommand::NewL(aAddr, aRole); |
190 CAcceptConnectionRequestCommand* cmd = CAcceptConnectionRequestCommand::NewL(aAddr, aRole); |
210 |
191 |
211 // Ownership of cmd transfered even if MhcqAddCommandL leaves |
192 // Ownership of cmd transfered even if MhcqAddCommandL leaves |