--- a/ncdengine/debuglogger/obex/src/btservicesearcher.cpp Thu Aug 19 10:02:49 2010 +0300
+++ b/ncdengine/debuglogger/obex/src/btservicesearcher.cpp Tue Aug 31 15:21:33 2010 +0300
@@ -27,11 +27,14 @@
CBTServiceSearcher::~CBTServiceSearcher()
{
+#ifdef _0
if (iIsDeviceSelectorConnected)
{
iDeviceSelector.CancelNotifier(KDeviceSelectionNotifierUid);
iDeviceSelector.Close();
}
+#endif
+
delete iSdpSearchPattern;
iSdpSearchPattern = NULL;
@@ -46,11 +49,14 @@
void CBTServiceSearcher::Cancel() {
+#ifdef _0
if (iIsDeviceSelectorConnected)
{
iDeviceSelector.CancelNotifier(KDeviceSelectionNotifierUid);
}
+#endif
+
delete iSdpSearchPattern;
iSdpSearchPattern = NULL;
@@ -66,23 +72,28 @@
}
-void CBTServiceSearcher::SelectDeviceByDiscoveryL(TRequestStatus& aObserverRequestStatus)
+void CBTServiceSearcher::SelectDeviceByDiscoveryL(TRequestStatus& /* aObserverRequestStatus */)
{
+
+#ifdef _0
if (!iIsDeviceSelectorConnected)
{
User::LeaveIfError(iDeviceSelector.Connect());
iIsDeviceSelectorConnected = ETrue;
}
+#endif
// Request a device selection
TBTDeviceSelectionParamsPckg selectionFilter;
selectionFilter().SetUUID(ServiceClass());
-
+
+#ifdef _0
iDeviceSelector.StartNotifierAndGetResponse(
aObserverRequestStatus,
KDeviceSelectionNotifierUid,
selectionFilter,
iResponse);
+#endif
}