1 // Copyright (c) 1997-2009 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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 /** Defines the command codes used to indicate the way an application is to be
27 @see CApaCommandLine */
30 /** The application is to open the document specified on the command line. */
32 /** The application is to create the document specified on the command line. */
34 /** The application is to run and open the last used document. */
36 /** The application is to open the last used document and to run in the background. */
37 EApaCommandBackground,
38 /** Reserved for future use. */
39 EApaCommandViewActivate,
40 /** The application is to run without views.
42 This should NOT be used for view based applications. */
43 EApaCommandRunWithoutViews,
44 /** The application is to run in the background and viewless mode */
45 EApaCommandBackgroundAndWithoutViews
52 const TInt KApaMaxAppCaption=0x100; // Default name is a file name, so the same limit is used
54 // TApaAppCaption is the current language name of the app (for task lists, dialogs etc)
56 /** Defines a modifiable buffer descriptor to contain the caption or the short caption
61 typedef TBuf<KApaMaxAppCaption> TApaAppCaption;
63 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
67 const TInt KApaMaxCommandLine=0x100;
72 typedef TBuf<KApaMaxCommandLine> TApaCommandLine;
74 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
76 /** Maximum length of an application group name.
80 @see TApaAppGroupName */
81 const TInt KApaMaxAppGroupName=0x10; // Length of App's logical groupname
83 /** An application group name.
85 This is a name that allows applications to be categorized, for instance "Games"
90 typedef TBuf<KApaMaxAppGroupName> TApaAppGroupName;
92 /** The hexadecimal value of the 2nd UID that defines a DLL as being a Unicode
93 UI application. In .mmp files, the hexadecimal number is explicitly inserted
94 as the first value following the UID keyword.
99 const TInt KAppUidValue16 = 0x100039CE;
101 /** The 2nd UID that defines a DLL as being a Unicode UI application.
106 const TUid KUidApp16={KAppUidValue16};
109 // 2nd Uid for app doc files
114 const TUid KUidAppDllDoc16={0x10003A12};
116 /** The UID encoded in a TPictureHeader that identifies a picture as a door (for
121 @see KUidPictureTypeDoor */
122 const TUid KUidPictureTypeDoor16={0x10003A33};
125 // Uid's for streams in stream dictionaries
131 const TUid KUidSecurityStream16={0x10003A40};
137 const TUid KUidAppIdentifierStream16={0x10003A34};
139 /** The type-independent 2nd UID that identifies a DLL as being a UI application.
144 #define KUidApp KUidApp16
146 /** The type-independent hexadecimal value of the 2nd UID that identifies a DLL as
147 being a UI application.
151 @see KAppUidValue16 */
152 #define KAppUidValue KAppUidValue16 //lint !e1923 supress could become const variable
158 #define KUidAppDllDoc KUidAppDllDoc16
160 /** The type independent UID encoded in a TPictureHeader that identifies a picture
165 @see KUidPictureTypeDoor16
167 @see TApaModelDoorFactory::NewPictureL() */
168 #define KUidPictureTypeDoor KUidPictureTypeDoor16
174 #define KUidAppIdentifierStream KUidAppIdentifierStream16
180 #define KUidSecurityStream KUidSecurityStream16
183 const TUid KUidFileEmbeddedApplicationInterfaceUid={0x101f8c96};
185 #endif // __APADEF_H__