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