|
1 /* |
|
2 * Copyright (c) 2009 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 CRADIOSYSTEMEVENTCOLLECTOR_H |
|
19 #define CRADIOSYSTEMEVENTCOLLECTOR_H |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 class MRadioSystemEventObserver; |
|
24 |
|
25 NONSHARABLE_CLASS( CRadioSystemEventCollector ) |
|
26 { |
|
27 public: |
|
28 |
|
29 IMPORT_C static CRadioSystemEventCollector* NewL(); |
|
30 |
|
31 IMPORT_C virtual ~CRadioSystemEventCollector(); |
|
32 |
|
33 /** |
|
34 * Adds a system event observer |
|
35 * |
|
36 * @param aSystemObserver The observer to be added |
|
37 */ |
|
38 virtual void AddObserverL( MRadioSystemEventObserver* aSystemObserver ) = 0; |
|
39 |
|
40 /** |
|
41 * Removes a system event observer |
|
42 * |
|
43 * @param aSystemObserver The observer to be removed |
|
44 */ |
|
45 virtual void RemoveObserver( MRadioSystemEventObserver* aSystemObserver ) = 0; |
|
46 |
|
47 /** |
|
48 * Returns data network coverage state ( wlan or mobile ). |
|
49 * |
|
50 * @return ETrue if there is network coverage |
|
51 */ |
|
52 virtual TBool IsNetworkCoverage() const = 0; |
|
53 |
|
54 /** |
|
55 * Returns mobile network coverage state. |
|
56 * |
|
57 * @return ETrue if there is network coverage |
|
58 */ |
|
59 virtual TBool IsMobileNetworkCoverage() const = 0; |
|
60 |
|
61 /** |
|
62 * Returns current call state. |
|
63 * |
|
64 * @return ETrue if call is active |
|
65 */ |
|
66 virtual TBool IsCallActive() const = 0; |
|
67 |
|
68 /** |
|
69 * Returns current audio resources state. |
|
70 * |
|
71 * @return ETrue if audio resources are available |
|
72 */ |
|
73 virtual TBool IsAudioResourcesAvailable() const = 0; |
|
74 |
|
75 /** |
|
76 * Returns current headset connection status |
|
77 * |
|
78 * @return |
|
79 */ |
|
80 virtual TBool IsHeadsetConnectedL() const = 0; |
|
81 |
|
82 /** |
|
83 * Returns current Voice UI state. |
|
84 * |
|
85 * @return ETrue if Voice UI is active, EFalse otherwise |
|
86 */ |
|
87 virtual TBool IsVoiceUiActive() const = 0; |
|
88 |
|
89 }; |
|
90 |
|
91 #endif // CRADIOSYSTEMEVENTCOLLECTOR_H |