|
1 /* |
|
2 * Copyright (c) 2008 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: Call status animation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "BMCallStatusAnim.h" |
|
19 #include "BMBubbleImageManager.h" |
|
20 #include "BMBubbleHeader.h" |
|
21 |
|
22 #include <eikimage.h> |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // C++ constructor |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 CBubbleCallStatusAnim::CBubbleCallStatusAnim( |
|
29 CBubbleImageManager& aImageManager ) : |
|
30 iImageManager( aImageManager ) |
|
31 { |
|
32 } |
|
33 |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // ConstructL |
|
37 // --------------------------------------------------------------------------- |
|
38 // |
|
39 void CBubbleCallStatusAnim::ConstructL() |
|
40 { |
|
41 CTelBubbleAnim::ConstructL( 500 ); |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // ReadBubbleHeader |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 void CBubbleCallStatusAnim::ReadBubbleHeader( const CBubbleHeader& aHeader ) |
|
49 { |
|
50 iCallFlags = aHeader.CallFlags(); |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // SetCallFlags |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 void CBubbleCallStatusAnim::SetContainerWindowL( const CCoeControl& aControl ) |
|
58 { |
|
59 CTelBubbleAnim::SetContainerWindowL( aControl ); |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // MakeVisible |
|
64 // --------------------------------------------------------------------------- |
|
65 // |
|
66 void CBubbleCallStatusAnim::MakeVisible(TBool aVisible) |
|
67 { |
|
68 CTelBubbleAnim::MakeVisible( aVisible ); |
|
69 |
|
70 if ( aVisible ) |
|
71 { |
|
72 TRAP_IGNORE( SetAnimationContentL() ); |
|
73 } |
|
74 else |
|
75 { |
|
76 StopAnimation(); |
|
77 Reset(); |
|
78 } |
|
79 } |
|
80 |
|
81 // --------------------------------------------------------------------------- |
|
82 // SetAnimationContentL |
|
83 // --------------------------------------------------------------------------- |
|
84 // |
|
85 void CBubbleCallStatusAnim::SetAnimationContentL() |
|
86 { |
|
87 } |
|
88 |
|
89 // End of file |