|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * Postcard pointer (pen) event observer class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __POSTCARDPOINTEROBSERVER_H__ |
|
22 #define __POSTCARDPOINTEROBSERVER_H__ |
|
23 |
|
24 #ifdef RD_SCALABLE_UI_V2 |
|
25 |
|
26 // DATA TYPES |
|
27 |
|
28 enum TPocaPointerEvent |
|
29 { |
|
30 // Note: code assumes these are in this order |
|
31 EPocaPointerEventUpIcon, // backside flip icon |
|
32 EPocaPointerEventDownIcon, // frontside flip icon |
|
33 EPocaPointerEventGreeting, // backside greeting |
|
34 EPocaPointerEventAddress, // backside address |
|
35 EPocaPointerEventFrontBg // front background |
|
36 }; |
|
37 |
|
38 enum TPocaPointerEventType |
|
39 { |
|
40 // These are bits |
|
41 EPocaPointerEventTypeNone = 0, |
|
42 EPocaPointerEventTypeSingleDown = 1, |
|
43 EPocaPointerEventTypeSingleUp = 2 |
|
44 }; |
|
45 |
|
46 // Pointer event observer |
|
47 class MPocaPointerEventObserver |
|
48 { |
|
49 public: // functions |
|
50 virtual void PocaPointerEventL( TPocaPointerEvent aEvent, |
|
51 TPocaPointerEventType aEventType ) = 0; |
|
52 }; |
|
53 |
|
54 #endif // RD_SCALABLE_UI_V2 |
|
55 |
|
56 #endif // __POSTCARDPOINTEROBSERVER_H__ |