williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __APADEF_H__ williamr@2: #define __APADEF_H__ williamr@2: williamr@2: #if !defined(__E32BASE_H__) williamr@2: #include williamr@2: #endif williamr@2: williamr@2: // comand line tokens williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUint KApaCommandLetterOpen='O'; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUint KApaCommandLetterCreate='C'; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUint KApaCommandLetterRun='R'; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUint KApaCommandLetterBackground='B'; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUint KApaCommandLetterViewActivate='V'; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUint KApaCommandLetterRunWithoutViews='W'; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TUint KApaCommandLetterBackgroundAndWithoutViews='A'; williamr@2: williamr@2: /** Defines the command codes used to indicate the way an application is to be williamr@2: launched. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see CApaCommandLine */ williamr@2: enum TApaCommand williamr@2: { williamr@2: /** The application is to open the document specified on the command line. */ williamr@2: EApaCommandOpen, williamr@2: /** The application is to create the document specified on the command line. */ williamr@2: EApaCommandCreate, williamr@2: /** The application is to run and open the last used document. */ williamr@2: EApaCommandRun, williamr@2: /** The application is to open the last used document and to run in the background. */ williamr@2: EApaCommandBackground, williamr@2: /** Reserved for future use. */ williamr@2: EApaCommandViewActivate, williamr@2: /** The application is to run without views. williamr@2: williamr@2: This should NOT be used for view based applications. */ williamr@2: EApaCommandRunWithoutViews, williamr@2: /** The application is to run in the background and viewless mode */ williamr@2: EApaCommandBackgroundAndWithoutViews williamr@2: }; williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TInt KApaMaxAppCaption=0x100; // Default name is a file name, so the same limit is used williamr@2: williamr@2: // TApaAppCaption is the current language name of the app (for task lists, dialogs etc) williamr@2: williamr@2: /** Defines a modifiable buffer descriptor to contain the caption or the short caption williamr@2: for an application. williamr@2: williamr@2: @publishedAll williamr@2: @released */ williamr@2: typedef TBuf TApaAppCaption; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TInt KApaMaxCommandLine=0x100; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: typedef TBuf TApaCommandLine; williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: const TInt KApaMaxAppFileName=0x10; // Length of App's filename without path or extension (not it's caption) williamr@2: williamr@2: /** williamr@2: @internalComponent williamr@2: */ williamr@2: typedef TBuf TApaAppFileName; williamr@2: williamr@2: /** Maximum length of an application group name. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see TApaAppGroupName */ williamr@2: const TInt KApaMaxAppGroupName=0x10; // Length of App's logical groupname williamr@2: williamr@2: /** An application group name. williamr@2: williamr@2: This is a name that allows applications to be categorized, for instance "Games" williamr@2: or "Utilities". williamr@2: williamr@2: @publishedAll williamr@2: @released */ williamr@2: typedef TBuf TApaAppGroupName; williamr@2: williamr@2: /** The hexadecimal value of the 2nd UID that identifies a DLL as being an ASCII UI williamr@2: application. In .mmp files, the hexadecimal number is explicitly inserted williamr@2: as the first value following the UID keyword. williamr@2: williamr@2: @publishedAll williamr@2: @deprecated */ williamr@2: const TInt KAppUidValue8 = 0x1000006c; williamr@2: williamr@2: /** The 2nd UID that identifies a DLL as being an ASCII UI application. williamr@2: williamr@2: @publishedAll williamr@2: @deprecated */ williamr@2: const TUid KUidApp8={KAppUidValue8}; williamr@2: williamr@2: /** The hexadecimal value of the 2nd UID that defines a DLL as being a Unicode williamr@2: UI application. In .mmp files, the hexadecimal number is explicitly inserted williamr@2: as the first value following the UID keyword. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see KAppUidValue */ williamr@2: const TInt KAppUidValue16 = 0x100039CE; williamr@2: williamr@2: /** The 2nd UID that defines a DLL as being a Unicode UI application. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see KUidApp */ williamr@2: const TUid KUidApp16={KAppUidValue16}; williamr@2: williamr@2: // williamr@2: // 2nd Uid for app doc files williamr@2: /** williamr@2: @publishedAll williamr@2: @deprecated williamr@2: */ williamr@2: const TUid KUidAppDllDoc8={268435565}; williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TUid KUidAppDllDoc16={0x10003A12}; williamr@2: williamr@2: /** The UID encoded in a TPictureHeader that identifies a picture as a door (for williamr@2: ASCII builds). williamr@2: williamr@2: @publishedAll williamr@2: @deprecated williamr@2: */ williamr@2: const TUid KUidPictureTypeDoor8={268435537}; williamr@2: williamr@2: /** The UID encoded in a TPictureHeader that identifies a picture as a door (for williamr@2: Unicode builds). williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see KUidPictureTypeDoor */ williamr@2: const TUid KUidPictureTypeDoor16={0x10003A33}; williamr@2: williamr@2: // williamr@2: // Uid's for streams in stream dictionaries williamr@2: /** williamr@2: @publishedAll williamr@2: @deprecated williamr@2: */ williamr@2: const TUid KUidSecurityStream8={268435661}; williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TUid KUidSecurityStream16={0x10003A40}; williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @deprecated williamr@2: */ williamr@2: const TUid KUidAppIdentifierStream8={268435593}; // stream containing a TApaAppIdentifier williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: const TUid KUidAppIdentifierStream16={0x10003A34}; williamr@2: williamr@2: #ifdef _UNICODE williamr@2: /** The type-independent 2nd UID that identifies a DLL as being a UI application. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see KUidApp16 williamr@2: @see KUidApp8 */ williamr@2: #define KUidApp KUidApp16 williamr@2: /** The type-independent hexadecimal value of the 2nd UID that identifies a DLL as williamr@2: being a UI application. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see KAppUidValue16 williamr@2: @see KAppUidValue8 */ williamr@2: #define KAppUidValue KAppUidValue16 //lint !e1923 supress could become const variable williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KUidAppDllDoc KUidAppDllDoc16 williamr@2: /** The type independent UID encoded in a TPictureHeader that identifies a picture williamr@2: as a door. williamr@2: williamr@2: @publishedAll williamr@2: @released williamr@2: @see KUidPictureTypeDoor16 williamr@2: @see KUidPictureTypeDoor8 williamr@2: @see TPictureHeader williamr@2: @see TApaModelDoorFactory::NewPictureL() */ williamr@2: #define KUidPictureTypeDoor KUidPictureTypeDoor16 williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KUidAppIdentifierStream KUidAppIdentifierStream16 williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KUidSecurityStream KUidSecurityStream16 williamr@2: #else williamr@2: /** The type independent 2nd UID that defines a DLL as being a UI application. williamr@2: williamr@2: @see KUidApp16 williamr@2: @see KUidApp8 */ williamr@2: #define KUidApp KUidApp8 williamr@2: /** The type independent hexadecimal value of the 2nd UID that defines a DLL as williamr@2: being a UI application. williamr@2: williamr@2: @see KAppUidValue16 williamr@2: @see KAppUidValue8 */ williamr@2: #define KAppUidValue KAppUidValue8 williamr@2: #define KUidAppDllDoc KUidAppDllDoc8 williamr@2: /** The type independent UID encoded in a TPictureHeader that identifies a picture williamr@2: as a door. williamr@2: williamr@2: @see KUidPictureTypeDoor16 williamr@2: @see KUidPictureTypeDoor8 williamr@2: @see TPictureHeader williamr@2: @see TApaModelDoorFactory::NewPictureL() */ williamr@2: #define KUidPictureTypeDoor KUidPictureTypeDoor8 williamr@2: #define KUidAppIdentifierStream KUidAppIdentifierStream8 williamr@2: #define KUidSecurityStream KUidSecurityStream8 williamr@2: #endif williamr@2: williamr@2: const TUid KUidFileEmbeddedApplicationInterfaceUid={0x101f8c96}; williamr@2: williamr@2: #endif