-
Notifications
You must be signed in to change notification settings - Fork 0
/
apadef.h
281 lines (228 loc) · 6.14 KB
/
apadef.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
// APADEF.H
//
// Copyright (c) 1997-1999 Symbian Ltd. All rights reserved.
//
#ifndef __APADEF_H__
#define __APADEF_H__
#if !defined(__E32BASE_H__)
#include <e32base.h>
#endif
// comand line tokens
/**
@internalComponent
*/
const TUint KApaCommandLetterOpen='O';
/**
@internalComponent
*/
const TUint KApaCommandLetterCreate='C';
/**
@internalComponent
*/
const TUint KApaCommandLetterRun='R';
/**
@internalComponent
*/
const TUint KApaCommandLetterBackground='B';
/**
@internalComponent
*/
const TUint KApaCommandLetterViewActivate='V';
/**
@internalComponent
*/
const TUint KApaCommandLetterRunWithoutViews='W';
/**
@internalComponent
*/
const TUint KApaCommandLetterBackgroundAndWithoutViews='A';
/** Defines the command codes used to indicate the way an application is to be
launched.
@publishedAll
@released
@see CApaCommandLine */
enum TApaCommand
{
/** The application is to open the document specified on the command line. */
EApaCommandOpen,
/** The application is to create the document specified on the command line. */
EApaCommandCreate,
/** The application is to run and open the last used document. */
EApaCommandRun,
/** The application is to open the last used document and to run in the background. */
EApaCommandBackground,
/** Reserved for future use. */
EApaCommandViewActivate,
/** The application is to run without views.
This should NOT be used for view based applications. */
EApaCommandRunWithoutViews,
/** The application is to run in the background and viewless mode */
EApaCommandBackgroundAndWithoutViews
};
/**
@publishedAll
@released
*/
const TInt KApaMaxAppCaption=0x100; // Default name is a file name, so the same limit is used
// TApaAppCaption is the current language name of the app (for task lists, dialogs etc)
/** Defines a modifiable buffer descriptor to contain the caption or the short caption
for an application.
@publishedAll
@released */
typedef TBuf<KApaMaxAppCaption> TApaAppCaption;
/**
@internalComponent
*/
const TInt KApaMaxCommandLine=0x100;
/**
@internalComponent
*/
typedef TBuf<KApaMaxCommandLine> TApaCommandLine;
/**
@internalComponent
*/
const TInt KApaMaxAppFileName=0x10; // Length of App's filename without path or extension (not it's caption)
/**
@internalComponent
*/
typedef TBuf<KApaMaxAppFileName> TApaAppFileName;
/** Maximum length of an application group name.
@publishedAll
@released
@see TApaAppGroupName */
const TInt KApaMaxAppGroupName=0x10; // Length of App's logical groupname
/** An application group name.
This is a name that allows applications to be categorized, for instance "Games"
or "Utilities".
@publishedAll
@released */
typedef TBuf<KApaMaxAppGroupName> TApaAppGroupName;
/** The hexadecimal value of the 2nd UID that identifies a DLL as being an ASCII UI
application. In .mmp files, the hexadecimal number is explicitly inserted
as the first value following the UID keyword.
@publishedAll
@deprecated */
const TInt KAppUidValue8 = 0x1000006c;
/** The 2nd UID that identifies a DLL as being an ASCII UI application.
@publishedAll
@deprecated */
const TUid KUidApp8={KAppUidValue8};
/** The hexadecimal value of the 2nd UID that defines a DLL as being a Unicode
UI application. In .mmp files, the hexadecimal number is explicitly inserted
as the first value following the UID keyword.
@publishedAll
@released
@see KAppUidValue */
const TInt KAppUidValue16 = 0x100039CE;
/** The 2nd UID that defines a DLL as being a Unicode UI application.
@publishedAll
@released
@see KUidApp */
const TUid KUidApp16={KAppUidValue16};
//
// 2nd Uid for app doc files
/**
@publishedAll
@deprecated
*/
const TUid KUidAppDllDoc8={268435565};
/**
@publishedAll
@released
*/
const TUid KUidAppDllDoc16={0x10003A12};
/** The UID encoded in a TPictureHeader that identifies a picture as a door (for
ASCII builds).
@publishedAll
@deprecated
*/
const TUid KUidPictureTypeDoor8={268435537};
/** The UID encoded in a TPictureHeader that identifies a picture as a door (for
Unicode builds).
@publishedAll
@released
@see KUidPictureTypeDoor */
const TUid KUidPictureTypeDoor16={0x10003A33};
//
// Uid's for streams in stream dictionaries
/**
@publishedAll
@deprecated
*/
const TUid KUidSecurityStream8={268435661};
/**
@publishedAll
@released
*/
const TUid KUidSecurityStream16={0x10003A40};
/**
@publishedAll
@deprecated
*/
const TUid KUidAppIdentifierStream8={268435593}; // stream containing a TApaAppIdentifier
/**
@publishedAll
@released
*/
const TUid KUidAppIdentifierStream16={0x10003A34};
#ifdef _UNICODE
/** The type-independent 2nd UID that identifies a DLL as being a UI application.
@publishedAll
@released
@see KUidApp16
@see KUidApp8 */
#define KUidApp KUidApp16
/** The type-independent hexadecimal value of the 2nd UID that identifies a DLL as
being a UI application.
@publishedAll
@released
@see KAppUidValue16
@see KAppUidValue8 */
#define KAppUidValue KAppUidValue16
/**
@publishedAll
@released
*/
#define KUidAppDllDoc KUidAppDllDoc16
/** The type independent UID encoded in a TPictureHeader that identifies a picture
as a door.
@publishedAll
@released
@see KUidPictureTypeDoor16
@see KUidPictureTypeDoor8
@see TPictureHeader
@see TApaModelDoorFactory::NewPictureL() */
#define KUidPictureTypeDoor KUidPictureTypeDoor16
/**
@publishedAll
@released
*/
#define KUidAppIdentifierStream KUidAppIdentifierStream16
/**
@publishedAll
@released
*/
#define KUidSecurityStream KUidSecurityStream16
#else
/** The type independent 2nd UID that defines a DLL as being a UI application.
@see KUidApp16
@see KUidApp8 */
#define KUidApp KUidApp8
/** The type independent hexadecimal value of the 2nd UID that defines a DLL as
being a UI application.
@see KAppUidValue16
@see KAppUidValue8 */
#define KAppUidValue KAppUidValue8
#define KUidAppDllDoc KUidAppDllDoc8
/** The type independent UID encoded in a TPictureHeader that identifies a picture
as a door.
@see KUidPictureTypeDoor16
@see KUidPictureTypeDoor8
@see TPictureHeader
@see TApaModelDoorFactory::NewPictureL() */
#define KUidPictureTypeDoor KUidPictureTypeDoor8
#define KUidAppIdentifierStream KUidAppIdentifierStream8
#define KUidSecurityStream KUidSecurityStream8
#endif
const TUid KUidFileEmbeddedApplicationInterfaceUid={0x101f8c96};
#endif