|
1 /* |
|
2 * Copyright (c) 2008-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: Screen Furniture cross-fader utility |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef GLXSIMPLEOBSERVEREVENTS_H |
|
22 #define GLXSIMPLEOBSERVEREVENTS_H |
|
23 |
|
24 class MGlxSimpleObservable; |
|
25 |
|
26 /** |
|
27 * Simple-observer event codes |
|
28 * @bug minor:drhodes:26/09/07:Most of these events are not used and should be removed |
|
29 */ |
|
30 enum TGlxSimpleObserverEventCode |
|
31 { |
|
32 // Universal events |
|
33 EGlxObservableDestroyed, |
|
34 |
|
35 // Screen Furniture related events |
|
36 EGlxSfUiHidden, |
|
37 EGlxSfUiShown, |
|
38 EGlxSfKeyCaptured, |
|
39 EGlxSfCourtesyTimerComplete, |
|
40 EGlxSfTitleCourtesyTimerComplete, |
|
41 EGlxSfNavipaneCourtesyTimerComplete, |
|
42 EGlxSfLeftSoftkeyCourtesyTimerComplete, |
|
43 EGlxSfRightSoftkeyCourtesyTimerComplete, |
|
44 EGlxSfMiddleSoftkeyCourtesyTimerComplete, |
|
45 EGlxSfLayoutUpdated, |
|
46 |
|
47 // Media List Existence events |
|
48 EGlxMvbMediaListCreated, |
|
49 EGlxMvbMediaListDestroyed |
|
50 |
|
51 }; |
|
52 |
|
53 /** |
|
54 * TGlxSimpleObserverEvent |
|
55 * |
|
56 * The event sent by MGlxSimpleObservable objects to MGlxSimpleObserver objects. |
|
57 * Contains the address of the broadcaster, and an event code. |
|
58 */ |
|
59 struct TGlxSimpleObserverEvent |
|
60 { |
|
61 /** |
|
62 * Constructor |
|
63 * @param aBroadcaster Address of the broadcaster |
|
64 * @param aEventCode Event code to send |
|
65 */ |
|
66 TGlxSimpleObserverEvent(MGlxSimpleObservable* aBroadcaster, TGlxSimpleObserverEventCode aEventCode) |
|
67 { |
|
68 iBroadcaster = aBroadcaster; |
|
69 iEventCode = aEventCode; |
|
70 } |
|
71 |
|
72 /// The broadcaster |
|
73 MGlxSimpleObservable* iBroadcaster; |
|
74 |
|
75 /// The event code being broadcast |
|
76 TGlxSimpleObserverEventCode iEventCode; |
|
77 }; |
|
78 |
|
79 #endif // GLXSIMPLEOBSERVEREVENTS_H |