williamr@2: // Copyright (c) 2004-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@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.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: #if !defined __APPINFO_RH__ williamr@2: #define __APPINFO_RH__ williamr@2: williamr@2: // williamr@2: // contains definitions for the Application Information resource files williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KMaxFileNameLength 256 williamr@2: williamr@4: // williamr@2: // DEFINITIONS FOR THE NON-LOCALISABLE REGISTRATION RESOURCE FILE williamr@4: // williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KUidAppRegistrationResourceFile 0x101f8021 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: // constants for capability.hidden williamr@2: #define KAppNotHidden 0 williamr@2: #define KAppIsHidden 1 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: // constants for capability.newfile williamr@2: #define KAppDoesNotSupportNewFile 0 williamr@2: #define KAppSupportsNewFile 1 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: // constants for capability.embeddability williamr@2: #define KAppNotEmbeddable 0 williamr@2: #define KAppEmbeddable 1 williamr@2: #define KAppEmbeddableOnly 2 williamr@2: #define KAppEmbeddableUiOrStandAlone 5 williamr@2: #define KAppEmbeddableUiNotStandAlone 6 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: // constants for capability.launch williamr@2: #define KAppLaunchInForeground 0 williamr@2: #define KAppLaunchInBackground 1 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: // bit flags for capability.attributes williamr@2: #define KAppBuiltAsDll 0x00000001 williamr@2: #define KAppIsControlPanelItem 0x00000002 williamr@2: #define KAppNonNative 0x00000004 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: // application group name williamr@2: #define KAppMaxGroupName 16 williamr@2: williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: STRUCT APP_REGISTRATION_INFO williamr@2: { williamr@2: LONG reserved_long = 0; // reserved for future use, do not use williamr@2: LLINK reserved_llink = 0; // reserved for future use, do not use williamr@2: // williamr@2: LTEXT app_file(KMaxFileNameLength) = ""; // name of application binary file (not including extension) - mandatory williamr@2: LONG attributes = 0; williamr@2: // williamr@2: LTEXT localisable_resource_file(KMaxFileNameLength) = ""; // path (not including drive) and name of localisable resource file williamr@2: LONG localisable_resource_id = 1; williamr@2: // williamr@2: BYTE hidden = KAppNotHidden; williamr@2: BYTE embeddability = KAppNotEmbeddable; williamr@2: BYTE newfile = KAppDoesNotSupportNewFile; williamr@2: BYTE launch = KAppLaunchInForeground; williamr@2: LTEXT group_name(KAppMaxGroupName) = ""; williamr@2: // williamr@2: BYTE default_screen_number = 0; williamr@2: // williamr@2: LEN WORD STRUCT datatype_list[]; // DATATYPE williamr@2: // williamr@2: LEN WORD STRUCT file_ownership_list[]; // FILE_OWNERSHIP_INFO williamr@2: // williamr@2: LEN WORD STRUCT service_list[]; // SERVICE_INFO williamr@2: // williamr@2: LLINK opaque_data = 0; // use for opaque data to send to non-native application launchers i.e. MIDlet id williamr@2: } williamr@2: williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KMaxDataTypeLength 256 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@4: williamr@4: /* This enum is used to specify the priority at which an application can handle a particular MIME type. williamr@4: The application with the highest priority will be considered as the default application williamr@4: for that particular MIME type. williamr@4: Default association of MIME types with applications can be overridden by user settings, williamr@4: except for applications handling data types with EDataTypePrioritySystem. williamr@4: */ williamr@2: enum williamr@2: { williamr@4: williamr@4: EDataTypePrioritySystem = 0xFFF9, // This is a special priority that overrides any user settings. williamr@4: // Applications must have EWriteDeviceData capability to use this priority. williamr@4: // If not they will be downgraded to EDataTypePriorityNormal williamr@4: williamr@4: williamr@4: EDataTypePriorityTrustedHigh = 0xC000, // Trusted applications may use this priority value to ensure that their MIME type williamr@4: // associations cannot be overridden by self signed (untrusted) applications williamr@4: williamr@4: williamr@4: EDataTypePriorityHigh = 10000, // An application at EDataTypePriorityHigh will be given higher preference for a williamr@4: // particular data type, than applications with EDataTypePriorityNormal williamr@4: williamr@4: williamr@4: EDataTypePriorityNormal = 0, // An application at EDataTypePriorityNormal will be given higher preference for a williamr@4: // particular data type, than applications with EDataTypePriorityLow. williamr@4: williamr@4: williamr@4: EDataTypePriorityLow = -10000, // This priority means that the data type is a secondary type for that application. williamr@4: // For example, "text/plain" files for a web browser williamr@4: williamr@4: williamr@4: EDataTypePriorityLastResort = -20000 // This priority means that the data type is a last resort for that application williamr@4: williamr@2: }; williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: STRUCT DATATYPE williamr@2: { williamr@2: LONG priority; williamr@2: LTEXT8 type(KMaxDataTypeLength); williamr@2: } williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: STRUCT FILE_OWNERSHIP_INFO williamr@2: { williamr@2: LTEXT file_name(KMaxFileNameLength); williamr@2: } williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: STRUCT SERVICE_INFO williamr@2: { williamr@2: LONG uid = 0; williamr@2: LEN WORD STRUCT datatype_list[]; williamr@2: LLINK opaque_data = 0; williamr@2: } williamr@2: williamr@2: williamr@4: // williamr@2: // DEFINITIONS FOR THE LOCALISABLE RESOURCE FILE williamr@4: // williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: #define KMaxCaption 256 williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: STRUCT LOCALISABLE_APP_INFO williamr@2: { williamr@2: LONG reserved_long = 0; // reserved for future use, do not use williamr@2: LLINK reserved_llink = 0; // reserved for future use, do not use williamr@2: // williamr@2: LTEXT short_caption(KMaxCaption) = ""; williamr@2: STRUCT caption_and_icon; // CAPTION_AND_ICON_INFO williamr@2: // williamr@2: LEN WORD STRUCT view_list[]; // VIEW_DATA williamr@2: // williamr@2: LTEXT group_name(KAppMaxGroupName) = ""; williamr@2: } williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: STRUCT CAPTION_AND_ICON_INFO williamr@2: { williamr@2: LONG reserved_long = 0; // reserved for future use, do not use williamr@2: LLINK reserved_llink = 0; // reserved for future use, do not use williamr@2: // williamr@2: LTEXT caption(KMaxCaption) = ""; williamr@2: // williamr@2: WORD number_of_icons = 0; // each icon must be a bitmap/mask pair williamr@2: LTEXT icon_file(KMaxFileNameLength) = ""; williamr@2: } williamr@2: williamr@2: /** williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: STRUCT VIEW_DATA williamr@2: { williamr@2: LONG reserved_long = 0; // reserved for future use, do not use williamr@2: LLINK reserved_llink = 0; // reserved for future use, do not use williamr@2: // williamr@2: LONG uid = 0; williamr@2: // williamr@2: LONG screen_mode = 0; williamr@2: // williamr@2: STRUCT caption_and_icon; // CAPTION_AND_ICON_INFO williamr@2: } williamr@2: williamr@2: #endif williamr@4: