1.1 --- a/epoc32/include/appinfo.rh Wed Mar 31 12:27:01 2010 +0100
1.2 +++ b/epoc32/include/appinfo.rh Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -1,9 +1,9 @@
1.4 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 // All rights reserved.
1.6 // This component and the accompanying materials are made available
1.7 -// 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
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 // which accompanies this distribution, and is available
1.10 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.12 //
1.13 // Initial Contributors:
1.14 // Nokia Corporation - initial contribution.
1.15 @@ -25,9 +25,9 @@
1.16 */
1.17 #define KMaxFileNameLength 256
1.18
1.19 -//////////////////////////////////////////////////////////////////
1.20 +//
1.21 // DEFINITIONS FOR THE NON-LOCALISABLE REGISTRATION RESOURCE FILE
1.22 -//////////////////////////////////////////////////////////////////
1.23 +//
1.24
1.25 /**
1.26 @publishedAll
1.27 @@ -130,13 +130,39 @@
1.28 @publishedAll
1.29 @released
1.30 */
1.31 +
1.32 +/* This enum is used to specify the priority at which an application can handle a particular MIME type.
1.33 + The application with the highest priority will be considered as the default application
1.34 + for that particular MIME type.
1.35 + Default association of MIME types with applications can be overridden by user settings,
1.36 + except for applications handling data types with EDataTypePrioritySystem.
1.37 +*/
1.38 enum
1.39 {
1.40 - EDataTypePrioritySystem = 0xFFF9,
1.41 - EDataTypePriorityHigh = 10000,
1.42 - EDataTypePriorityNormal = 0,
1.43 - EDataTypePriorityLow = -10000,
1.44 - EDataTypePriorityLastResort = -20000
1.45 +
1.46 + EDataTypePrioritySystem = 0xFFF9, // This is a special priority that overrides any user settings.
1.47 + // Applications must have EWriteDeviceData capability to use this priority.
1.48 + // If not they will be downgraded to EDataTypePriorityNormal
1.49 +
1.50 +
1.51 + EDataTypePriorityTrustedHigh = 0xC000, // Trusted applications may use this priority value to ensure that their MIME type
1.52 + // associations cannot be overridden by self signed (untrusted) applications
1.53 +
1.54 +
1.55 + EDataTypePriorityHigh = 10000, // An application at EDataTypePriorityHigh will be given higher preference for a
1.56 + // particular data type, than applications with EDataTypePriorityNormal
1.57 +
1.58 +
1.59 + EDataTypePriorityNormal = 0, // An application at EDataTypePriorityNormal will be given higher preference for a
1.60 + // particular data type, than applications with EDataTypePriorityLow.
1.61 +
1.62 +
1.63 + EDataTypePriorityLow = -10000, // This priority means that the data type is a secondary type for that application.
1.64 + // For example, "text/plain" files for a web browser
1.65 +
1.66 +
1.67 + EDataTypePriorityLastResort = -20000 // This priority means that the data type is a last resort for that application
1.68 +
1.69 };
1.70
1.71 /**
1.72 @@ -170,9 +196,9 @@
1.73 }
1.74
1.75
1.76 -/////////////////////////////////////////////////
1.77 +//
1.78 // DEFINITIONS FOR THE LOCALISABLE RESOURCE FILE
1.79 -/////////////////////////////////////////////////
1.80 +//
1.81
1.82 /**
1.83 @publishedAll
1.84 @@ -229,3 +255,4 @@
1.85 }
1.86
1.87 #endif
1.88 +