|
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_TESTANIM_H__) |
|
20 #define __T_GRAPHICS_WSERV_TESTANIM_H__ |
|
21 |
|
22 #include "T_RAnimChild.h" |
|
23 #include "DataWrapperBase.h" |
|
24 |
|
25 #define KIpcArgNum 3 |
|
26 |
|
27 class CT_DataAnim : public CDataWrapperBase |
|
28 { |
|
29 public: |
|
30 static CT_DataAnim* NewL(); |
|
31 |
|
32 ~CT_DataAnim(); |
|
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 aAsyncErrorIndex); |
|
38 void RunL(CActive* aActive, TInt aIndex); |
|
39 |
|
40 protected: |
|
41 CT_DataAnim(); |
|
42 void ConstructL(); |
|
43 |
|
44 private: |
|
45 void DestroyData(); |
|
46 |
|
47 void DoCmdnewL(const TDesC& aSection); |
|
48 void DoCmdConstructL(const TDesC& aSection); |
|
49 void DoCmdCommandReply(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 |
|
63 TBool ReadAnimCommand(const TDesC& aSectName, const TDesC& aKeyName, TInt& aCommand); |
|
64 TBool ReadAnimType(const TDesC& aSectName, const TDesC& aKeyName, TInt& aType); |
|
65 private: |
|
66 CActiveCallback* iActiveCallback; |
|
67 T_RAnimChild* iAnim; |
|
68 |
|
69 TIpcArgs iIpcArgs; |
|
70 |
|
71 RBuf8 iSendBuf; |
|
72 RBuf iIpcBuf[KIpcArgNum]; |
|
73 |
|
74 TBuf<200> iAsyncCmdSection; |
|
75 }; |
|
76 |
|
77 |
|
78 #endif /* __T_GRAPHICS_WSERV_TESTANIM_H__ */ |