|
1 /* |
|
2 * Copyright (c) 2005-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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #if (!defined __T_GRAPHICS_WSERV_SESSION_H__) |
|
20 #define __T_GRAPHICS_WSERV_SESSION_H__ |
|
21 |
|
22 // User Includes |
|
23 #include "DataWrapperBase.h" |
|
24 #include "T_DataWsClientClass.h" |
|
25 |
|
26 /** |
|
27 * Test Active Notification class |
|
28 * |
|
29 */ |
|
30 class CT_DataWsSession : public CDataWrapperBase, public CT_DataWsClientClass |
|
31 { |
|
32 public: |
|
33 static CT_DataWsSession* NewL(); |
|
34 |
|
35 ~CT_DataWsSession(); |
|
36 |
|
37 virtual TAny* GetObject() { return iWsSession; } |
|
38 |
|
39 virtual void SetObjectL(TAny* aAny); |
|
40 |
|
41 virtual void DisownObjectL(); |
|
42 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
43 |
|
44 protected: |
|
45 CT_DataWsSession(); |
|
46 |
|
47 void ConstructL(); |
|
48 |
|
49 void RunL(CActive* aActive, TInt aIndex); |
|
50 void DoCancel(CActive* aActive, TInt aIndex); |
|
51 |
|
52 virtual MWsClientClass* GetClientClass() const; |
|
53 |
|
54 private: |
|
55 /** |
|
56 * Helper methods |
|
57 */ |
|
58 void DestroyData(); |
|
59 void DoCmdnew(); |
|
60 void DoCmdConnectL(const TDesC& aSection); |
|
61 void DoCmdClose(); |
|
62 void DoCmdVersion(const TDesC& aSection); |
|
63 void DoCmdSetHotKey(const TDesC& aSection); |
|
64 void DoCmdClearHotKeys(const TDesC& aSection); |
|
65 void DoCmdRestoreDefaultHotKey(const TDesC& aSection); |
|
66 void DoCmdEventReady(const TDesC& aSection, TInt aAsyncErrorIndex); |
|
67 void DoCmdEventReadyCancel(); |
|
68 void DoCmdGetEventL(const TDesC& aSection); |
|
69 void DoCmdPurgePointerEvents(); |
|
70 void DoCmdRedrawReady(const TDesC& aSection, TInt aAsyncErrorIndex); |
|
71 void DoCmdRedrawReadyCancel(); |
|
72 void DoCmdGetRedrawL(const TDesC& aSection); |
|
73 void DoCmdPriorityKeyReady(const TDesC& aSection, TInt aAsyncErrorIndex); |
|
74 void DoCmdPriorityKeyReadyCancel(); |
|
75 void DoCmdGetPriorityKeyL(const TDesC& aSection); |
|
76 void DoCmdFlush(); |
|
77 void DoCmdSetAutoFlush(const TDesC& aSection); |
|
78 void DoCmdSetKeyboardRepeatRate(const TDesC& aSection); |
|
79 void DoCmdGetKeyboardRepeatRate(const TDesC& aSection); |
|
80 void DoCmdGetDoubleClickSettings(const TDesC& aSection); |
|
81 void DoCmdSetDoubleClick(const TDesC& aSection); |
|
82 void DoCmdNumWindowGroups(const TDesC& aSection); |
|
83 void DoCmdWindowGroupListL(const TDesC& aSection); |
|
84 void DoCmdGetFocusWindowGroup(const TDesC& aSection); |
|
85 void DoCmdGetDefaultOwningWindow(const TDesC& aSection); |
|
86 void DoCmdSetWindowGroupOrdinalPosition(const TDesC& aSection); |
|
87 void DoCmdGetWindowGroupClientThreadId(const TDesC& aSection); |
|
88 void DoCmdGetWindowGroupHandle(const TDesC& aSection); |
|
89 void DoCmdGetWindowGroupOrdinalPriority(const TDesC& aSection); |
|
90 void DoCmdGetWindowGroupNameFromIdentifier(const TDesC& aSection); |
|
91 void DoCmdFindWindowGroupIdentifier(const TDesC& aSection); |
|
92 void DoCmdFetchMessage(const TDesC& aSection); |
|
93 void DoCmdSetShadowVector(const TDesC& aSection); |
|
94 void DoCmdShadowVector(const TDesC& aSection); |
|
95 void DoCmdSetBackgroundColor(const TDesC& aSection); |
|
96 void DoCmdGetBackgroundColor(const TDesC& aSection); |
|
97 void DoCmdSetSystemPointerCursor(const TDesC& aSection); |
|
98 void DoCmdClearSystemPointerCursor(const TDesC& aSection); |
|
99 void DoCmdClaimSystemPointerCursorList(); |
|
100 void DoCmdFreeSystemPointerCursorList(); |
|
101 void DoCmdSetCustomTextCursorL(const TDesC& aSection); |
|
102 void DoCmdResourceCount(const TDesC& aSection); |
|
103 void DoCmdPasswordEntered(); |
|
104 void DoCmdComputeMode(const TDesC& aSection); |
|
105 void DoCmdHeapCount(const TDesC& aSection); |
|
106 void DoCmdSetModifierState(const TDesC& aSection); |
|
107 void DoCmdGetModifierState(const TDesC& aSection); |
|
108 void DoCmdRequestOffEventsL(const TDesC& aSection); |
|
109 void DoCmdGetDefModeMaxNumColors(const TDesC& aSection); |
|
110 void DoCmdGetColorModeListL(const TDesC& aSection); |
|
111 void DoCmdSetPointerCursorArea(const TDesC& aSection); |
|
112 void DoCmdPointerCursorArea(const TDesC& aSection); |
|
113 void DoCmdSetPointerCursorMode(const TDesC& aSection); |
|
114 void DoCmdSetClientCursorMode(const TDesC& aSection); |
|
115 void DoCmdPointerCursorMode(const TDesC& aSection); |
|
116 void DoCmdSetDefaultSystemPointerCursor(const TDesC& aSection); |
|
117 void DoCmdClearDefaultSystemPointerCursor(); |
|
118 void DoCmdSetPointerCursorPosition(const TDesC& aSection); |
|
119 void DoCmdPointerCursorPosition(const TDesC& aSection); |
|
120 void DoCmdSetDefaultFadingParameters(const TDesC& aSection); |
|
121 void DoCmdPrepareForSwitchOff(); |
|
122 void DoCmdSetBufferSizeL(const TDesC& aSection); |
|
123 void DoCmdSetMaxBufferSizeL(const TDesC& aSection); |
|
124 void DoCmdSetSystemFaded(const TDesC& aSection); |
|
125 void DoCmdSetFocusScreen(const TDesC& aSection); |
|
126 void DoCmdGetFocusScreen(const TDesC& aSection); |
|
127 void DoCmdClearAllRedrawStores(); |
|
128 void DoCmdLogCommand(const TDesC& aSection); |
|
129 void DoCmdLogMessage(const TDesC& aSection); |
|
130 void DoCmdNumberOfScreens(const TDesC& aSection); |
|
131 void DoCmdSimulateRawEvent(const TDesC& aSection); |
|
132 void DoCmdSimulateKeyEvent(const TDesC& aSection); |
|
133 |
|
134 // CActiveCallback support |
|
135 void RunEventReady(const TInt aIndex); |
|
136 void DoCancelEventReady(const TInt aIndex); |
|
137 |
|
138 void RunPriorityKeyReady(const TInt aIndex); |
|
139 void DoCancelPriorityKeyReady(const TInt aIndex); |
|
140 |
|
141 void RunRedrawReady(const TInt aIndex); |
|
142 void DoCancelRedrawReady(const TInt aIndex); |
|
143 |
|
144 private: |
|
145 RWsSession* iWsSession; |
|
146 /** vaiable that temporarily stores value of server resource count that is set |
|
147 * by iSession->ResourceCount() |
|
148 */ |
|
149 TInt iResourceCount; |
|
150 TInt iNumWinGroup; |
|
151 TInt iColorModeCount; |
|
152 TInt iWindowGroupIdentifier; |
|
153 |
|
154 /** Active object for EventReady async operation */ |
|
155 CActiveCallback* iActiveEventReady; |
|
156 |
|
157 /** Active object for PriorityKeyReady async operation */ |
|
158 CActiveCallback* iActivePriorityKeyReady; |
|
159 |
|
160 /** Active object for RedrawReady async operation */ |
|
161 CActiveCallback* iActiveRedrawReady; |
|
162 |
|
163 /** Keyboard repeat rate data */ |
|
164 TTimeIntervalMicroSeconds32 iKeyboardRepeateRateInitialTime; |
|
165 TTimeIntervalMicroSeconds32 iKeyboardRepeateRateTime; |
|
166 }; |
|
167 |
|
168 #endif /* __T_GRAPHICS_WSERV_SESSION_H__ */ |