|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Implements the functionality of the System Agent observer |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_Engine_Clogs_System_Agent_H__ |
|
21 #define __Logs_Engine_Clogs_System_Agent_H__ |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <e32property.h> |
|
25 #include <RSSSettings.h> //Supplementary Services Settings |
|
26 #include "MLogsSystemAgent.h" |
|
27 #include "MLogsStateHolder.h" |
|
28 #include "LogsEng.hrh" |
|
29 |
|
30 // CONSTANTS |
|
31 |
|
32 // MACROS |
|
33 |
|
34 // DATA TYPES |
|
35 |
|
36 // FUNCTION PROTOTYPES |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 class MLogsCallObserver; |
|
40 // CLASS DECLARATION |
|
41 |
|
42 /** |
|
43 * Implements the functionality of the System Agent observer |
|
44 */ |
|
45 class CLogsSystemAgent : public CActive, |
|
46 public MLogsSystemAgent |
|
47 { |
|
48 public: // Constructor and destructors |
|
49 /** |
|
50 * Two-phased constructor |
|
51 * |
|
52 * @param aObserver interface for notifications |
|
53 * @return pointer to new object |
|
54 */ |
|
55 static CLogsSystemAgent* NewL( MLogsObserver* aObserver, |
|
56 MLogsCallObserver* aCallObserver ); |
|
57 |
|
58 /** |
|
59 * Destructor |
|
60 */ |
|
61 virtual ~CLogsSystemAgent(); |
|
62 |
|
63 protected: /// from CActive |
|
64 void RunL(); |
|
65 void DoCancel(); |
|
66 |
|
67 private: // Constructors. |
|
68 |
|
69 /** |
|
70 * Second phase constructor |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 /** |
|
75 * Symbian OS Default constructor |
|
76 * @param aObserver interface for notifications |
|
77 */ |
|
78 CLogsSystemAgent( MLogsObserver* aObserver, |
|
79 MLogsCallObserver* aCallObserver ); |
|
80 |
|
81 /** |
|
82 * Is network in use Gprs or Wcdma |
|
83 * @return true / false |
|
84 */ |
|
85 TBool IsGprs(); |
|
86 |
|
87 public: // from MLogsSystemAgent |
|
88 |
|
89 TBool AlsSupport(); |
|
90 TBool GprsConnectionActive(); |
|
91 // TInt CallActive( TBool &aValue ); |
|
92 void SetObserver( MLogsObserver* aObserver ); |
|
93 void ResetNewMissedPocCalls(); //Reset missed Poc call notification |
|
94 // void SetCallObserver( MLogsCallObserver* aCallObserver ); |
|
95 |
|
96 private: |
|
97 |
|
98 private: // Data |
|
99 |
|
100 //Handles to Publish and subscribe |
|
101 RProperty iPropertyGprs; |
|
102 RProperty iPropertyWcdma; |
|
103 // RProperty iPropertyCallHandling; |
|
104 // RProperty iPropertyCallStatus; |
|
105 |
|
106 /// Ref: observer |
|
107 MLogsObserver* iObserver ; |
|
108 MLogsCallObserver* iCallObserver ; |
|
109 |
|
110 //Handle to Supplementary Services Settings (Als support etc) |
|
111 RSSSettings iSSSettings; |
|
112 }; |
|
113 |
|
114 #endif // __Logs_Engine_Clogs_System_Agent_H__ |
|
115 |
|
116 |
|
117 // End of File |