equal
deleted
inserted
replaced
|
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: |
|
15 * An observer class used to hand over key events to classes |
|
16 * that can't receive them by themselves (i.e. not CCoeControl derived |
|
17 * classes) |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 #ifndef __MVRKEYOBSERVER_H__ |
|
23 #define __MVRKEYOBSERVER_H__ |
|
24 |
|
25 // INCLUDES |
|
26 #include <w32std.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * An observer class used to hand over key events to classes |
|
31 * that can't receive them by themselves (i.e. not CCoeControl derived |
|
32 * classes) |
|
33 */ |
|
34 class MVRKeyObserver |
|
35 { |
|
36 |
|
37 public: // new methods |
|
38 |
|
39 /** |
|
40 * This function is called when a subject wants to report a key event. |
|
41 * @param aKeyEvent The key event. |
|
42 * @param aType The type of key event: EEventKey, EEventKeyUp |
|
43 * or EEventKeyDown |
|
44 * @return Indicates whether or not the key event was used. |
|
45 */ |
|
46 virtual TBool ProcessKeyEventL( const TKeyEvent& aKeyEvent, |
|
47 const TEventCode aType ) = 0; |
|
48 |
|
49 }; |
|
50 |
|
51 #endif // __MVRKEYOBSERVER_H__ |