williamr@2
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
#if !defined __APPINFO_RH__
|
williamr@2
|
17 |
#define __APPINFO_RH__
|
williamr@2
|
18 |
|
williamr@2
|
19 |
//
|
williamr@2
|
20 |
// contains definitions for the Application Information resource files
|
williamr@2
|
21 |
|
williamr@2
|
22 |
/**
|
williamr@2
|
23 |
@publishedAll
|
williamr@2
|
24 |
@released
|
williamr@2
|
25 |
*/
|
williamr@2
|
26 |
#define KMaxFileNameLength 256
|
williamr@2
|
27 |
|
williamr@2
|
28 |
//////////////////////////////////////////////////////////////////
|
williamr@2
|
29 |
// DEFINITIONS FOR THE NON-LOCALISABLE REGISTRATION RESOURCE FILE
|
williamr@2
|
30 |
//////////////////////////////////////////////////////////////////
|
williamr@2
|
31 |
|
williamr@2
|
32 |
/**
|
williamr@2
|
33 |
@publishedAll
|
williamr@2
|
34 |
@released
|
williamr@2
|
35 |
*/
|
williamr@2
|
36 |
#define KUidAppRegistrationResourceFile 0x101f8021
|
williamr@2
|
37 |
|
williamr@2
|
38 |
/**
|
williamr@2
|
39 |
@publishedAll
|
williamr@2
|
40 |
@released
|
williamr@2
|
41 |
*/
|
williamr@2
|
42 |
// constants for capability.hidden
|
williamr@2
|
43 |
#define KAppNotHidden 0
|
williamr@2
|
44 |
#define KAppIsHidden 1
|
williamr@2
|
45 |
|
williamr@2
|
46 |
/**
|
williamr@2
|
47 |
@publishedAll
|
williamr@2
|
48 |
@released
|
williamr@2
|
49 |
*/
|
williamr@2
|
50 |
// constants for capability.newfile
|
williamr@2
|
51 |
#define KAppDoesNotSupportNewFile 0
|
williamr@2
|
52 |
#define KAppSupportsNewFile 1
|
williamr@2
|
53 |
|
williamr@2
|
54 |
/**
|
williamr@2
|
55 |
@publishedAll
|
williamr@2
|
56 |
@released
|
williamr@2
|
57 |
*/
|
williamr@2
|
58 |
// constants for capability.embeddability
|
williamr@2
|
59 |
#define KAppNotEmbeddable 0
|
williamr@2
|
60 |
#define KAppEmbeddable 1
|
williamr@2
|
61 |
#define KAppEmbeddableOnly 2
|
williamr@2
|
62 |
#define KAppEmbeddableUiOrStandAlone 5
|
williamr@2
|
63 |
#define KAppEmbeddableUiNotStandAlone 6
|
williamr@2
|
64 |
|
williamr@2
|
65 |
/**
|
williamr@2
|
66 |
@publishedAll
|
williamr@2
|
67 |
@released
|
williamr@2
|
68 |
*/
|
williamr@2
|
69 |
// constants for capability.launch
|
williamr@2
|
70 |
#define KAppLaunchInForeground 0
|
williamr@2
|
71 |
#define KAppLaunchInBackground 1
|
williamr@2
|
72 |
|
williamr@2
|
73 |
/**
|
williamr@2
|
74 |
@publishedAll
|
williamr@2
|
75 |
@released
|
williamr@2
|
76 |
*/
|
williamr@2
|
77 |
// bit flags for capability.attributes
|
williamr@2
|
78 |
#define KAppBuiltAsDll 0x00000001
|
williamr@2
|
79 |
#define KAppIsControlPanelItem 0x00000002
|
williamr@2
|
80 |
#define KAppNonNative 0x00000004
|
williamr@2
|
81 |
|
williamr@2
|
82 |
/**
|
williamr@2
|
83 |
@publishedAll
|
williamr@2
|
84 |
@released
|
williamr@2
|
85 |
*/
|
williamr@2
|
86 |
// application group name
|
williamr@2
|
87 |
#define KAppMaxGroupName 16
|
williamr@2
|
88 |
|
williamr@2
|
89 |
|
williamr@2
|
90 |
/**
|
williamr@2
|
91 |
@publishedAll
|
williamr@2
|
92 |
@released
|
williamr@2
|
93 |
*/
|
williamr@2
|
94 |
STRUCT APP_REGISTRATION_INFO
|
williamr@2
|
95 |
{
|
williamr@2
|
96 |
LONG reserved_long = 0; // reserved for future use, do not use
|
williamr@2
|
97 |
LLINK reserved_llink = 0; // reserved for future use, do not use
|
williamr@2
|
98 |
//
|
williamr@2
|
99 |
LTEXT app_file(KMaxFileNameLength) = ""; // name of application binary file (not including extension) - mandatory
|
williamr@2
|
100 |
LONG attributes = 0;
|
williamr@2
|
101 |
//
|
williamr@2
|
102 |
LTEXT localisable_resource_file(KMaxFileNameLength) = ""; // path (not including drive) and name of localisable resource file
|
williamr@2
|
103 |
LONG localisable_resource_id = 1;
|
williamr@2
|
104 |
//
|
williamr@2
|
105 |
BYTE hidden = KAppNotHidden;
|
williamr@2
|
106 |
BYTE embeddability = KAppNotEmbeddable;
|
williamr@2
|
107 |
BYTE newfile = KAppDoesNotSupportNewFile;
|
williamr@2
|
108 |
BYTE launch = KAppLaunchInForeground;
|
williamr@2
|
109 |
LTEXT group_name(KAppMaxGroupName) = "";
|
williamr@2
|
110 |
//
|
williamr@2
|
111 |
BYTE default_screen_number = 0;
|
williamr@2
|
112 |
//
|
williamr@2
|
113 |
LEN WORD STRUCT datatype_list[]; // DATATYPE
|
williamr@2
|
114 |
//
|
williamr@2
|
115 |
LEN WORD STRUCT file_ownership_list[]; // FILE_OWNERSHIP_INFO
|
williamr@2
|
116 |
//
|
williamr@2
|
117 |
LEN WORD STRUCT service_list[]; // SERVICE_INFO
|
williamr@2
|
118 |
//
|
williamr@2
|
119 |
LLINK opaque_data = 0; // use for opaque data to send to non-native application launchers i.e. MIDlet id
|
williamr@2
|
120 |
}
|
williamr@2
|
121 |
|
williamr@2
|
122 |
|
williamr@2
|
123 |
/**
|
williamr@2
|
124 |
@publishedAll
|
williamr@2
|
125 |
@released
|
williamr@2
|
126 |
*/
|
williamr@2
|
127 |
#define KMaxDataTypeLength 256
|
williamr@2
|
128 |
|
williamr@2
|
129 |
/**
|
williamr@2
|
130 |
@publishedAll
|
williamr@2
|
131 |
@released
|
williamr@2
|
132 |
*/
|
williamr@2
|
133 |
enum
|
williamr@2
|
134 |
{
|
williamr@2
|
135 |
EDataTypePrioritySystem = 0xFFF9,
|
williamr@2
|
136 |
EDataTypePriorityHigh = 10000,
|
williamr@2
|
137 |
EDataTypePriorityNormal = 0,
|
williamr@2
|
138 |
EDataTypePriorityLow = -10000,
|
williamr@2
|
139 |
EDataTypePriorityLastResort = -20000
|
williamr@2
|
140 |
};
|
williamr@2
|
141 |
|
williamr@2
|
142 |
/**
|
williamr@2
|
143 |
@publishedAll
|
williamr@2
|
144 |
@released
|
williamr@2
|
145 |
*/
|
williamr@2
|
146 |
STRUCT DATATYPE
|
williamr@2
|
147 |
{
|
williamr@2
|
148 |
LONG priority;
|
williamr@2
|
149 |
LTEXT8 type(KMaxDataTypeLength);
|
williamr@2
|
150 |
}
|
williamr@2
|
151 |
|
williamr@2
|
152 |
/**
|
williamr@2
|
153 |
@publishedAll
|
williamr@2
|
154 |
@released
|
williamr@2
|
155 |
*/
|
williamr@2
|
156 |
STRUCT FILE_OWNERSHIP_INFO
|
williamr@2
|
157 |
{
|
williamr@2
|
158 |
LTEXT file_name(KMaxFileNameLength);
|
williamr@2
|
159 |
}
|
williamr@2
|
160 |
|
williamr@2
|
161 |
/**
|
williamr@2
|
162 |
@publishedAll
|
williamr@2
|
163 |
@released
|
williamr@2
|
164 |
*/
|
williamr@2
|
165 |
STRUCT SERVICE_INFO
|
williamr@2
|
166 |
{
|
williamr@2
|
167 |
LONG uid = 0;
|
williamr@2
|
168 |
LEN WORD STRUCT datatype_list[];
|
williamr@2
|
169 |
LLINK opaque_data = 0;
|
williamr@2
|
170 |
}
|
williamr@2
|
171 |
|
williamr@2
|
172 |
|
williamr@2
|
173 |
/////////////////////////////////////////////////
|
williamr@2
|
174 |
// DEFINITIONS FOR THE LOCALISABLE RESOURCE FILE
|
williamr@2
|
175 |
/////////////////////////////////////////////////
|
williamr@2
|
176 |
|
williamr@2
|
177 |
/**
|
williamr@2
|
178 |
@publishedAll
|
williamr@2
|
179 |
@released
|
williamr@2
|
180 |
*/
|
williamr@2
|
181 |
#define KMaxCaption 256
|
williamr@2
|
182 |
|
williamr@2
|
183 |
/**
|
williamr@2
|
184 |
@publishedAll
|
williamr@2
|
185 |
@released
|
williamr@2
|
186 |
*/
|
williamr@2
|
187 |
STRUCT LOCALISABLE_APP_INFO
|
williamr@2
|
188 |
{
|
williamr@2
|
189 |
LONG reserved_long = 0; // reserved for future use, do not use
|
williamr@2
|
190 |
LLINK reserved_llink = 0; // reserved for future use, do not use
|
williamr@2
|
191 |
//
|
williamr@2
|
192 |
LTEXT short_caption(KMaxCaption) = "";
|
williamr@2
|
193 |
STRUCT caption_and_icon; // CAPTION_AND_ICON_INFO
|
williamr@2
|
194 |
//
|
williamr@2
|
195 |
LEN WORD STRUCT view_list[]; // VIEW_DATA
|
williamr@2
|
196 |
//
|
williamr@2
|
197 |
LTEXT group_name(KAppMaxGroupName) = "";
|
williamr@2
|
198 |
}
|
williamr@2
|
199 |
|
williamr@2
|
200 |
/**
|
williamr@2
|
201 |
@publishedAll
|
williamr@2
|
202 |
@released
|
williamr@2
|
203 |
*/
|
williamr@2
|
204 |
STRUCT CAPTION_AND_ICON_INFO
|
williamr@2
|
205 |
{
|
williamr@2
|
206 |
LONG reserved_long = 0; // reserved for future use, do not use
|
williamr@2
|
207 |
LLINK reserved_llink = 0; // reserved for future use, do not use
|
williamr@2
|
208 |
//
|
williamr@2
|
209 |
LTEXT caption(KMaxCaption) = "";
|
williamr@2
|
210 |
//
|
williamr@2
|
211 |
WORD number_of_icons = 0; // each icon must be a bitmap/mask pair
|
williamr@2
|
212 |
LTEXT icon_file(KMaxFileNameLength) = "";
|
williamr@2
|
213 |
}
|
williamr@2
|
214 |
|
williamr@2
|
215 |
/**
|
williamr@2
|
216 |
@publishedAll
|
williamr@2
|
217 |
@released
|
williamr@2
|
218 |
*/
|
williamr@2
|
219 |
STRUCT VIEW_DATA
|
williamr@2
|
220 |
{
|
williamr@2
|
221 |
LONG reserved_long = 0; // reserved for future use, do not use
|
williamr@2
|
222 |
LLINK reserved_llink = 0; // reserved for future use, do not use
|
williamr@2
|
223 |
//
|
williamr@2
|
224 |
LONG uid = 0;
|
williamr@2
|
225 |
//
|
williamr@2
|
226 |
LONG screen_mode = 0;
|
williamr@2
|
227 |
//
|
williamr@2
|
228 |
STRUCT caption_and_icon; // CAPTION_AND_ICON_INFO
|
williamr@2
|
229 |
}
|
williamr@2
|
230 |
|
williamr@2
|
231 |
#endif
|