|
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: Wraps bubble into one class. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CTELBRANDINGBUBBLE_H |
|
19 #define C_CTELBRANDINGBUBBLE_H |
|
20 |
|
21 #include <telbubblecustomelement.h> |
|
22 |
|
23 class MTelBubbleExtensionData; |
|
24 class CTelBrandingServerHandler; |
|
25 class CTelBubbleCustomElement; |
|
26 class MTelBubbleExtensionObserver; |
|
27 |
|
28 |
|
29 /** |
|
30 * Wraps bubble into one class. |
|
31 * Owns bubble images. |
|
32 * |
|
33 * @since S60 v5.0 |
|
34 */ |
|
35 NONSHARABLE_CLASS( CTelBrandingBubble ) : public CBase |
|
36 { |
|
37 public: |
|
38 static CTelBrandingBubble* NewLC( |
|
39 MTelBubbleExtensionData& aCallData, |
|
40 CTelBrandingServerHandler& aServer ); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 virtual ~CTelBrandingBubble(); |
|
46 |
|
47 |
|
48 public: // New functions |
|
49 TInt BubbleId() const; |
|
50 |
|
51 void AttachElements( MTelBubbleExtensionObserver& aObs ) const; |
|
52 |
|
53 void DetechElements( MTelBubbleExtensionObserver& aObs ) const; |
|
54 |
|
55 private: |
|
56 /** |
|
57 * Creates and adds elements into array |
|
58 */ |
|
59 void CreateCallIndicationElementL( |
|
60 CTelBrandingServerHandler& aServer, |
|
61 CTelBubbleCustomElement::TElementType aType ); |
|
62 |
|
63 /** |
|
64 * Creates and adds elements into array in priority order. |
|
65 * -Element with most highest priority last must be added last. |
|
66 * -Lowest priority first. |
|
67 */ |
|
68 void AddBrandingImageWithPriorityL( |
|
69 const TDesC8& aImageType, |
|
70 CTelBrandingServerHandler& aServer, |
|
71 CTelBubbleCustomElement::TElementType aType ); |
|
72 |
|
73 /** |
|
74 * Helper, adds element to array |
|
75 */ |
|
76 void AddElementToArrayL( CTelBubbleCustomElement* aElement ); |
|
77 |
|
78 private: |
|
79 CTelBrandingBubble( MTelBubbleExtensionData& aCallData ); |
|
80 |
|
81 void ConstructL( |
|
82 CTelBrandingServerHandler& aServer ); |
|
83 |
|
84 private: // data |
|
85 /** |
|
86 * Bubble specific data |
|
87 */ |
|
88 MTelBubbleExtensionData& iCallData; |
|
89 |
|
90 /** |
|
91 * Owned images |
|
92 */ |
|
93 RPointerArray<CTelBubbleCustomElement> iElements; |
|
94 }; |
|
95 |
|
96 |
|
97 #endif // C_CTELBRANDINGBUBBLE_H |