equal
deleted
inserted
replaced
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
144 |
144 |
145 // Pointer events |
145 // Pointer events |
146 inline void PurgePointerEvents(); |
146 inline void PurgePointerEvents(); |
147 |
147 |
148 // Key events |
148 // Key events |
149 inline void PriorityKeyPressed(TInt aHandle, const TKeyData &aKey, TInt aScanCode); |
149 inline void PriorityKeyPressed(TInt aHandle, const TKeyEvent &aKeyEvent); |
150 |
150 |
151 // Notification of misc events |
151 // Notification of misc events |
152 void AddNotificationL(TInt aKey, const RMessage2& aClientMsg); |
152 void AddNotificationL(TInt aKey, const RMessage2& aClientMsg); |
153 void CompleteNotification(TInt aKey, TInt aReason); |
153 void CompleteNotification(TInt aKey, TInt aReason); |
154 inline void NotifyScreenDeviceDeleted(DWsScreenDevice* aDeletedScreenDevice); |
154 inline void NotifyScreenDeviceDeleted(DWsScreenDevice* aDeletedScreenDevice); |
166 void SetRetryFlag(TEventCode aEventCode); |
166 void SetRetryFlag(TEventCode aEventCode); |
167 void RemoveRetryFlag(TEventCode aEventCode); |
167 void RemoveRetryFlag(TEventCode aEventCode); |
168 TBool RetryEvent(TEventCode aEventCode); |
168 TBool RetryEvent(TEventCode aEventCode); |
169 |
169 |
170 inline void WgMsgQueueOverflow();// Set flag window group message queue is overflow and has pending messages |
170 inline void WgMsgQueueOverflow();// Set flag window group message queue is overflow and has pending messages |
|
171 |
|
172 //Get orientation value that app indicated |
|
173 TInt GetIndicatedAppOrientation(); |
171 |
174 |
172 private: // from MWsClient |
175 private: // from MWsClient |
173 TInt SendMessage(const CWsGraphicDrawer* aOnBehalfOf, const TDesC8& aData); |
176 TInt SendMessage(const CWsGraphicDrawer* aOnBehalfOf, const TDesC8& aData); |
174 TInt SendMessage(const CWsGraphicDrawer* aOnBehalfOf, CWsMessageData& aData); |
177 TInt SendMessage(const CWsGraphicDrawer* aOnBehalfOf, CWsMessageData& aData); |
175 |
178 |
253 TInt DebugReturnFlags(TInt aReplyBufSize, const MWsElement* aElement, TInt aFlags=0) const; |
256 TInt DebugReturnFlags(TInt aReplyBufSize, const MWsElement* aElement, TInt aFlags=0) const; |
254 TInt DebugReturnRegion(TInt aReplyBufSize, const TRegion* aRegion, TInt aErrCodeIfEmpty) const; |
257 TInt DebugReturnRegion(TInt aReplyBufSize, const TRegion* aRegion, TInt aErrCodeIfEmpty) const; |
255 |
258 |
256 // Misc |
259 // Misc |
257 void SetComputeMode(RWsSession::TComputeMode aComputeMode); |
260 void SetComputeMode(RWsSession::TComputeMode aComputeMode); |
|
261 |
|
262 //Set orientation that application indicated |
|
263 void IndicateAppOrientation(TRenderOrientation aOrientation); |
|
264 |
258 public: |
265 public: |
259 static TWsCmdHeaderBase iCurrentCommand; |
266 static TWsCmdHeaderBase iCurrentCommand; |
260 private: |
267 private: |
261 class TWsCursorArrayItem |
268 class TWsCursorArrayItem |
262 { |
269 { |
291 mutable TInt iPanicReason; |
298 mutable TInt iPanicReason; |
292 mutable TUint iInternalFlags; |
299 mutable TUint iInternalFlags; |
293 RMessage2 iClientMessage; |
300 RMessage2 iClientMessage; |
294 RHandleBase* iResponseHandle; |
301 RHandleBase* iResponseHandle; |
295 TInt iMessageIdSeq; |
302 TInt iMessageIdSeq; |
|
303 TInt iIndicatedAppOrientation; |
296 |
304 |
297 //Members for procerssing command buffer |
305 //Members for procerssing command buffer |
298 static CWsClient* iCurrentClient; // Client who's buffer is currently being processed |
306 static CWsClient* iCurrentClient; // Client who's buffer is currently being processed |
299 static TInt iReply; // Value to reply |
307 static TInt iReply; // Value to reply |
300 static TInt iReplyOffset; // Offset into reply to write next block of data |
308 static TInt iReplyOffset; // Offset into reply to write next block of data |
361 {iPriorityKeyEvent->CancelRead();} |
369 {iPriorityKeyEvent->CancelRead();} |
362 |
370 |
363 inline void CWsClient::HandleClientRequestForPriorityKeyData() |
371 inline void CWsClient::HandleClientRequestForPriorityKeyData() |
364 {iPriorityKeyEvent->GetData();} |
372 {iPriorityKeyEvent->GetData();} |
365 |
373 |
366 inline void CWsClient::PriorityKeyPressed(TInt aHandle, const TKeyData &aKey, TInt aScanCode) |
374 inline void CWsClient::PriorityKeyPressed(TInt aHandle, const TKeyEvent &aKeyEvent) |
367 {iPriorityKeyEvent->PriorityKey(aHandle,aKey,aScanCode);} |
375 {iPriorityKeyEvent->PriorityKey(aHandle, aKeyEvent);} |
368 |
376 |
369 inline TInt CWsClient::ObjectHandle(const CWsObject* aThis) const |
377 inline TInt CWsClient::ObjectHandle(const CWsObject* aThis) const |
370 {return(iObjectIndex->At(aThis));} |
378 {return(iObjectIndex->At(aThis));} |
371 |
379 |
372 #if defined(__WINS__) |
380 #if defined(__WINS__) |