|
1 /* |
|
2 * Copyright (c) 2002 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: MsgEditorKeyCatcher declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MSGEDITORKEYCATCHER_H |
|
21 #define MSGEDITORKEYCATCHER_H |
|
22 |
|
23 // ========== INCLUDE FILES ================================ |
|
24 |
|
25 #include <coecntrl.h> |
|
26 |
|
27 // ========== CONSTANTS ==================================== |
|
28 |
|
29 // ========== MACROS ======================================= |
|
30 |
|
31 // ========== DATA TYPES =================================== |
|
32 |
|
33 // ========== FUNCTION PROTOTYPES ========================== |
|
34 |
|
35 // ========== FORWARD DECLARATIONS ========================= |
|
36 |
|
37 class CMsgAddressControlEditor; |
|
38 |
|
39 // ========== CLASS DECLARATION ============================ |
|
40 |
|
41 /** |
|
42 * CMsgEditorKeyCatcher class |
|
43 * |
|
44 */ |
|
45 class CMsgEditorKeyCatcher : public CCoeControl |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * EPOC default constructor. |
|
51 * @param aRect Frame rectangle for container. |
|
52 */ |
|
53 void ConstructL(CMsgAddressControlEditor* aEditor); |
|
54 |
|
55 /** |
|
56 * Default c++ constructor. |
|
57 */ |
|
58 CMsgEditorKeyCatcher(); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 ~CMsgEditorKeyCatcher(); |
|
64 |
|
65 public: // New functions |
|
66 |
|
67 public: // Functions from base classes |
|
68 |
|
69 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
70 |
|
71 private: // Constructors and destructor |
|
72 |
|
73 private: // Functions from base classes |
|
74 |
|
75 private: |
|
76 |
|
77 CMsgAddressControlEditor* iEditor; // not owned |
|
78 }; |
|
79 |
|
80 #endif |
|
81 |
|
82 // End of File |