|
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
17 #include "vwsinternal.h" |
|
18 #include "vwsdefpartner.h" |
|
19 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS |
|
20 #include "VWSSEVNT.H" |
|
21 #include "VWSDEBUG.H" |
|
22 |
|
23 |
|
24 // |
|
25 // CVwsSessionEvent. |
|
26 // |
|
27 |
|
28 CVwsSessionEvent::CVwsSessionEvent(CVwsSession& aSession,TType aType,CVwsEventQueue& aQueue) |
|
29 :CVwsEvent(aType,aQueue),iSession(aSession) |
|
30 { |
|
31 } |
|
32 |
|
33 CVwsSessionEvent::CVwsSessionEvent(CVwsSession& aSession,TType aType,CVwsEventQueue& aQueue,MVwsSessionObserver& aObserver) |
|
34 :CVwsEvent(aType,aQueue),iSession(aSession),iObserver(&aObserver) |
|
35 { |
|
36 } |
|
37 |
|
38 CVwsSessionEvent::~CVwsSessionEvent() |
|
39 { |
|
40 } |
|
41 |
|
42 void CVwsSessionEvent::ReportRequestCompleted(MVwsSessionObserver::TRequestType aType,TInt aError,const RMessage2& aMessage) |
|
43 { |
|
44 if (iObserver) |
|
45 { |
|
46 iObserver->RequestCompleted(aType,aError,aMessage); |
|
47 } |
|
48 } |
|
49 |
|
50 void CVwsSessionEvent::NullifyObserver() |
|
51 { |
|
52 iObserver = NULL; |
|
53 } |
|
54 |
|
55 // |
|
56 // CVwsSessionEvent_Activation. |
|
57 // |
|
58 |
|
59 CVwsSessionEvent_Activation::CVwsSessionEvent_Activation(CVwsSession& aSession,CVwsEventQueue& aQueue,MVwsSessionObserver& aObserver,const TVwsViewId& aViewId,const TVwsViewId& aPreviousViewId,CVwsClientMessage* aClientMessage,const RThread& aThreadOfClientInitiatingViewSwitch) |
|
60 :CVwsSessionEvent(aSession,CVwsEvent::ENormal,aQueue,aObserver),iViewId(aViewId),iPreviousViewId(aPreviousViewId),iClientMessage(aClientMessage), iThreadOfClientInitiatingViewSwitch(aThreadOfClientInitiatingViewSwitch) |
|
61 { |
|
62 iSession.SetMessageHandler(*this); |
|
63 } |
|
64 |
|
65 CVwsSessionEvent_Activation::~CVwsSessionEvent_Activation() |
|
66 { |
|
67 //When a session event is completed, the observer(ie., the server event) of this session event is made as NULL. |
|
68 if (iObserver) |
|
69 { |
|
70 iObserver->NullifyObserved(); |
|
71 } |
|
72 delete iClientMessage; |
|
73 iThreadOfClientInitiatingViewSwitch.Close(); |
|
74 } |
|
75 |
|
76 void CVwsSessionEvent_Activation::ProcessEventL() |
|
77 { |
|
78 ASSERT(iState==EPending); |
|
79 LOG6(CVwsLog::ENormal,_L("Starting processing of session activation event of \"%x,%x\" [previous view: \"%x,%x\"]"), |
|
80 iViewId.iAppUid.iUid,iViewId.iViewUid.iUid,iPreviousViewId.iAppUid.iUid,iPreviousViewId.iViewUid.iUid); |
|
81 |
|
82 if (iSession.State()==CVwsSession::EClientRequestPending) |
|
83 { // Client request already pending so request activation imemdiately. |
|
84 RequestActivationL(); |
|
85 } |
|
86 else |
|
87 { // Otherwise, wait for call to HandleViewEventRequestL from session. |
|
88 iState=EWaitingForClientViewEventRequest; |
|
89 } |
|
90 } |
|
91 |
|
92 void CVwsSessionEvent_Activation::HandleViewEventRequestL(TInt aError,const RMessage2& aMessage) |
|
93 { |
|
94 switch (iState) |
|
95 { |
|
96 default: |
|
97 case EPending: |
|
98 ASSERT(EFalse); |
|
99 break; |
|
100 case EWaitingForClientViewEventRequest: |
|
101 RequestActivationL(); |
|
102 break; |
|
103 case EWaitingForCustomMessageCollection: |
|
104 LOG4(CVwsLog::ENormal,_L("CLIENT PANIC: Client \"%x\" requested view event [session state: EWaitingForCustomMessageCollection, last error: %d]"),iSession.AppUid().iUid,aError); |
|
105 if (aError==KErrNone) |
|
106 { |
|
107 CVwsSession::PanicClient(aMessage,EVwsCustomMessageNotCollected); |
|
108 } |
|
109 Complete(aError,aMessage); |
|
110 break; |
|
111 case EWaitingForAcknowledgementOfActivation: |
|
112 Complete(aError,aMessage); |
|
113 break; |
|
114 } |
|
115 } |
|
116 |
|
117 void CVwsSessionEvent_Activation::WriteClientMessageL(const RMessage2& aMessage) |
|
118 { |
|
119 ASSERT(iState==EWaitingForCustomMessageCollection); |
|
120 LOG3(CVwsLog::ENormal,_L("Client \"%x\" requested message"),iSession.AppUid().iUid); |
|
121 TRAP_IGNORE(aMessage.WriteL(0,*iClientMessage->iMessage)); |
|
122 iState=EWaitingForAcknowledgementOfActivation; |
|
123 } |
|
124 |
|
125 void CVwsSessionEvent_Activation::CheckSourceOfViewSwitchL(const RMessage2& aMessage) |
|
126 { |
|
127 LOG3(CVwsLog::ENormal,_L("Client \"%x\" checked source of view-switch"),iSession.AppUid().iUid); |
|
128 TPckgBuf<TSecurityPolicy> securityPolicy; |
|
129 aMessage.ReadL(0,securityPolicy); |
|
130 const char* diagnostic_charString=NULL; |
|
131 HBufC8* diagnostic_HBufC8=NULL; |
|
132 if (aMessage.Int1() == reinterpret_cast<TInt>(KSuppressPlatSecDiagnosticMagicValue)) |
|
133 { |
|
134 diagnostic_charString = KSuppressPlatSecDiagnosticMagicValue; |
|
135 } |
|
136 else if (aMessage.Ptr1()!=NULL) |
|
137 { |
|
138 diagnostic_HBufC8=HBufC8::NewLC(aMessage.GetDesLengthL(1)); |
|
139 TPtr8 diagnostic_TPtr8(diagnostic_HBufC8->Des()); |
|
140 aMessage.ReadL(1,diagnostic_TPtr8); |
|
141 diagnostic_TPtr8.ZeroTerminate(); |
|
142 diagnostic_charString=REINTERPRET_CAST(const char*,diagnostic_HBufC8->Ptr()); |
|
143 } |
|
144 TPckgBuf<TBool> result; |
|
145 result = securityPolicy().CheckPolicy(iThreadOfClientInitiatingViewSwitch,diagnostic_charString); |
|
146 aMessage.WriteL(2,result); |
|
147 aMessage.Complete(KErrNone); |
|
148 if (diagnostic_HBufC8!=NULL) |
|
149 { |
|
150 CleanupStack::PopAndDestroy(diagnostic_HBufC8); |
|
151 } |
|
152 } |
|
153 |
|
154 void CVwsSessionEvent_Activation::RequestActivationL() |
|
155 { |
|
156 LOG6(CVwsLog::ENormal,_L("Requesting activation of \"%x,%x\" [previous view: \"%x,%x\"]"), |
|
157 iViewId.iAppUid.iUid,iViewId.iViewUid.iUid,iPreviousViewId.iAppUid.iUid,iPreviousViewId.iViewUid.iUid); |
|
158 |
|
159 TVwsViewEvent viewEvent(TVwsViewEvent::EVwsActivateView,iViewId,iPreviousViewId,iClientMessage->iMessageId,(iClientMessage->iMessage==NULL)? 0: iClientMessage->iMessage->Length()); |
|
160 iSession.CompleteViewEventL(KErrNone,viewEvent); |
|
161 iState=(iClientMessage->iMessage!=NULL)? EWaitingForCustomMessageCollection: EWaitingForAcknowledgementOfActivation; |
|
162 |
|
163 } |
|
164 |
|
165 void CVwsSessionEvent_Activation::Complete(TInt aError,const RMessage2& aMessage) |
|
166 { |
|
167 LOG4(CVwsLog::ENormal,_L("Completed session activation event [Client: %x, Client error: %d]"),iSession.AppUid().iUid,aError); |
|
168 iSession.ClearMessageHandler(); |
|
169 ReportRequestCompleted(MVwsSessionObserver::EActivation,aError,aMessage); |
|
170 ReportEventProcessed(); |
|
171 } |
|
172 #ifdef _DEBUG |
|
173 void CVwsSessionEvent_Activation::Complete(TInt aError) |
|
174 #else |
|
175 void CVwsSessionEvent_Activation::Complete(TInt /*aError*/) |
|
176 #endif // _DEBUG |
|
177 { |
|
178 LOG4(CVwsLog::ENormal,_L("Completed session activation event [Client: %x, Client error: %d]"),iSession.AppUid().iUid,aError); |
|
179 iSession.ClearMessageHandler(); |
|
180 ReportEventProcessed(); |
|
181 // Disable unused parameter warning |
|
182 #pragma warning (disable: 4100) |
|
183 } |
|
184 #pragma warning (default: 4100) |
|
185 |
|
186 // |
|
187 // CVwsSessionEvent_Deactivation. |
|
188 // |
|
189 |
|
190 CVwsSessionEvent_Deactivation::CVwsSessionEvent_Deactivation(CVwsSession& aSession,CVwsEventQueue& aQueue,MVwsSessionObserver& aObserver,const TVwsViewId& aViewId,const TVwsViewId& aActiveViewId, TBool aDifferentInstanceOfSameApp) |
|
191 :CVwsSessionEvent(aSession,CVwsEvent::ENormal,aQueue,aObserver),iViewId(aViewId),iActiveViewId(aActiveViewId),iDifferentInstanceOfSameApp(aDifferentInstanceOfSameApp) |
|
192 { |
|
193 } |
|
194 |
|
195 CVwsSessionEvent_Deactivation::~CVwsSessionEvent_Deactivation() |
|
196 { |
|
197 //When a session event is completed, the observer(ie., the server event) of this session event is made as NULL. |
|
198 if (iObserver) |
|
199 { |
|
200 iObserver->NullifyObserved(); |
|
201 } |
|
202 } |
|
203 |
|
204 void CVwsSessionEvent_Deactivation::ProcessEventL() |
|
205 { |
|
206 ASSERT(iState==EPending); |
|
207 LOG6(CVwsLog::ENormal,_L("Starting processing of session deactivation event of \"%x,%x\" [view about to become active: \"%x,%x\"]"), |
|
208 iViewId.iAppUid.iUid,iViewId.iViewUid.iUid,iActiveViewId.iAppUid.iUid,iActiveViewId.iViewUid.iUid); |
|
209 |
|
210 if (iSession.State()==CVwsSession::EClientRequestPending) |
|
211 { // Client request already pending so request deactivation immediately. |
|
212 RequestDeactivationL(); |
|
213 } |
|
214 else |
|
215 { // Otherwise, wait for call to HandleViewEventRequestL from session. |
|
216 iState=EWaitingForClientViewEventRequest; |
|
217 } |
|
218 } |
|
219 |
|
220 void CVwsSessionEvent_Deactivation::HandleViewEventRequestL(TInt aError,const RMessage2& aMessage) |
|
221 { |
|
222 switch (iState) |
|
223 { |
|
224 default: |
|
225 case EPending: |
|
226 ASSERT(EFalse); |
|
227 break; |
|
228 case EWaitingForClientViewEventRequest: |
|
229 RequestDeactivationL(); |
|
230 break; |
|
231 case EWaitingForAcknowledgementOfDeactivation: |
|
232 Complete(aError,aMessage); |
|
233 break; |
|
234 } |
|
235 } |
|
236 |
|
237 void CVwsSessionEvent_Deactivation::RequestDeactivationL() |
|
238 { |
|
239 LOG4(CVwsLog::ENormal,_L("Starting processing of session deactivation event of \"%x,%x\""),iViewId.iAppUid.iUid,iViewId.iViewUid.iUid); |
|
240 if (iDifferentInstanceOfSameApp) |
|
241 iSession.CompleteViewEventL(KErrNone,TVwsViewEvent(TVwsViewEvent::EVwsDeactivateViewDifferentInstance,iViewId,iActiveViewId)); |
|
242 else |
|
243 iSession.CompleteViewEventL(KErrNone,TVwsViewEvent(TVwsViewEvent::EVwsDeactivateView,iViewId,iActiveViewId)); |
|
244 iState=EWaitingForAcknowledgementOfDeactivation; |
|
245 } |
|
246 |
|
247 void CVwsSessionEvent_Deactivation::Complete(TInt aError,const RMessage2& aMessage) |
|
248 { |
|
249 LOG4(CVwsLog::ENormal,_L("Completed session deactivation event [Client: %x, Client error: %d]"),iSession.AppUid().iUid,aError); |
|
250 ReportRequestCompleted(MVwsSessionObserver::EDeactivation,aError,aMessage); |
|
251 ReportEventProcessed(); |
|
252 } |
|
253 |
|
254 |
|
255 // |
|
256 // CVwsSessionEvent_ScreenDeviceChangeNotification. |
|
257 // |
|
258 |
|
259 CVwsSessionEvent_ScreenDeviceChangeNotification::CVwsSessionEvent_ScreenDeviceChangeNotification(CVwsSession& aSession,CVwsEventQueue& aQueue,MVwsSessionObserver& aObserver,const TVwsViewId& aViewId) |
|
260 :CVwsSessionEvent(aSession,CVwsEvent::ENormal,aQueue,aObserver),iViewId(aViewId) |
|
261 { |
|
262 } |
|
263 |
|
264 CVwsSessionEvent_ScreenDeviceChangeNotification::~CVwsSessionEvent_ScreenDeviceChangeNotification() |
|
265 { |
|
266 //When a session event is completed, the observer(ie., the server event) of this session event is made as NULL. |
|
267 if (iObserver) |
|
268 { |
|
269 iObserver->NullifyObserved(); |
|
270 } |
|
271 } |
|
272 |
|
273 void CVwsSessionEvent_ScreenDeviceChangeNotification::ProcessEventL() |
|
274 { |
|
275 ASSERT(iState==EPending); |
|
276 LOG4(CVwsLog::ENormal,_L("Starting processing of session screen device changed notification event in \"%x,%x\""),iViewId.iAppUid.iUid,iViewId.iViewUid.iUid); |
|
277 |
|
278 if (iSession.State()==CVwsSession::EClientRequestPending) |
|
279 { // Client request already pending so request screen device change notification immediately. |
|
280 RequestScreenDeviceChangeNotificationL(); |
|
281 } |
|
282 else |
|
283 { // Otherwise, wait for call to HandleViewEventRequestL from session. |
|
284 iState=EWaitingForClientViewEventRequest; |
|
285 } |
|
286 } |
|
287 |
|
288 void CVwsSessionEvent_ScreenDeviceChangeNotification::HandleViewEventRequestL(TInt aError,const RMessage2& aMessage) |
|
289 { |
|
290 switch (iState) |
|
291 { |
|
292 default: |
|
293 case EPending: |
|
294 ASSERT(EFalse); |
|
295 break; |
|
296 case EWaitingForClientViewEventRequest: |
|
297 RequestScreenDeviceChangeNotificationL(); |
|
298 break; |
|
299 case EWaitingForAcknowledgementOfScreenDeviceChange: |
|
300 Complete(aError,aMessage); |
|
301 break; |
|
302 } |
|
303 } |
|
304 |
|
305 void CVwsSessionEvent_ScreenDeviceChangeNotification::RequestScreenDeviceChangeNotificationL() |
|
306 { |
|
307 LOG4(CVwsLog::ENormal,_L("Starting processing of session screen device change notification event [active view: \"%x,%x\"]"),iViewId.iAppUid.iUid,iViewId.iViewUid.iUid); |
|
308 |
|
309 iSession.CompleteViewEventL(KErrNone,TVwsViewEvent(TVwsViewEvent::EVwsScreenDeviceChanged,iViewId)); |
|
310 iState=EWaitingForAcknowledgementOfScreenDeviceChange; |
|
311 } |
|
312 |
|
313 void CVwsSessionEvent_ScreenDeviceChangeNotification::Complete(TInt aError,const RMessage2& aMessage) |
|
314 { |
|
315 LOG4(CVwsLog::ENormal,_L("Completed session screen device changed notification event [Client: %x, Client error: %d]"),iSession.AppUid().iUid,aError); |
|
316 ReportRequestCompleted(MVwsSessionObserver::EScreenDeviceChangeNotification,aError,aMessage); |
|
317 ReportEventProcessed(); |
|
318 } |
|
319 |
|
320 |
|
321 // |
|
322 // CVwsSessionEvent_DeactivationNotification. |
|
323 // |
|
324 |
|
325 CVwsSessionEvent_DeactivationNotification::CVwsSessionEvent_DeactivationNotification(CVwsSession& aSession,CVwsEventQueue& aQueue,const TVwsViewId& aViewId,const TVwsViewId& aActiveViewId) |
|
326 :CVwsSessionEvent(aSession,CVwsEvent::ENormal,aQueue),iViewId(aViewId),iActiveViewId(aActiveViewId) |
|
327 { |
|
328 } |
|
329 |
|
330 CVwsSessionEvent_DeactivationNotification::~CVwsSessionEvent_DeactivationNotification() |
|
331 { |
|
332 //When a session event is completed, the observer(ie., the server event) of this session event is made as NULL. |
|
333 if (iObserver) |
|
334 { |
|
335 iObserver->NullifyObserved(); |
|
336 } |
|
337 } |
|
338 |
|
339 void CVwsSessionEvent_DeactivationNotification::ProcessEventL() |
|
340 { |
|
341 LOG3(CVwsLog::ENormal,_L("Starting processing of deactivation notification event in \"%x\""),iSession.AppUid()); |
|
342 if (iSession.State()==CVwsSession::EClientRequestPending) |
|
343 { // Client request already pending so request deactivation notification immediately. |
|
344 RequestDeactivationNotificationL(); |
|
345 } |
|
346 else |
|
347 { // Otherwise, wait for call to HandleViewEventRequestL from session. |
|
348 iState=EWaitingForClientViewEventRequest; |
|
349 } |
|
350 } |
|
351 |
|
352 void CVwsSessionEvent_DeactivationNotification::HandleViewEventRequestL(TInt aError,const RMessage2&) |
|
353 { |
|
354 switch (iState) |
|
355 { |
|
356 default: |
|
357 case EPending: |
|
358 ASSERT(EFalse); |
|
359 break; |
|
360 case EWaitingForClientViewEventRequest: |
|
361 RequestDeactivationNotificationL(); |
|
362 break; |
|
363 case EWaitingForAcknowledgementOfDeactivationNotification: |
|
364 Complete(aError); |
|
365 break; |
|
366 } |
|
367 } |
|
368 |
|
369 void CVwsSessionEvent_DeactivationNotification::RequestDeactivationNotificationL() |
|
370 { |
|
371 LOG6(CVwsLog::ENormal,_L("Starting processing of session deactivation notification event [ deactivated view \"%x,%x\", new active view: \"%x,%x\"]"), |
|
372 iViewId.iAppUid.iUid,iViewId.iViewUid.iUid,iActiveViewId.iAppUid.iUid,iActiveViewId.iViewUid.iUid); |
|
373 |
|
374 iSession.CompleteViewEventL(KErrNone,TVwsViewEvent(TVwsViewEvent::EVwsDeactivationNotification,iViewId,iActiveViewId)); |
|
375 iState=EWaitingForAcknowledgementOfDeactivationNotification; |
|
376 } |
|
377 |
|
378 #ifdef _DEBUG |
|
379 void CVwsSessionEvent_DeactivationNotification::Complete(TInt aError) |
|
380 #else |
|
381 void CVwsSessionEvent_DeactivationNotification::Complete(TInt /*aError*/) |
|
382 #endif //_DEBUG |
|
383 { |
|
384 LOG4(CVwsLog::ENormal,_L("Completed session deactivation notification event [Client: %x, Client error: %d]"),iSession.AppUid().iUid,aError); |
|
385 ReportEventProcessed(); |
|
386 |
|
387 // Disable unused parameter warning |
|
388 #pragma warning (disable: 4100) |
|
389 } |
|
390 #pragma warning (default: 4100) |
|
391 |
|
392 |
|
393 // |
|
394 // CVwsSessionEvent_ActivationNotification. |
|
395 // |
|
396 |
|
397 CVwsSessionEvent_ActivationNotification::CVwsSessionEvent_ActivationNotification(CVwsSession& aSession,CVwsEventQueue& aQueue,const TVwsViewId& aViewId,const TVwsViewId& aViewToBeDeactivatedId) |
|
398 :CVwsSessionEvent(aSession,CVwsEvent::ENormal,aQueue),iViewId(aViewId),iViewToBeDeactivatedId(aViewToBeDeactivatedId) |
|
399 { |
|
400 } |
|
401 |
|
402 CVwsSessionEvent_ActivationNotification::~CVwsSessionEvent_ActivationNotification() |
|
403 { |
|
404 //When a session event is completed, the observer(ie., the server event) of this session event is made as NULL. |
|
405 if (iObserver) |
|
406 { |
|
407 iObserver->NullifyObserved(); |
|
408 } |
|
409 } |
|
410 |
|
411 void CVwsSessionEvent_ActivationNotification::ProcessEventL() |
|
412 { |
|
413 LOG3(CVwsLog::ENormal,_L("Starting processing of activation notification event in \"%x\""),iSession.AppUid()); |
|
414 |
|
415 if (iSession.State()==CVwsSession::EClientRequestPending) |
|
416 { // Client request already pending so request activation notification immediately. |
|
417 RequestActivationNotificationL(); |
|
418 } |
|
419 else |
|
420 { // Otherwise, wait for call to HandleViewEventRequestL from session. |
|
421 iState=EWaitingForClientViewEventRequest; |
|
422 } |
|
423 } |
|
424 |
|
425 void CVwsSessionEvent_ActivationNotification::HandleViewEventRequestL(TInt aError,const RMessage2&) |
|
426 { |
|
427 switch (iState) |
|
428 { |
|
429 default: |
|
430 case EPending: |
|
431 ASSERT(EFalse); |
|
432 break; |
|
433 case EWaitingForClientViewEventRequest: |
|
434 RequestActivationNotificationL(); |
|
435 break; |
|
436 case EWaitingForAcknowledgementOfActivationNotification: |
|
437 Complete(aError); |
|
438 break; |
|
439 } |
|
440 } |
|
441 |
|
442 void CVwsSessionEvent_ActivationNotification::RequestActivationNotificationL() |
|
443 { |
|
444 LOG6(CVwsLog::ENormal,_L("Starting processing of session activation notification event [ new active view \"%x,%x\", view to be deactivationprevious view: \"%x,%x\"]"), |
|
445 iViewId.iAppUid.iUid,iViewId.iViewUid.iUid,iViewToBeDeactivatedId.iAppUid.iUid,iViewToBeDeactivatedId.iViewUid.iUid); |
|
446 |
|
447 iSession.CompleteViewEventL(KErrNone,TVwsViewEvent(TVwsViewEvent::EVwsActivationNotification,iViewId,iViewToBeDeactivatedId)); |
|
448 iState=EWaitingForAcknowledgementOfActivationNotification; |
|
449 } |
|
450 #ifdef _DEBUG |
|
451 void CVwsSessionEvent_ActivationNotification::Complete(TInt aError) |
|
452 #else |
|
453 void CVwsSessionEvent_ActivationNotification::Complete(TInt /*aError*/) |
|
454 #endif //_DEBUG |
|
455 { |
|
456 LOG4(CVwsLog::ENormal,_L("Completed session activation notification event [Client: %x, Client error: %d]"),iSession.AppUid().iUid,aError); |
|
457 ReportEventProcessed(); |
|
458 |
|
459 // Disable unused parameter warning |
|
460 #pragma warning (disable: 4100) |
|
461 } |
|
462 #pragma warning (default: 4100) |