|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 |
|
18 // animgeneralfunctions_stub.cpp |
|
19 |
|
20 #include "animgeneralfunctions_stub.h" |
|
21 |
|
22 CAnimGeneralFunctionsStub* CAnimGeneralFunctionsStub::NewL() |
|
23 { |
|
24 return new (ELeave) CAnimGeneralFunctionsStub; |
|
25 } |
|
26 |
|
27 CAnimGeneralFunctionsStub::~CAnimGeneralFunctionsStub() |
|
28 { |
|
29 delete iWindowName; |
|
30 } |
|
31 |
|
32 CAnimGeneralFunctionsStub::CAnimGeneralFunctionsStub() |
|
33 { |
|
34 } |
|
35 |
|
36 void CAnimGeneralFunctionsStub::Animate(TDateTime* /*aDateTime*/) |
|
37 { |
|
38 } |
|
39 |
|
40 void CAnimGeneralFunctionsStub::SetSync(TAnimSync /*aSyncMode*/) |
|
41 { |
|
42 } |
|
43 |
|
44 void CAnimGeneralFunctionsStub::SetInterval(TInt /*aInterval*/) |
|
45 { |
|
46 } |
|
47 |
|
48 void CAnimGeneralFunctionsStub::SetNextInterval(TInt /*aInterval*/) |
|
49 { |
|
50 } |
|
51 |
|
52 TDateTime CAnimGeneralFunctionsStub::SystemTime() const |
|
53 { |
|
54 return TDateTime(); |
|
55 } |
|
56 |
|
57 TBool CAnimGeneralFunctionsStub::FlashStateOn() const |
|
58 { |
|
59 return EFalse; |
|
60 } |
|
61 |
|
62 MAnimGeneralFunctions::TAnimSync CAnimGeneralFunctionsStub::Sync() const |
|
63 { |
|
64 return ESyncNone; |
|
65 } |
|
66 |
|
67 const CFbsScreenDevice* CAnimGeneralFunctionsStub::ScreenDevice() |
|
68 { |
|
69 return NULL; |
|
70 } |
|
71 |
|
72 CFbsBitmap* CAnimGeneralFunctionsStub::DuplicateBitmapL(TInt /*aHandle*/) |
|
73 { |
|
74 return NULL; |
|
75 } |
|
76 |
|
77 CFbsFont* CAnimGeneralFunctionsStub::DuplicateFontL(TInt /*aHandle*/) |
|
78 { |
|
79 return NULL; |
|
80 } |
|
81 |
|
82 void CAnimGeneralFunctionsStub::CloseFont(CFbsFont *) |
|
83 { |
|
84 } |
|
85 |
|
86 const RThread& CAnimGeneralFunctionsStub::Client() |
|
87 { |
|
88 return iThread; |
|
89 } |
|
90 |
|
91 void CAnimGeneralFunctionsStub::ReplyBuf(const TDesC8& /*aDes*/) |
|
92 { |
|
93 } |
|
94 |
|
95 void CAnimGeneralFunctionsStub::ReplyBuf(const TDesC16& /*aDes*/) |
|
96 { |
|
97 } |
|
98 |
|
99 void CAnimGeneralFunctionsStub::Panic() const |
|
100 { |
|
101 } |
|
102 |
|
103 void CAnimGeneralFunctionsStub::GetRawEvents(TBool aGetEvents) const |
|
104 { |
|
105 iGetEvents = aGetEvents; |
|
106 } |
|
107 |
|
108 void CAnimGeneralFunctionsStub::PostRawEvent(const TRawEvent &aRawEvent) const |
|
109 { |
|
110 iPostedRawEvent = aRawEvent; |
|
111 } |
|
112 |
|
113 void CAnimGeneralFunctionsStub::PostKeyEvent(const TKeyEvent &aRawEvent) const |
|
114 { |
|
115 iPostedKeyEvent = aRawEvent; |
|
116 } |
|
117 |
|
118 const RMessagePtr2* CAnimGeneralFunctionsStub::Message() |
|
119 { |
|
120 return NULL; |
|
121 } |
|
122 |
|
123 TAny* CAnimGeneralFunctionsStub::ExtendedInterface(TInt aInterface) |
|
124 { |
|
125 TAny* result = NULL; |
|
126 |
|
127 switch( aInterface ) |
|
128 { |
|
129 case MAnimGeneralFunctions::EWindowExtensionInterface: |
|
130 result = static_cast< MAnimGeneralFunctionsWindowExtension* >( this ); |
|
131 break; |
|
132 default: |
|
133 break; |
|
134 } |
|
135 |
|
136 return result; |
|
137 } |
|
138 |
|
139 TInt CAnimGeneralFunctionsStub::RegisterForNotifications(TUint32 /*aNotifications*/) |
|
140 { |
|
141 return KErrNone; |
|
142 } |
|
143 |
|
144 void MAnimGeneralFunctions::Reserved1() const |
|
145 { |
|
146 } |
|
147 |
|
148 void MAnimGeneralFunctions::Reserved2() const |
|
149 { |
|
150 } |
|
151 |
|
152 void MAnimGeneralFunctions::Reserved3() const |
|
153 { |
|
154 } |
|
155 |
|
156 TInt CAnimGeneralFunctionsStub::Screens() const |
|
157 { |
|
158 return 1; |
|
159 } |
|
160 |
|
161 TInt CAnimGeneralFunctionsStub::FocusScreens() const |
|
162 { |
|
163 return 1; |
|
164 } |
|
165 |
|
166 void CAnimGeneralFunctionsStub::SetFocusScreen(TInt /*aScreenNo*/) |
|
167 { |
|
168 } |
|
169 |
|
170 TInt CAnimGeneralFunctionsStub::WindowGroups(TInt /*aScreen*/) const |
|
171 { |
|
172 return 1; |
|
173 } |
|
174 |
|
175 TBool CAnimGeneralFunctionsStub::WindowGroupInfo(TWindowGroupInfo& aInfo,TInt aScreen, TInt aFullOrdinalPosition) const |
|
176 { |
|
177 if ( aScreen == 0 && aFullOrdinalPosition == 0 ) |
|
178 { |
|
179 aInfo = iWgInfo; |
|
180 return ETrue; |
|
181 } |
|
182 return EFalse; |
|
183 } |
|
184 |
|
185 TBool CAnimGeneralFunctionsStub::WindowGroupName(TPtrC& aWindowName, TInt aScreen, TInt aFullOrdinalPosition) const |
|
186 { |
|
187 if ( aScreen == 0 && aFullOrdinalPosition == 0 && iWindowName ) |
|
188 { |
|
189 aWindowName.Set( *iWindowName ); |
|
190 return ETrue; |
|
191 } |
|
192 return EFalse; |
|
193 } |
|
194 |
|
195 TInt CAnimGeneralFunctionsStub::SetOrdinalPosition(TInt aWindowGroupId,TInt aPos,TInt aOrdinalPriority) |
|
196 { |
|
197 iSetOrdinalPosition.iWindowGroupId = aWindowGroupId; |
|
198 iSetOrdinalPosition.iPos = aPos; |
|
199 iSetOrdinalPosition.iOrdinalPriority = aOrdinalPriority; |
|
200 return KErrNone; |
|
201 } |
|
202 |
|
203 void CAnimGeneralFunctionsStub::WindowConfig(TWindowConfig& /*aWindowConfig*/) const |
|
204 { |
|
205 |
|
206 } |
|
207 |
|
208 void MAnimGeneralFunctionsWindowExtension::Reserved1() const |
|
209 { |
|
210 } |
|
211 |
|
212 void MAnimGeneralFunctionsWindowExtension::Reserved2() const |
|
213 { |
|
214 } |
|
215 |
|
216 void MAnimGeneralFunctionsWindowExtension::Reserved3() const |
|
217 { |
|
218 } |
|
219 |
|
220 |