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