equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 "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 * Helper class to put animation to contextPane. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BROWSERANIMATION_H |
|
22 #define BROWSERANIMATION_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <E32BASE.H> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 class CAknBitmapAnimation; |
|
31 class CFbsBitmap; |
|
32 class CEikImage; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Encapsulates the animation feature of the browser. |
|
38 */ |
|
39 class CBrowserAnimation : public CBase |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * @param aResourceId BMPANIM_DATA resource |
|
46 */ |
|
47 static CBrowserAnimation* NewL( TInt aResourceId ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CBrowserAnimation(); |
|
53 |
|
54 public: // New functions |
|
55 |
|
56 /** |
|
57 * Starts animation. |
|
58 */ |
|
59 void StartL(); |
|
60 |
|
61 /** |
|
62 * Stops animation. |
|
63 */ |
|
64 void StopL(); |
|
65 |
|
66 TBool IsRunning() { return iIsRunning; }; |
|
67 |
|
68 protected: |
|
69 |
|
70 /** |
|
71 * constructor that can leave. |
|
72 * @param aResourceId BMPANIM_DATA resource |
|
73 */ |
|
74 void ConstructL( TInt aResourceId ); |
|
75 |
|
76 private: // Data |
|
77 |
|
78 CAknBitmapAnimation* iAnimation; // animation object |
|
79 |
|
80 TBool iIsRunning; // Animation is running |
|
81 }; |
|
82 |
|
83 #endif |
|
84 |
|
85 // End of File |