syncmlfw/common/obex/obexclient/src/NSmlBTServiceSearcher.cpp
changeset 27 2c8580950a26
parent 0 b497e44ab2fc
child 62 19bba8228ff0
equal deleted inserted replaced
24:bf47f3b79154 27:2c8580950a26
    36 //------------------------------------------------------------
    36 //------------------------------------------------------------
    37 CNSmlBTServiceSearcher::~CNSmlBTServiceSearcher()
    37 CNSmlBTServiceSearcher::~CNSmlBTServiceSearcher()
    38     {
    38     {
    39     if( iIsDeviceSelectorConnected )
    39     if( iIsDeviceSelectorConnected )
    40         {
    40         {
    41         iDeviceSelector.CancelNotifier( KDeviceSelectionNotifierUid );
    41 /*        iDeviceSelector.CancelNotifier( KDeviceSelectionNotifierUid );
    42         iDeviceSelector.Close();
    42         iDeviceSelector.Close();
       
    43  */       
    43         }
    44         }
    44 	Finished();
    45 	Finished();
    45     delete iSdpSearchPattern;
    46     delete iSdpSearchPattern;
    46     iSdpSearchPattern = NULL;
    47     iSdpSearchPattern = NULL;
    47 
    48 
    53 //------------------------------------------------------------
    54 //------------------------------------------------------------
    54 void CNSmlBTServiceSearcher::SelectDeviceByDiscoveryL( TRequestStatus& aObserverRequestStatus )
    55 void CNSmlBTServiceSearcher::SelectDeviceByDiscoveryL( TRequestStatus& aObserverRequestStatus )
    55     {
    56     {
    56      if( !iIsDeviceSelectorConnected )
    57      if( !iIsDeviceSelectorConnected )
    57         {
    58         {
       
    59  /*       	
    58         User::LeaveIfError( iDeviceSelector.Connect() );
    60         User::LeaveIfError( iDeviceSelector.Connect() );
    59         iIsDeviceSelectorConnected = ETrue;
    61         iIsDeviceSelectorConnected = ETrue;
       
    62 */        
    60         }
    63         }
    61 
    64 
    62     //  Request a device selection 
    65     //  Request a device selection 
    63 	TBTDeviceClass deviceClass(0 ,0 ,0);
    66 	TBTDeviceClass deviceClass(0 ,0 ,0);
    64 	
    67 	
    67 	
    70 	
    68     TBTDeviceSelectionParamsPckg pckg(parameters);
    71     TBTDeviceSelectionParamsPckg pckg(parameters);
    69 
    72 
    70 	pckg().SetUUID( iBTConnInfo.iServiceClass );
    73 	pckg().SetUUID( iBTConnInfo.iServiceClass );
    71 
    74 
    72     iDeviceSelector.StartNotifierAndGetResponse(
    75 //    iDeviceSelector.StartNotifierAndGetResponse(
    73          aObserverRequestStatus, 
    76 //         aObserverRequestStatus, 
    74          KDeviceSelectionNotifierUid, 
    77 //         KDeviceSelectionNotifierUid, 
    75          /*selectionFilter*/pckg, 
    78 //         /*selectionFilter*/pckg, 
    76          iResponse);
    79 //         iResponse);
    77 
    80 
    78 
    81 
    79     }
    82     }
    80 //------------------------------------------------------------
    83 //------------------------------------------------------------
    81 // CNSmlBTServiceSearcher::FindServiceL( TRequestStatus& aObserverRequestStatus )
    84 // CNSmlBTServiceSearcher::FindServiceL( TRequestStatus& aObserverRequestStatus )