41 * Active object that listens to S60 call states. |
43 * Active object that listens to S60 call states. |
42 * |
44 * |
43 * @lib RemConAsy |
45 * @lib RemConAsy |
44 * @since S60 3.1 |
46 * @since S60 3.1 |
45 */ |
47 */ |
46 NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CActive |
48 NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CBase, public MCallInformationObserver |
47 { |
49 { |
48 public: // Constructors and destructor |
50 public: // Constructors and destructor |
49 |
51 |
50 /** |
52 /** |
51 * Two-phased constructor. |
53 * Two-phased constructor. |
52 */ |
54 */ |
53 static CPhoneHandlerCallState* NewL( CPhoneHandlerControl& aControl ); |
55 static CPhoneHandlerCallState* NewL( CPhoneHandlerControl& aControl ); |
54 |
56 |
55 /** |
57 /** |
56 * Destructor. |
58 * Destructor. |
57 */ |
59 */ |
58 ~CPhoneHandlerCallState(); |
60 ~CPhoneHandlerCallState(); |
59 |
61 |
60 public: // New functions |
62 private: |
61 |
63 |
62 public: // Functions from base classes |
64 /** |
63 |
|
64 protected: // New functions |
|
65 |
|
66 protected: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * From CActive. Handles S60 start up state change event. |
|
70 */ |
|
71 void RunL(); |
|
72 |
|
73 /** |
|
74 * From CActive. Implements cancellation of an outstanding Subscibe() |
|
75 * request. |
|
76 */ |
|
77 void DoCancel(); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
65 * C++ default constructor. |
83 */ |
66 */ |
84 CPhoneHandlerCallState( CPhoneHandlerControl& aControl ); |
67 CPhoneHandlerCallState( CPhoneHandlerControl& aControl ); |
85 |
68 |
86 /** |
69 /** |
87 * By default Symbian 2nd phase constructor is private. |
70 * By default Symbian 2nd phase constructor is private. |
88 */ |
71 */ |
89 void ConstructL(); |
72 void ConstructL(); |
90 |
73 |
91 /** |
74 /** |
92 * Starts to listen change in S60 start up state. |
75 * Signals that there are changes in ongoing calls. |
93 **/ |
76 * |
94 void Subscribe(); |
77 * @return void |
95 |
78 */ |
96 public: // Data |
79 void CallInformationChangedL(); |
|
80 |
|
81 // From MCallInformationObserver |
|
82 |
|
83 /** |
|
84 * Signals that there are changes in ongoing calls. |
|
85 * |
|
86 * @return void |
|
87 */ |
|
88 void CallInformationChanged(); |
|
89 |
|
90 public: // Data |
97 |
91 |
98 protected: // Data |
92 protected: // Data |
99 |
93 |
100 private: // Data |
94 private: // Data |
101 |
95 |
102 // Publish and Subscribe handle used to listen changes in call states |
96 CCallInformation* iInfo; |
103 RProperty iProperty; |
97 |
104 |
98 // reference to control |
105 // reference to control |
|
106 CPhoneHandlerControl& iControl; |
99 CPhoneHandlerControl& iControl; |
107 |
100 |
108 public: // Friend classes |
101 public: // Friend classes |
109 |
102 |
110 protected: // Friend classes |
103 protected: // Friend classes |
111 |
104 |
112 private: // Friend classes |
105 private: // Friend classes |
113 }; |
106 }; |
114 |
107 |
115 #endif // CPHONEHANDLERCALLSTATE_H |
108 #endif // CPHONEHANDLERCALLSTATE_H |
116 |
109 |
117 // End of File |
110 // End of File |