|
1 /* |
|
2 * Copyright (c) 2002 - 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: Test AknNoteWrappers.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // [INCLUDE FILES] |
|
20 |
|
21 #include <eikenv.h> |
|
22 #include <aknappui.h> |
|
23 |
|
24 #include "testsdknotescontrol.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CTestNotesControl::NewL |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CTestNotesControl* CTestNotesControl::NewL() |
|
32 { |
|
33 CTestNotesControl* self = new (ELeave) CTestNotesControl; |
|
34 CleanupStack::PushL(self); |
|
35 self->ConstructL(); |
|
36 CleanupStack::Pop(self); |
|
37 return self; |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CTestNotesControl::~CTestNotesControl |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 CTestNotesControl::~CTestNotesControl() |
|
45 { |
|
46 |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CTestNotesControl::CTestNotesControl |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CTestNotesControl::CTestNotesControl(){}; |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CTestNotesControl::ConstructL |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 void CTestNotesControl::ConstructL() |
|
60 { |
|
61 CreateWindowL(); |
|
62 SetRect(CEikonEnv::Static()->EikAppUi()->ClientRect()); |
|
63 ActivateL(); |
|
64 |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CTestNotesControl::OfferKeyEventL |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 TKeyResponse CTestNotesControl::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/, |
|
72 TEventCode /*aType*/) |
|
73 { |
|
74 return EKeyWasConsumed; |
|
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // CTestNotesControl::Draw |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 void CTestNotesControl::Draw(const TRect& /*aRect*/) const |
|
82 { |
|
83 } |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // CTestNotesControl::CountComponentControls |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 TInt CTestNotesControl::CountComponentControls() const |
|
90 { |
|
91 return 0; |
|
92 } |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // CTestNotesControl::ComponentControl |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 CCoeControl* CTestNotesControl::ComponentControl(TInt /*aIndex*/) const |
|
99 { |
|
100 return NULL; |
|
101 |
|
102 } |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // CTestNotesControl::SizeChanged |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 void CTestNotesControl::SizeChanged() |
|
109 { |
|
110 } |
|
111 |
|
112 // End of file |