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