|
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 image. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CTELBRANDINGIMAGE_H |
|
19 #define C_CTELBRANDINGIMAGE_H |
|
20 |
|
21 #include <telbubbleimage.h> |
|
22 |
|
23 /** |
|
24 * Used to handle CTelBrandingImage visibility. |
|
25 * Only one image is shown at one time according priority |
|
26 * |
|
27 * @since S60 S60 v5.0 |
|
28 */ |
|
29 NONSHARABLE_CLASS( MTelBrandingPriorityHandler ) |
|
30 { |
|
31 public: |
|
32 virtual void SetVisibilityAllowed( TBool aAllowed ) = 0; |
|
33 |
|
34 }; |
|
35 |
|
36 /** |
|
37 * Branding plug-in specific image. |
|
38 * Uses MTelBrandingPriorityHandler to handle visibility. |
|
39 * Only one image is shown at one time according priority |
|
40 * |
|
41 * @since S60 S60 v5.0 |
|
42 */ |
|
43 NONSHARABLE_CLASS( CTelBrandingImage ): |
|
44 public CTelBubbleImage, |
|
45 public MTelBrandingPriorityHandler |
|
46 { |
|
47 public: |
|
48 /** |
|
49 * Constructors. |
|
50 */ |
|
51 static CTelBrandingImage* NewL(); |
|
52 static CTelBrandingImage* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CTelBrandingImage(); |
|
58 |
|
59 public: // From CCoeControl |
|
60 void MakeVisible( TBool aVisible ); |
|
61 |
|
62 public: // From MTelBrandingPriorityHandler |
|
63 void SetVisibilityAllowed( TBool aAllowed ); |
|
64 |
|
65 public: // New functions |
|
66 void SetLowerPriorityBranding( MTelBrandingPriorityHandler* aHandler ); |
|
67 |
|
68 private: |
|
69 CTelBrandingImage(); |
|
70 |
|
71 void ConstructL(); |
|
72 |
|
73 private: // data |
|
74 // Specifies that is visiblity allowed |
|
75 TBool iVisibilityAllowed; |
|
76 |
|
77 // Specifies lower priority image |
|
78 MTelBrandingPriorityHandler* iLowerPriority; |
|
79 }; |
|
80 |
|
81 #endif // C_CTELBRANDINGIMAGE_H |