|
1 /* |
|
2 * Copyright (c) 2007 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: Custom key definition |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_FSTEXTVIEWERKEYS_H |
|
20 #define C_FSTEXTVIEWERKEYS_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CFsTextViewerKeys : public CBase |
|
25 { |
|
26 public: |
|
27 IMPORT_C static CFsTextViewerKeys* NewL (); |
|
28 IMPORT_C ~CFsTextViewerKeys(); |
|
29 |
|
30 IMPORT_C void SetKeyUp( TInt aKey ); |
|
31 IMPORT_C void SetKeyDown( TInt aKey ); |
|
32 IMPORT_C void SetKeyScrollUp( TInt aKey ); |
|
33 IMPORT_C void SetKeyScrollDown( TInt aKey ); |
|
34 IMPORT_C void SetKeyPgUp( TInt aKey ); |
|
35 IMPORT_C void SetKeyPgDown( TInt aKey ); |
|
36 IMPORT_C void SetKeyRight( TInt aKey ); |
|
37 IMPORT_C void SetKeyLeft( TInt aKey ); |
|
38 IMPORT_C void SetKeyMark( TInt aKey ); |
|
39 IMPORT_C void SetKeyClick( TInt aKey ); |
|
40 |
|
41 IMPORT_C TInt GetKeyUp(); |
|
42 IMPORT_C TInt GetKeyDown(); |
|
43 IMPORT_C TInt GetKeyScrollUp(); |
|
44 IMPORT_C TInt GetKeyScrollDown(); |
|
45 IMPORT_C TInt GetKeyPgUp(); |
|
46 IMPORT_C TInt GetKeyPgDown(); |
|
47 IMPORT_C TInt GetKeyRight(); |
|
48 IMPORT_C TInt GetKeyLeft(); |
|
49 IMPORT_C TInt GetKeyMark(); |
|
50 IMPORT_C TInt GetKeyClick(); |
|
51 |
|
52 public: |
|
53 |
|
54 private: |
|
55 CFsTextViewerKeys(); |
|
56 void ConstructL(); |
|
57 |
|
58 private: |
|
59 TInt iKeyUp; |
|
60 TInt iKeyDown; |
|
61 TInt iKeyScrollUp; |
|
62 TInt iKeyScrollDown; |
|
63 TInt iKeyPgUp; |
|
64 TInt iKeyPgDown; |
|
65 TInt iKeyRight; |
|
66 TInt iKeyLeft; |
|
67 TInt iKeyMark; |
|
68 TInt iKeyClick; |
|
69 }; |
|
70 |
|
71 #endif //C_FSTEXTVIEWERKEYS_H |