bluetoothengine/btui/btcpplugin/btcpuisearchview.h
changeset 67 16e4b9007960
parent 57 5ebadcda06cb
--- a/bluetoothengine/btui/btcpplugin/btcpuisearchview.h	Wed Sep 29 13:09:05 2010 +0300
+++ b/bluetoothengine/btui/btcpplugin/btcpuisearchview.h	Wed Oct 13 13:15:31 2010 +0300
@@ -42,12 +42,17 @@
     virtual void activateView( const QVariant& value, bool backNavi);
     virtual void deactivateView();
     virtual void createContextMenuActions(int majorRole);
+    virtual void connectToDevice(const QModelIndex& modelIndex); 
+    virtual void disconnectFromDevice(const QModelIndex& modelIndex);
+
+    
 public slots:
     void changeOrientation( Qt::Orientation orientation );
     void stopSearching();
     void retrySearch();
     virtual void viewByDialogClosed(HbAction* action);
     void deviceSearchCompleted(int error);
+    void secondaryDelegateCompleted(int error, BtAbstractDelegate* delegate);
         
 private:
     virtual void take(BtAbstractDelegate *delegate);
@@ -65,6 +70,12 @@
     HbAction* mViewBy;
     HbAction* mStop;
     HbAction* mRetry;
+    
+    //This is used to perform connect/disconnect operations.
+    //Inquiry delegate will be primary delegate, since Inquiry 
+    //delegate is active most of the time, this secondary
+    //delegate is used to perform connect/disconnect.
+    BtAbstractDelegate* mSecondaryDelegate;
 
 };