|
1 // Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // aplapplistitem.h |
|
15 // |
|
16 /** |
|
17 * @file aplapplistitem.h |
|
18 * |
|
19 * @internalComponent |
|
20 * @released |
|
21 */ |
|
22 #ifndef __APLAPPLISTITEM_H__ |
|
23 #define __APLAPPLISTITEM_H__ |
|
24 |
|
25 #include "apaid.h" |
|
26 #include "barsread2.h" |
|
27 #include "stringutils.h" |
|
28 #include "is_utils.h" |
|
29 |
|
30 /** |
|
31 The CAppLocalOpaqueDataInfo class represents the data associated with an application OpaqueData. |
|
32 |
|
33 @internalComponent |
|
34 */ |
|
35 class CAppLocalOpaqueDataInfo |
|
36 { |
|
37 public: |
|
38 ~CAppLocalOpaqueDataInfo(); |
|
39 CAppLocalOpaqueDataInfo(); |
|
40 CAppLocalOpaqueDataInfo(TInt aLocale, TUint32 aServiceUid, Ptr8* aOpaqueData); |
|
41 static CAppLocalOpaqueDataInfo* NewL(TInt aLocale, TUint32 aServiceUid, Ptr8* aOpaqueData); |
|
42 Ptr8* GetOpaqueData(); |
|
43 TUint32 GetServiceUid(); |
|
44 TInt GetLocale(); |
|
45 |
|
46 private: |
|
47 Ptr8* iOpaqueData; |
|
48 TUint32 iServiceUid; |
|
49 TInt iLocale; |
|
50 }; |
|
51 |
|
52 /** |
|
53 The CApaAppViewData class represents the data associated with an application view. |
|
54 |
|
55 @internalComponent |
|
56 */ |
|
57 class CAppViewData |
|
58 { |
|
59 public: |
|
60 TUid Uid() const; |
|
61 inline Ptr16 Caption() const; |
|
62 public: |
|
63 ~CAppViewData(); |
|
64 static CAppViewData* NewL(); |
|
65 void SetUid(TUid aUid); |
|
66 void SetCaptionL(const PtrC16* aCaption); |
|
67 void SetScreenMode(TInt aScreenMode); |
|
68 void SetIconFileNameL(const Ptr16* aFileName); |
|
69 void SetNonMbmIconFile(TBool aNonMbmIconFile); |
|
70 void SetNumOfViewIcons(TInt aNumOfViewIcons); |
|
71 Ptr16* GetCaption(); |
|
72 TInt GetScreenMode(); |
|
73 Ptr16* GetIconFileName(); |
|
74 TInt GetNumOfViewIcons(); |
|
75 CAppViewData(); |
|
76 |
|
77 private: |
|
78 Ptr16* iCaption; |
|
79 TUid iUid; |
|
80 TInt iScreenMode; |
|
81 Ptr16* iIconFileName; |
|
82 TBool iNonMbmIconFile; |
|
83 TInt iNumOfViewIcons; |
|
84 }; |
|
85 |
|
86 // |
|
87 // inlines |
|
88 // |
|
89 |
|
90 inline Ptr16 CAppViewData::Caption() const |
|
91 { return *iCaption; } |
|
92 |
|
93 /** |
|
94 Reads application information from a combination of localizable registration file, |
|
95 |
|
96 @internalComponent |
|
97 */ |
|
98 |
|
99 class CAppLocalizableInfo |
|
100 { |
|
101 public: |
|
102 ~CAppLocalizableInfo(); |
|
103 static CAppLocalizableInfo* NewL(const std::string& aRegistrationFileName, const std::string& aLocalizeFilePath); |
|
104 CAppLocalizableInfo(const std::string& aRegistrationFileName,const std::string& aLocalizeFilePath); |
|
105 void SetCaption(Ptr16* Caption); |
|
106 void SetShortCaption(Ptr16* ShortCaption); |
|
107 void SetGroupName(Ptr16* GroupName); |
|
108 void SetIconFileName(Ptr16* IconFileName); |
|
109 void SetNumOfAppIcons(TInt NumOfAppIcons); |
|
110 void SetLocale(TInt Locale); |
|
111 void SetOpaqueData(Ptr8* OpaqueData); |
|
112 void ReadViewDataL(RResourceReader& resourceReader); |
|
113 Ptr16* ViewDataIconFileNameL(const PtrC16* aIconFileName) const; |
|
114 std::vector<CAppViewData*>* GetViewDataArray(); |
|
115 Ptr16* GetGroupName(); |
|
116 Ptr16* GetCaption(); |
|
117 Ptr16* GetShortCaption(); |
|
118 Ptr16* GetIconFileName(); |
|
119 TInt GetNumOfAppIcons(); |
|
120 TInt GetLocale(); |
|
121 Ptr8* GetOpaqueData(); |
|
122 |
|
123 private: |
|
124 std::vector<CAppViewData*>* iViewDataArray; |
|
125 Ptr16* iGroupName; |
|
126 Ptr16* iCaption; |
|
127 Ptr16* iShortCaption; |
|
128 TInt iNumOfAppIcons; |
|
129 Ptr16* iIconFileName; |
|
130 TInt iLocale; |
|
131 Ptr8* iOpaqueData; |
|
132 const std::string& iRegistrationFilePath; |
|
133 const std::string& iLocalPath; |
|
134 }; |
|
135 |
|
136 |
|
137 #endif //__APLAPPLISTITEM_H__ |