40 * |
40 * |
41 * @lib PhoneCmdHandler |
41 * @lib PhoneCmdHandler |
42 * @since S60 3.1 |
42 * @since S60 3.1 |
43 */ |
43 */ |
44 NONSHARABLE_CLASS( CPhoneHandlerActive ) : public CActive |
44 NONSHARABLE_CLASS( CPhoneHandlerActive ) : public CActive |
45 { |
45 { |
46 public: // Constructors and destructor |
46 public: // Constructors and destructor |
47 |
47 |
48 /** |
48 /** |
49 * Two-phased constructor. |
49 * Two-phased constructor. |
50 */ |
50 */ |
51 static CPhoneHandlerActive* NewL( MPhoneHandlerObserver& aObserver ); |
51 static CPhoneHandlerActive* NewL( MPhoneHandlerObserver& aObserver ); |
52 |
52 |
53 /** |
53 /** |
54 * Destructor. |
54 * Destructor. |
55 */ |
55 */ |
56 ~CPhoneHandlerActive(); |
56 ~CPhoneHandlerActive(); |
57 |
57 |
58 public: // New functions |
58 public: // New functions |
59 |
59 |
60 /** |
60 /** |
61 * From CActive. Indicates that the active object has issued a request |
61 * From CActive. Indicates that the active object has issued a request |
62 * and that it is now outstanding. |
62 * and that it is now outstanding. |
63 * @since S60 3.1 |
63 * @since S60 3.1 |
64 * @return |
64 * @return |
65 */ |
65 */ |
66 void SetActive(); |
66 void SetActive(); |
67 |
67 |
68 public: // Functions from base classes |
68 public: // Functions from base classes |
69 |
69 |
70 protected: // New functions |
70 protected: // New functions |
71 |
71 |
72 protected: // Functions from base classes |
72 protected: // Functions from base classes |
73 |
73 |
74 /** |
74 /** |
75 * From CActive. Handles an active object’s request completion event. |
75 * From CActive. Handles an active object’s request completion event. |
76 */ |
76 */ |
77 void RunL(); |
77 void RunL(); |
78 |
78 |
79 /** |
79 /** |
80 * From CActive. Implements cancellation of an outstanding request. |
80 * From CActive. Implements cancellation of an outstanding request. |
81 */ |
81 */ |
82 void DoCancel(); |
82 void DoCancel(); |
83 |
83 |
84 /** |
84 /** |
85 * From CActive. Handles a leave occurring in the request completion |
85 * From CActive. Handles a leave occurring in the request completion |
86 * event handler RunL(). |
86 * event handler RunL(). |
87 */ |
87 */ |
88 TInt RunError( TInt aError ); |
88 TInt RunError( TInt aError ); |
89 |
89 |
90 private: |
90 private: |
91 |
91 |
92 /** |
92 /** |
93 * C++ default constructor. |
93 * C++ default constructor. |
94 */ |
94 */ |
95 CPhoneHandlerActive( MPhoneHandlerObserver& aObserver ); |
95 CPhoneHandlerActive( MPhoneHandlerObserver& aObserver ); |
96 |
96 |
97 /** |
97 /** |
98 * By default Symbian 2nd phase constructor is private. |
98 * By default Symbian 2nd phase constructor is private. |
99 */ |
99 */ |
100 void ConstructL(); |
100 void ConstructL(); |
101 |
101 |
102 public: // Data |
102 public: // Data |
103 |
103 |
104 protected: // Data |
104 protected: // Data |
105 |
105 |
106 private: // Data |
106 private: // Data |
107 |
107 |
108 // Notifies caller of an asynchronous request when request has been |
108 // Notifies caller of an asynchronous request when request has been |
109 // completed. |
109 // completed. |
110 MPhoneHandlerObserver& iObserver; |
110 MPhoneHandlerObserver& iObserver; |
111 |
111 |
112 public: // Friend classes |
112 public: // Friend classes |
113 |
113 |
114 protected: // Friend classes |
114 protected: // Friend classes |
115 |
115 |
116 private: // Friend classes |
116 private: // Friend classes |
117 }; |
117 }; |
118 |
118 |
119 #endif // CPHONEHANDLERACTIVE_H |
119 #endif // CPHONEHANDLERACTIVE_H |
120 |
120 |
121 // End of File |
121 // End of File |