|
1 /* |
|
2 * Copyright (c) 2007 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: Implementation of CSAnimImagePlugin class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "sanimimageplugin.h" |
|
20 |
|
21 #include "trace.h" |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // Constructor |
|
27 // |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 EXPORT_C CSAnimImagePlugin::CSAnimImagePlugin( TAny* aConstructionParameters ) |
|
31 : iObserver( |
|
32 *( static_cast<MSAnimObserver*>( aConstructionParameters ) ) ), |
|
33 iDisplayMode( EGray2 ), |
|
34 iFrameDelay( 0 ), |
|
35 iScalingEnabled( ETrue ) |
|
36 { |
|
37 FUNC_LOG; |
|
38 } |
|
39 |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CSAnimImagePlugin::SetDisplayMode |
|
43 // |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 EXPORT_C void CSAnimImagePlugin::SetDisplayMode( const TDisplayMode aDisplayMode ) |
|
47 { |
|
48 FUNC_LOG; |
|
49 |
|
50 iDisplayMode = aDisplayMode; |
|
51 } |
|
52 |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CSAnimImagePlugin::SetSize |
|
56 // |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 EXPORT_C void CSAnimImagePlugin::SetSize( const TSize& aSize ) |
|
60 { |
|
61 FUNC_LOG; |
|
62 |
|
63 iSize = aSize; |
|
64 } |
|
65 |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CSAnimImagePlugin::SetFrameDelay |
|
69 // |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C void CSAnimImagePlugin::SetFrameDelay( |
|
73 const TTimeIntervalMicroSeconds32& aFrameDelay ) |
|
74 { |
|
75 FUNC_LOG; |
|
76 |
|
77 iFrameDelay = aFrameDelay; |
|
78 } |
|
79 |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CSAnimImagePlugin::SetScalingEnabled |
|
83 // |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C void CSAnimImagePlugin::SetScalingEnabled( const TBool aEnable ) |
|
87 { |
|
88 FUNC_LOG; |
|
89 |
|
90 iScalingEnabled = aEnable; |
|
91 } |