|
1 /* |
|
2 * Copyright (c) 2004-2005 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: Icon loader |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CCAICONLOADER_H |
|
20 #define CCAICONLOADER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CColumnListBoxData; |
|
28 class MCASkinVariant; |
|
29 class CGulIcon; |
|
30 class CAknTabGroup; |
|
31 class CCAAppUi; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Class for loading icons. |
|
37 * |
|
38 * @lib chat.app |
|
39 * @since 2.1 |
|
40 */ |
|
41 class CCAIconLoader : public CBase |
|
42 { |
|
43 public: // Constructors and destructors |
|
44 |
|
45 /** |
|
46 * Two-phased constructor |
|
47 * @param aMbmFullPath path for bitmaps |
|
48 * @param aSkinVariant skinvariant. |
|
49 * @since 2.1 |
|
50 * @return Pointer to created CCAIConLoader object. |
|
51 */ |
|
52 static CCAIconLoader* NewL( const TDesC& aMbmFullPath, |
|
53 MCASkinVariant& aSkinVariant ); |
|
54 |
|
55 /** |
|
56 * Constructor |
|
57 * @param aMbmFullPath path for bitmaps |
|
58 * @param aSkinVariant skinvariant. |
|
59 * @since 2.1 |
|
60 */ |
|
61 CCAIconLoader( const TDesC& aMbmFullPath, |
|
62 MCASkinVariant& aSkinVariant ); |
|
63 |
|
64 public: // New functions |
|
65 |
|
66 /** |
|
67 * Load all needed icons |
|
68 * @param aViewIdentifier for view identification. |
|
69 * @since 2.1 |
|
70 * @return Array of icons stacked in one TCleanupItem |
|
71 */ |
|
72 CArrayPtr<CGulIcon>* LoadIconsLC( TUid aViewIdentifier ); |
|
73 |
|
74 /** |
|
75 * Load status pane icons |
|
76 * @param aTabGroup Tab group where to add icons. |
|
77 * @since 2.1 |
|
78 */ |
|
79 void LoadStatusPaneIconsL( CAknTabGroup& aTabGroup ); |
|
80 |
|
81 private: // Data |
|
82 |
|
83 // Path for bitmaps. |
|
84 const TDesC& iMbmFullPath; |
|
85 |
|
86 // skin variant |
|
87 MCASkinVariant& iSkinVariant; |
|
88 |
|
89 // Our AppUI, not owned |
|
90 CCAAppUi* iAppUi; |
|
91 }; |
|
92 |
|
93 #endif // CAICONLOADER_H |
|
94 |
|
95 // End of File |