equal
deleted
inserted
replaced
19 #define BTDELEGATEDEVSECURITY_H |
19 #define BTDELEGATEDEVSECURITY_H |
20 |
20 |
21 #include <e32base.h> |
21 #include <e32base.h> |
22 #include <btengconnman.h> |
22 #include <btengconnman.h> |
23 #include <btengdevman.h> |
23 #include <btengdevman.h> |
|
24 #include <btengconnman.h> |
24 #include "btabstractdelegate.h" |
25 #include "btabstractdelegate.h" |
25 |
26 |
26 class BtuiModel; |
27 class BtuiModel; |
27 |
28 |
28 /*! |
29 /*! |
29 \class BtDelegateDisconnect |
30 \class BtDelegateDevSecurity |
30 \brief the base class for Disconnecting Bluetooth Connection. |
31 \brief the base class for Unpairing Bluetooth Connection. |
31 */ |
32 */ |
32 class BtDelegateDevSecurity : public BtAbstractDelegate, |
33 class BtDelegateDevSecurity : public BtAbstractDelegate, |
33 public MBTEngDevManObserver |
34 public MBTEngDevManObserver, public MBTEngConnObserver |
34 { |
35 { |
35 Q_OBJECT |
36 Q_OBJECT |
36 |
37 |
37 public: |
38 public: |
38 explicit BtDelegateDevSecurity( |
39 explicit BtDelegateDevSecurity( |
45 virtual void exec( const QVariant ¶ms ); |
46 virtual void exec( const QVariant ¶ms ); |
46 |
47 |
47 virtual void cancel(); |
48 virtual void cancel(); |
48 |
49 |
49 public slots: |
50 public slots: |
|
51 void disconnectDelegateCompleted(int err); |
50 |
52 |
51 protected: |
53 protected: |
52 //From MBTEngDevManObserver |
54 //From MBTEngDevManObserver |
53 virtual void HandleDevManComplete( TInt aErr ); |
55 virtual void HandleDevManComplete( TInt aErr ); |
54 virtual void HandleGetDevicesComplete( TInt aErr, CBTDeviceArray* aDeviceArray ); |
56 virtual void HandleGetDevicesComplete( TInt aErr, CBTDeviceArray* aDeviceArray ); |
55 |
57 //From MBTEngConnObserver |
|
58 virtual void ConnectComplete( TBTDevAddr& aAddr, TInt aErr, |
|
59 RBTDevAddrArray* aConflicts ); |
|
60 virtual void DisconnectComplete( TBTDevAddr& aAddr, TInt aErr ); |
|
61 |
56 void emitCommandComplete(int error); |
62 void emitCommandComplete(int error); |
57 |
63 |
58 private: |
64 private: |
59 |
65 |
60 CBTEngDevMan *mBtEngDevMan; |
66 CBTEngDevMan *mBtEngDevMan; |
61 |
|
62 QString mdeviceName; |
67 QString mdeviceName; |
|
68 CBTEngConnMan *mBtengConnMan; |
|
69 BtAbstractDelegate* mDisconnectDelegate; |
63 |
70 |
64 Q_DISABLE_COPY(BtDelegateDevSecurity) |
71 Q_DISABLE_COPY(BtDelegateDevSecurity) |
65 |
72 |
66 }; |
73 }; |
67 |
74 |