|
1 /* |
|
2 * Copyright (c) 2008-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: Adds a border to icons in visual lists |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 * @internal reviewed 31/07/2007 by Rowland Cook |
|
23 */ |
|
24 |
|
25 |
|
26 #ifndef C_GLXBORDERICONMANAGER_H |
|
27 #define C_GLXBORDERICONMANAGER_H |
|
28 |
|
29 #include <e32base.h> |
|
30 |
|
31 #include "glxiconmanager.h" |
|
32 |
|
33 /** |
|
34 * CGlxBorderIconManager |
|
35 * |
|
36 * Icon manager for visuals |
|
37 * Handles adding video icon if required. |
|
38 * If thumbnail not present look for icon attribute |
|
39 * @author D Schofield |
|
40 * @lib glxvisuallistmanager |
|
41 */ |
|
42 struct TIconInfo; |
|
43 class CAlfVisual; |
|
44 class TGlxMediaId; |
|
45 class CGlxMedia; |
|
46 class CAlfBorderBrush; |
|
47 |
|
48 NONSHARABLE_CLASS( CGlxBorderIconManager ) : public CGlxIconManager |
|
49 { |
|
50 public: |
|
51 /** |
|
52 * Static constructor |
|
53 * @param aMediaList reference to media list |
|
54 * @param aVisualList reference to associated visual list |
|
55 * @return pointer to CGlxVideoIconManager instance |
|
56 */ |
|
57 IMPORT_C static CGlxBorderIconManager* NewL(MGlxMediaList& aMediaList, |
|
58 MGlxVisualList& aVisualList); |
|
59 /** |
|
60 * Destructor |
|
61 */ |
|
62 ~CGlxBorderIconManager(); |
|
63 |
|
64 /** |
|
65 *Get the cached color and set it as the thumbnail border color. |
|
66 */ |
|
67 IMPORT_C void SetThumbnailBorderColor(); |
|
68 private: // from MGlxVisualListObserver |
|
69 void HandleVisualAddedL( CAlfVisual* aVisual, TInt aIndex, MGlxVisualList* aList ); |
|
70 |
|
71 private: |
|
72 /** |
|
73 * Constructor |
|
74 * @param aMediaList reference to media list |
|
75 * @param aVisualList reference to associated visual list |
|
76 */ |
|
77 CGlxBorderIconManager(MGlxMediaList& aMediaList, |
|
78 MGlxVisualList& aVisualList); |
|
79 |
|
80 /** |
|
81 * 2nd phase constructor |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 /** |
|
86 * Add a border brush to the visual] |
|
87 * @param aVisual Visual to add the border to |
|
88 */ |
|
89 void AddBorderBrushL(CAlfVisual* aVisual); |
|
90 |
|
91 private: |
|
92 /// Owned: the border brush |
|
93 CAlfBorderBrush* iBorderBrush; |
|
94 }; |
|
95 |
|
96 #endif // C_GLXBORDERICONMANAGER_H |