equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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: Control key event observer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MFSCCONTROLKEYOBSERVER_H |
|
20 #define MFSCCONTROLKEYOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <coedef.h> // TKeyResponse |
|
24 #include <w32std.h> // TKeyEvent, TEventCode |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Control key event observer interface. |
|
29 */ |
|
30 class MFscControlKeyObserver |
|
31 { |
|
32 public: |
|
33 // Interface |
|
34 /** |
|
35 * Called from OfferKeyEventL of the observed control. |
|
36 * |
|
37 * @param aKeyEvent see CCoeControl::OfferKeyEventL. |
|
38 * @param aType see CCoeControl::OfferKeyEventL. |
|
39 * @return see CCoeControl::OfferKeyEventL. |
|
40 * @see CCoeControl::OfferKeyEventL. If returns EKeyWasConsumed the |
|
41 * control should not forward the key event. |
|
42 */ |
|
43 virtual TKeyResponse FscControlKeyEventL(const TKeyEvent& aKeyEvent, |
|
44 TEventCode aType) = 0; |
|
45 }; |
|
46 |
|
47 #endif // MFSCCONTROLKEYOBSERVER_H |
|
48 // End of File |