1 /* |
|
2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declaration of CPhoneHandlerCallState class. |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONEHANDLERCALLSTATE_H |
|
21 #define CPHONEHANDLERCALLSTATE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32property.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CPhoneHandlerControl; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Active object that listens to S60 call states. |
|
42 * |
|
43 * @lib RemConAsy |
|
44 * @since S60 3.1 |
|
45 */ |
|
46 NONSHARABLE_CLASS( CPhoneHandlerCallState ) : public CActive |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 */ |
|
53 static CPhoneHandlerCallState* NewL( CPhoneHandlerControl& aControl ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 ~CPhoneHandlerCallState(); |
|
59 |
|
60 public: // New functions |
|
61 |
|
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 /** |
|
82 * C++ default constructor. |
|
83 */ |
|
84 CPhoneHandlerCallState( CPhoneHandlerControl& aControl ); |
|
85 |
|
86 /** |
|
87 * By default Symbian 2nd phase constructor is private. |
|
88 */ |
|
89 void ConstructL(); |
|
90 |
|
91 /** |
|
92 * Starts to listen change in S60 start up state. |
|
93 **/ |
|
94 void Subscribe(); |
|
95 |
|
96 public: // Data |
|
97 |
|
98 protected: // Data |
|
99 |
|
100 private: // Data |
|
101 |
|
102 // Publish and Subscribe handle used to listen changes in call states |
|
103 RProperty iProperty; |
|
104 |
|
105 // reference to control |
|
106 CPhoneHandlerControl& iControl; |
|
107 |
|
108 public: // Friend classes |
|
109 |
|
110 protected: // Friend classes |
|
111 |
|
112 private: // Friend classes |
|
113 }; |
|
114 |
|
115 #endif // CPHONEHANDLERCALLSTATE_H |
|
116 |
|
117 // End of File |
|