|
1 /* |
|
2 * Copyright (c) 2007 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 * |
|
16 */ |
|
17 |
|
18 #ifndef CSIPSYSTEMSTATEMONITORIMPL_H |
|
19 #define CSIPSYSTEMSTATEMONITORIMPL_H |
|
20 |
|
21 // INCLUDES |
|
22 #include "sipsystemstatemonitorao.h" |
|
23 #include "sipsnapavailabilitymonitor.h" |
|
24 #include "MSystemStateConnUsagePermissionObserver.h" |
|
25 #include <sipsystemstateobserver.h> |
|
26 #include <sipsystemstatemonitor.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CSystemStateConnUsagePermissionMonitor; |
|
30 class CSipDeviceStateAware; |
|
31 class CSipRfsMonitorAo; |
|
32 // CLASS DECLARATION |
|
33 /** |
|
34 * The default implementation for Sip System State Monitor. |
|
35 * |
|
36 * @lib sipsystemstatemonitor.lib |
|
37 */ |
|
38 class CSipSystemStateMonitorImpl : public CSipSystemStateMonitor |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 static CSipSystemStateMonitorImpl* NewL(); |
|
43 ~CSipSystemStateMonitorImpl(); |
|
44 |
|
45 public: // From CSipSystemStateMonitor |
|
46 |
|
47 CSipSystemStateMonitor::TSystemState State() const; |
|
48 |
|
49 void StartMonitoringL( TSystemVariable aVariable, |
|
50 TInt aObjectId, |
|
51 MSipSystemStateObserver& aObserver ); |
|
52 |
|
53 void StopMonitoring( TSystemVariable aVariable, |
|
54 TInt aObjectId, |
|
55 MSipSystemStateObserver& aObserver ); |
|
56 |
|
57 TInt CurrentValue( TSystemVariable aVariable, |
|
58 TInt aObjectId ) const; |
|
59 |
|
60 void EventProcessingCompleted( TSystemVariable aVariable, |
|
61 TInt aObjectId, |
|
62 MSipSystemStateObserver& aObserver); |
|
63 |
|
64 private: // Constructors |
|
65 |
|
66 CSipSystemStateMonitorImpl(); |
|
67 void ConstructL(); |
|
68 |
|
69 private: // Private functions |
|
70 |
|
71 CSipSnapAvailabilityMonitor* FindSnapMonitorById( |
|
72 TInt aSnapId ) const; |
|
73 |
|
74 private: // Data |
|
75 |
|
76 CSipSystemStateMonitorAo* iMonitorAo; |
|
77 RPointerArray<CSipSnapAvailabilityMonitor> iSnapMonitors; |
|
78 CSystemStateConnUsagePermissionMonitor* iUsagePermissionMonitor; |
|
79 CSipRfsMonitorAo* iRfsMonitor; |
|
80 CSipDeviceStateAware* iSipDeviceAwareObject; |
|
81 |
|
82 private: // For testing purposes |
|
83 |
|
84 friend class CSipSystemStateMonitorImplTest; |
|
85 }; |
|
86 |
|
87 |
|
88 #endif // CSIPSYSTEMSTATEMONITORIMPL_H |