|
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 * Interface to observe system events. |
|
16 * Implementer will be notified each time particular system component state has changed |
|
17 * |
|
18 * |
|
19 */ |
|
20 /* |
|
21 * ============================================================================ |
|
22 * Name : IRSystemEventDetectorObserver.h |
|
23 * Part of : |
|
24 * Origin : |
|
25 * Created : |
|
26 * Description: |
|
27 * Interface to observe system events. |
|
28 * Implementer will be notified each time particular system component state has changed |
|
29 * |
|
30 * Version : |
|
31 * --------------------------------------------------------------------------- |
|
32 |
|
33 /** @file IRSystemEventDetectorObserver.h */ |
|
34 |
|
35 #ifndef MIRSYSTEMEVENTDETECTOROBSERVER_H |
|
36 #define MIRSYSTEMEVENTDETECTOROBSERVER_H |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * |
|
41 * Observer for the call and network state. Implementer will be notified each time the state has changed |
|
42 */ |
|
43 class MIRSystemEventDetectorObserver |
|
44 { |
|
45 |
|
46 public: // New functions |
|
47 |
|
48 /** |
|
49 * This callback notifies when networks comes up. |
|
50 */ |
|
51 virtual void NetworkUpCallbackL() = 0; |
|
52 |
|
53 /** |
|
54 * This callback notifies when network goes down. |
|
55 */ |
|
56 virtual void NetworkDownCallbackL() = 0; |
|
57 |
|
58 /** |
|
59 * This callback notifies when call becomes active. |
|
60 */ |
|
61 virtual void CallActivatedCallbackL() = 0; |
|
62 |
|
63 /** |
|
64 * This callback notifies when call becomes deactive. |
|
65 */ |
|
66 virtual void CallDeactivatedCallbackL() = 0; |
|
67 |
|
68 /** |
|
69 * This callback notifies when audio resources become available. |
|
70 */ |
|
71 virtual void AudioResourcesAvailableL() = 0; |
|
72 |
|
73 /** |
|
74 * This callback notifies when audio auto resuming is forbidden. |
|
75 */ |
|
76 virtual void AudioAutoResumeForbiddenL() = 0; |
|
77 |
|
78 /** |
|
79 * This callback notifies when an error occured |
|
80 * @param an error code |
|
81 */ |
|
82 virtual void ErrorCallbackL(TInt aError) = 0; |
|
83 }; |
|
84 |
|
85 #endif // MIRSYSTEMEVENTDETECTOROBSERVER_H |
|
86 |
|
87 // End of File |