|
1 /* |
|
2 * Copyright (c) 2008 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: Contains icon configuration information. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AKNSSRVICONCONFIGMAP_H |
|
20 #define C_AKNSSRVICONCONFIGMAP_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 * Creates map of application UIDs that have configured icons based |
|
26 * on central repository. Skinserver will skip skinning their application |
|
27 * icons. |
|
28 * |
|
29 * @lib aknskinsrv.lib |
|
30 * @since S60 3.2 |
|
31 */ |
|
32 NONSHARABLE_CLASS( CAknsSrvIconConfigMap ): public CBase |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 static CAknsSrvIconConfigMap* NewL(); |
|
38 |
|
39 virtual ~CAknsSrvIconConfigMap(); |
|
40 |
|
41 /* |
|
42 * Checks if the given application UID has icon configured using CenRep |
|
43 * configuration. Icons can be variated by language. |
|
44 * |
|
45 * @param aApplicationUid application UID |
|
46 * @param aIsConfigured ETrue if icon has been configured, EFalse otherwise. |
|
47 */ |
|
48 void IsIconConfiguredL( TUid aApplicationUid, TBool& aIsConfigured ); |
|
49 |
|
50 private: |
|
51 // Deletes icon map. |
|
52 void DeleteCurrentIconMap(); |
|
53 |
|
54 // Reads repository and form icon map. |
|
55 void ReadAndParseConfigFileL( CRepository* aRepository ); |
|
56 |
|
57 // Creates repository, then calls ReadAndParseConfigFileL. |
|
58 void CreateAndParseRepositoryL(); |
|
59 |
|
60 CAknsSrvIconConfigMap(); |
|
61 |
|
62 void ConstructL(); |
|
63 |
|
64 private: // data |
|
65 |
|
66 /** |
|
67 * Currently active language. |
|
68 */ |
|
69 TLanguage iCurrentLanguage; |
|
70 |
|
71 /** |
|
72 * Array of UIDs whose icon has been configured. |
|
73 */ |
|
74 RArray<TInt> iAppUidArray; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // C_AKNSSRVICONCONFIGMAP_H |