syncmlfw/common/obex/obexclient/src/NSmlBTServiceSearcher.cpp
branchRCL_3
changeset 26 19bba8228ff0
parent 25 b183ec05bd8c
equal deleted inserted replaced
25:b183ec05bd8c 26:19bba8228ff0
    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  */       
       
    44         }
    43         }
    45 	Finished();
    44 	Finished();
    46     delete iSdpSearchPattern;
    45     delete iSdpSearchPattern;
    47     iSdpSearchPattern = NULL;
    46     iSdpSearchPattern = NULL;
    48 
    47 
    54 //------------------------------------------------------------
    53 //------------------------------------------------------------
    55 void CNSmlBTServiceSearcher::SelectDeviceByDiscoveryL( TRequestStatus& aObserverRequestStatus )
    54 void CNSmlBTServiceSearcher::SelectDeviceByDiscoveryL( TRequestStatus& aObserverRequestStatus )
    56     {
    55     {
    57      if( !iIsDeviceSelectorConnected )
    56      if( !iIsDeviceSelectorConnected )
    58         {
    57         {
    59  /*       	
       
    60         User::LeaveIfError( iDeviceSelector.Connect() );
    58         User::LeaveIfError( iDeviceSelector.Connect() );
    61         iIsDeviceSelectorConnected = ETrue;
    59         iIsDeviceSelectorConnected = ETrue;
    62 */        
       
    63         }
    60         }
    64 
    61 
    65     //  Request a device selection 
    62     //  Request a device selection 
    66 	TBTDeviceClass deviceClass(0 ,0 ,0);
    63 	TBTDeviceClass deviceClass(0 ,0 ,0);
    67 	
    64 	
    70 	
    67 	
    71     TBTDeviceSelectionParamsPckg pckg(parameters);
    68     TBTDeviceSelectionParamsPckg pckg(parameters);
    72 
    69 
    73 	pckg().SetUUID( iBTConnInfo.iServiceClass );
    70 	pckg().SetUUID( iBTConnInfo.iServiceClass );
    74 
    71 
    75 //    iDeviceSelector.StartNotifierAndGetResponse(
    72     iDeviceSelector.StartNotifierAndGetResponse(
    76 //         aObserverRequestStatus, 
    73          aObserverRequestStatus, 
    77 //         KDeviceSelectionNotifierUid, 
    74          KDeviceSelectionNotifierUid, 
    78 //         /*selectionFilter*/pckg, 
    75          /*selectionFilter*/pckg, 
    79 //         iResponse);
    76          iResponse);
    80 
    77 
    81 
    78 
    82     }
    79     }
    83 //------------------------------------------------------------
    80 //------------------------------------------------------------
    84 // CNSmlBTServiceSearcher::FindServiceL( TRequestStatus& aObserverRequestStatus )
    81 // CNSmlBTServiceSearcher::FindServiceL( TRequestStatus& aObserverRequestStatus )