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 "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-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_WSGRAPHICBITMAPANIMATION_H__) |
|
20 #define __T_GRAPHICS_WSERV_WSGRAPHICBITMAPANIMATION_H__ |
|
21 |
|
22 #include <w32stdgraphic.h> |
|
23 #include "T_DataWsGraphic.h" |
|
24 /** |
|
25 * Test Active Notification class |
|
26 * |
|
27 */ |
|
28 class CT_DataWsGraphicBitmapAnimation : public CT_DataWsGraphic |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * Two phase constructor |
|
33 */ |
|
34 static CT_DataWsGraphicBitmapAnimation* NewL(); |
|
35 |
|
36 /** |
|
37 * Public destructor |
|
38 */ |
|
39 ~CT_DataWsGraphicBitmapAnimation(); |
|
40 |
|
41 /** |
|
42 * Return a pointer to the object that the data wraps |
|
43 * |
|
44 * \return pointer to the object that the data wraps |
|
45 */ |
|
46 virtual TAny* GetObject() { return iWsGraphicBitmapAnimation; } |
|
47 |
|
48 /** |
|
49 * Set the object that the data wraps |
|
50 * |
|
51 * @param aObject object that the wrapper is testing |
|
52 * |
|
53 */ |
|
54 virtual void SetObjectL(TAny* aAny); |
|
55 |
|
56 /** |
|
57 * The object will no longer be owned by this |
|
58 * |
|
59 * @leave KErrNotSupported if the the function is not supported |
|
60 */ |
|
61 virtual void DisownObjectL(); |
|
62 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex); |
|
63 |
|
64 protected: |
|
65 /** |
|
66 * Protected constructor. First phase construction |
|
67 */ |
|
68 CT_DataWsGraphicBitmapAnimation(); |
|
69 |
|
70 /** |
|
71 * Second phase construction |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 //from CT_DataWsGraphic |
|
76 CWsGraphic* GetWsGraphic() const {return iWsGraphicBitmapAnimation;}; |
|
77 TInt Share(TSecureId aClientId); |
|
78 TInt ShareGlobally(); |
|
79 TInt UnShare(TSecureId aClientId); |
|
80 TInt UnShareGlobally(); |
|
81 |
|
82 private: |
|
83 void DoCmdDestroy(); |
|
84 void DoCmdNewL(const TDesC& aSection); |
|
85 void Util_StartAnimTesterClientL(const TDesC& aSection); |
|
86 void Util_CloseAnimTesterClientL(const TDesC& aSection); |
|
87 |
|
88 private: |
|
89 CWsGraphicBitmapAnimation* iWsGraphicBitmapAnimation; |
|
90 }; |
|
91 |
|
92 #endif /* __T_GRAPHICS_WSERV_WSGRAPHICBITMAPANIMATION_H__ */ |
|