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 MRADIOSYSTEMEVENTOBSERVER_H |
|
19 #define MRADIOSYSTEMEVENTOBSERVER_H |
|
20 |
|
21 // Data types |
|
22 |
|
23 /** Type of system event */ |
|
24 enum TRadioSystemEventType |
|
25 { |
|
26 ERadioHeadsetConnected, ///< Headset was connected |
|
27 ERadioHeadsetDisconnected, ///< Headset was disconnected |
|
28 ERadioNetworkCoverageUp, ///< Network coverage detected |
|
29 ERadioNetworkCoverageDown, ///< Network coverage lost |
|
30 ERadioCallActivated, ///< Call activated or ringing |
|
31 ERadioCallDeactivated, ///< Call disconnected |
|
32 ERadioEmergencyCallActivated, ///< Call activated or ringing |
|
33 ERadioEmergencyCallDeactivated, ///< Call disconnected |
|
34 ERadioLowDiskSpace, ///< Low disk space |
|
35 ERadioAudioRouteHeadset, ///< Audio routed through headset |
|
36 ERadioAudioRouteSpeaker, ///< Audio routed through speaker ( IHF ) |
|
37 ERadioAudioResourcesAvailable, ///< Audio resources have become available |
|
38 ERadioAudioAutoResumeForbidden ///< Audio auto resuming is forbidden |
|
39 }; |
|
40 |
|
41 |
|
42 /** |
|
43 * Observer for any system event state change. |
|
44 */ |
|
45 NONSHARABLE_CLASS( MRadioSystemEventObserver ) |
|
46 { |
|
47 public: |
|
48 |
|
49 /** |
|
50 * Called when system event occurs. |
|
51 * @param aEventType Type of the event |
|
52 */ |
|
53 virtual void HandleSystemEventL( TRadioSystemEventType aEventType ) = 0; |
|
54 |
|
55 }; |
|
56 |
|
57 #endif // MRADIOSYSTEMEVENTOBSERVER_H |
|
58 |
|
59 |
|