|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Interface for event monitor utils |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MSATEVENTMONITORUTILS_H |
|
21 #define MSATEVENTMONITORUTILS_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <etelsat.h> |
|
26 |
|
27 // FORWARD DECLARATION |
|
28 class MSatBIPEventNotifier; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Interface for event monitors. |
|
34 * |
|
35 * @lib EventMonitors.lib |
|
36 * @since Series 60 3.0 |
|
37 */ |
|
38 class MSatEventMonitorUtils |
|
39 { |
|
40 public: // New functions |
|
41 |
|
42 /** |
|
43 * Sends notify to SIM about some event using EventDownload command. |
|
44 * @param aSingleEvent Single event reported to SIM. |
|
45 * @param aFirstArg First argument interpreted according to type of event |
|
46 * @param aSecArg Second argument interpreted according to type of event |
|
47 */ |
|
48 virtual void EventDownload( |
|
49 RSat::TEventList aSingleEvent, |
|
50 TInt aFirstArg, |
|
51 TInt aSecArg ) = 0; |
|
52 |
|
53 /** |
|
54 * Gives a reference to BIP Event notifier interface. |
|
55 * @return A reference to BIP Event notifier interface. |
|
56 */ |
|
57 virtual MSatBIPEventNotifier& BipNotifier() = 0; |
|
58 |
|
59 /** |
|
60 * Tells to observer that SIM is removed. Observer should cancel all |
|
61 * monitors. |
|
62 */ |
|
63 virtual void SimRemoved() = 0; |
|
64 |
|
65 /** |
|
66 * From MSatEventMonitorUtils |
|
67 * Writes time between language selection and reboot. |
|
68 * @param aTime Time before reboot. |
|
69 * @return KErrNone if Language Selection Time is set. |
|
70 */ |
|
71 virtual TInt WriteLanguageSelectionTime( TInt aTime ) = 0; |
|
72 |
|
73 protected: // New functions |
|
74 |
|
75 /** |
|
76 * Destructor. |
|
77 */ |
|
78 virtual ~MSatEventMonitorUtils() {}; |
|
79 |
|
80 /** |
|
81 * C++ default constructor. |
|
82 */ |
|
83 MSatEventMonitorUtils() {}; |
|
84 |
|
85 private: |
|
86 |
|
87 // Prohibit copy constructor if not deriving from CBase. |
|
88 MSatEventMonitorUtils( const MSatEventMonitorUtils& ); |
|
89 |
|
90 // Prohibit assigment operator if not deriving from CBase. |
|
91 MSatEventMonitorUtils& operator=( const MSatEventMonitorUtils& ); |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // MSATEVENTMONITORUTILS_H |
|
96 |
|
97 // End of file |