I'm not sure how to use iStatus when i'm requesting the remote device for its services. I am trying to base my work on the BTP2P example which uses RNotifier instead.
Lets say I already have a remote device tru RhostResolver,,
according to the BTP2P example (which uses RNotifier), it doesn't really pass iStatus into any function when it requests for service records, but works this way:
The RunL first calls the function...
FindServiceL(TRequestStatus& aObserverRequestStatus) ,
iStatusObserver = &aObserverRequestStatus;
...in the ServiceSearcher object (not an active object).
when it finally reaches AttributeRequestCompleteL() and there are no more records, it calls Finished().
void CBTServiceSearcher::Finished(TInt aError /* default = KErrNone */)
if (aError == KErrNone && !HasFoundService())
aError = KErrNotFound;
Here are my questions:
1) What i don't understand is the 'aError' thing here. I can see that some calls to Finished() (it is called in a few places), some of them do not pass a TInt variable to it. Some do. Yet it works, and there are no 'this is not an overloaded function' errors. Is this a special function? And yet it still works.
2) General question:
If i have:
Will abc123() be run while waiting for blablabla(iStatus) to complete?