|
1 /* |
|
2 * Copyright (c) 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: Branding plug-in specific call indication. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CTELBRANDINGCALLINDICATOR_H |
|
19 #define C_CTELBRANDINGCALLINDICATOR_H |
|
20 |
|
21 #include <telbubbleanim.h> |
|
22 |
|
23 class MTelBubbleExtensionData; |
|
24 class TAknsItemID; |
|
25 |
|
26 |
|
27 /** |
|
28 * Branding plug-in specific call indication. |
|
29 * |
|
30 * @since S60 S60 v5.0 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CTelBrandingCallIndicator ) : |
|
33 public CTelBubbleAnim |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Constructors. |
|
38 */ |
|
39 static CTelBrandingCallIndicator* NewL( |
|
40 MTelBubbleExtensionData& aCallData, CEikImage* aBrand ); |
|
41 static CTelBrandingCallIndicator* NewLC( |
|
42 MTelBubbleExtensionData& aCallData, CEikImage* aBrand ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CTelBrandingCallIndicator(); |
|
48 |
|
49 public: // From CCoeControl |
|
50 void MakeVisible( TBool aVisible ); |
|
51 void Draw(const TRect& aRect) const; |
|
52 void SizeChanged(); |
|
53 |
|
54 private: // New functions |
|
55 void DoVisibleL(); |
|
56 |
|
57 void ShowAnimationL(); |
|
58 |
|
59 void ShowImageL(); |
|
60 |
|
61 void AddBrandedFrameToAnimationL( |
|
62 TAknsItemID aSkinId, |
|
63 TInt aBitmap, |
|
64 TInt aMask ); |
|
65 |
|
66 CEikImage* GetImageL( |
|
67 TAknsItemID aSkinId, |
|
68 TInt aBitmap, |
|
69 TInt aMask ); |
|
70 |
|
71 |
|
72 private: |
|
73 CTelBrandingCallIndicator( |
|
74 MTelBubbleExtensionData& aCallData, CEikImage* aBrand ); |
|
75 |
|
76 void ConstructL(); |
|
77 |
|
78 private: // data |
|
79 // Call information |
|
80 MTelBubbleExtensionData& iCallData; |
|
81 |
|
82 /** |
|
83 * Brand image |
|
84 * Own. |
|
85 */ |
|
86 CEikImage* iBrand; |
|
87 |
|
88 /** |
|
89 * Call indicator image |
|
90 * Own. |
|
91 */ |
|
92 CEikImage* iCallIndicator; |
|
93 }; |
|
94 |
|
95 #endif // C_CTELBRANDINGCALLINDICATOR_H |