|
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_ANIM_FOR_MCLASS_H__) |
|
20 #define __T_GRAPHICS_WSERV_ANIM_FOR_MCLASS_H__ |
|
21 |
|
22 #include "T_RAnimChild.h" |
|
23 #include "DataWrapperBase.h" |
|
24 |
|
25 #define KIpcArgNum 3 |
|
26 |
|
27 class CT_DataAnimForMClass : public CDataWrapperBase |
|
28 { |
|
29 public: |
|
30 static CT_DataAnimForMClass* NewL(); |
|
31 |
|
32 ~CT_DataAnimForMClass(); |
|
33 |
|
34 virtual TAny* GetObject(); |
|
35 virtual void SetObjectL(TAny* aAny); |
|
36 virtual void DisownObjectL(); |
|
37 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection,const TInt); |
|
38 //void RunL(CActive* aActive, TInt aIndex); |
|
39 |
|
40 protected: |
|
41 CT_DataAnimForMClass(); |
|
42 void ConstructL(); |
|
43 |
|
44 private: |
|
45 void DestroyData(); |
|
46 |
|
47 void DoCmdnewL(const TDesC& aSection); |
|
48 void DoCmdConstructL(const TDesC& aSection); |
|
49 void DoCmdCommandReplyL(const TDesC& aSection); |
|
50 void DoCmdCommand(const TDesC& aSection); |
|
51 void DoCmdAsyncCommandReply(const TDesC& aSection, const TInt aAsyncErrorIndex); |
|
52 void DoCmdClose(); |
|
53 void DoCmdDestroy(); |
|
54 void DoCmdDestructor(); |
|
55 |
|
56 TDesC8& CopyToSendBuf(const TDesC& buf); |
|
57 |
|
58 TBool GetIpcArg(const TDesC& aSection); |
|
59 |
|
60 TBool CheckIpcArg(const TDesC& aSection); |
|
61 TBool CheckAnimateInterval(const TDesC& aSection); |
|
62 void ResetIpcArg(); |
|
63 //MAnimGeneralFunctions |
|
64 void DoCmdRetrieveResult(const TDesC& aSectName , const TInt& datOpcode); |
|
65 |
|
66 void DoCmdGeneralAnimate(const TDesC& aSectName , const TInt& datOpcode); |
|
67 void DoCmdGeneralClient(const TDesC& aSectName , const TInt& datOpcode ); |
|
68 void DoCmdGeneralFlashStateOn(const TDesC& aSectName , const TInt& datOpcode); |
|
69 void DoCmdGeneralPanic(const TDesC& aSectName, const TInt& datOpcode); |
|
70 void DoCmdGeneralScreenDevice(const TDesC& aSectName , const TInt& datOpcode); |
|
71 void DoCmdGeneralWindowExtension(const TDesC& aSectName , const TInt& datOpcode); |
|
72 void DoCmdGeneralEventExtension(const TDesC& aSectName , const TInt& datOpcode); |
|
73 void DoCmdGeneralExtendedInterface(const TDesC& aSectName , const TInt& datOpcode); |
|
74 void DoCmdGeneralNumOfExtInterfaces(const TDesC& aSectName , const TInt& datOpcode); |
|
75 void DoCmdGeneralGetRawEvents(const TDesC& aSectName , const TInt& datOpcode); |
|
76 void DoCmdGeneralPostRawEvent(const TDesC& aSectName , const TInt& datOpcode); |
|
77 void DoCmdGeneralPostKeyEventL(const TDesC& aSectName , const TInt& datOpcode); |
|
78 void DoCmdGeneralSetSync(const TDesC& aSectName , const TInt& datOpcode); |
|
79 void DoCmdGeneralSync(const TDesC& aSectName , const TInt& datOpcode); |
|
80 void DoCmdGeneralSetInterval(const TDesC& aSectName, const TInt& datOpcode); |
|
81 void DoCmdGeneralSetNextInterval(const TDesC& aSectName, const TInt& datOpcode); |
|
82 void DoCmdGeneralSystemTime(const TDesC& aSectName, const TInt& datOpcode); |
|
83 void DoCmdGeneralRegisterForNotis(const TDesC& aSectName , const TInt& datOpcode); |
|
84 void DoCmdGeneralMessage(const TDesC& aSectName , const TInt& datOpcode); |
|
85 void DoCmdGeneralDuplicateBitmapL(const TDesC& aSectName , const TInt& datOpcode); |
|
86 void DoCmdGeneralDuplicateFontL(const TDesC& aSectName, const TInt& datOpcode); |
|
87 void DoCmdGeneralCloseFontL(const TDesC& aSectName , const TInt& datOpcode); |
|
88 void DoCmdGeneralReplyBuf8(const TDesC& aSectName, const TInt& datOpcode); |
|
89 void DoCmdGeneralReplyBuf16(const TDesC& aSectName, const TInt& datOpcode); |
|
90 |
|
91 void DoCmdSpriteGetSpriteMember(const TDesC& aSectName , const TInt& datOpcode); |
|
92 void DoCmdSpriteUpdateMember(const TDesC& aSectName, const TInt& datOpcode); |
|
93 void DoCmdSpriteActivate(const TDesC& aSectName , const TInt& datOpcode); |
|
94 void DoCmdSpriteSpriteCanBeSeen(const TDesC& aSectName , const TInt& datOpcode); |
|
95 void DoCmdSpriteSizeChangedL(const TDesC& aSectName , const TInt& datOpcode); |
|
96 void DoCmdSpriteSetPosition(const TDesC& aSectName , const TInt& datOpcode); |
|
97 |
|
98 //MAnimWindowFunctions |
|
99 void DoWindowActivateGc(TInt aOpcode); |
|
100 void DoWindowSetRect(TInt aOpcode,const TDesC& aSection); |
|
101 void DoWindowWindowSizeL(TInt aOpcode,const TDesC& aSection); |
|
102 void DoWindowIsHidden(TInt aOpcode,const TDesC& aSection); |
|
103 void DoWindowSetVisible(TInt aOpcode,const TDesC& aSection); |
|
104 void DoWindowInvalidate(TInt aOpcode,const TDesC& aSection); |
|
105 void DoWindowParametersL(TInt aOpcode,const TDesC& aSection); |
|
106 void DoWindowVisibleRegion(TInt aOpcode,const TDesC& aSection); |
|
107 void GetWindowRetrieveResult(TInt aOpcode,const TDesC& aSection); |
|
108 |
|
109 //MAnimGeneralFunctionsWindowExtension |
|
110 void DoGeneralExtScreensL(TInt aOpcode,const TDesC& aSection); |
|
111 void DoGeneralExtFocusScreensL(TInt aOpcode,const TDesC& aSection); |
|
112 void DoGeneralExtSetFocusScreen(TInt aOpcode,const TDesC& aSection); |
|
113 void DoGeneralExtWindowGroupsL(TInt aOpcode,const TDesC& aSection); |
|
114 void DoGeneralExtWindowGroupInfoL(TInt aOpcode,const TDesC& aSection); |
|
115 void DoGeneralExtWindowGroupNameL(TInt aOpcode,const TDesC& aSection); |
|
116 void DoGeneralExtSetOrdinalPositionL(TInt aOpcode,const TDesC& aSection); |
|
117 void DoGeneralExtIsFocusableL(TInt aOpcode,const TDesC& aSection); |
|
118 |
|
119 //MAnimFreeTimerWindowFunctions |
|
120 void DoFreeTimerWinDeactivateGc(TInt aOpcode); |
|
121 void DoFreeTimerWinUpdate(TInt aOpcode); |
|
122 |
|
123 //Common Util |
|
124 void DoCmdEatupMemory(const TInt& datOpcode); |
|
125 void DoCmdFreeEatenMemory(const TInt& datOpcode); |
|
126 private: |
|
127 CActiveCallback* iActiveCallback; |
|
128 T_RAnimChild* iAnim; |
|
129 |
|
130 TIpcArgs iIpcArgs; |
|
131 |
|
132 RBuf8 iSendBuf; |
|
133 RBuf iIpcBuf[KIpcArgNum]; |
|
134 |
|
135 TBuf<200> iAsyncCmdSection; |
|
136 }; |
|
137 |
|
138 |
|
139 #endif /* __T_GRAPHICS_WSERV_TESTANIM_H__ */ |