1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
128 |
128 |
129 /** |
129 /** |
130 @publishedAll |
130 @publishedAll |
131 @released |
131 @released |
132 */ |
132 */ |
|
133 |
|
134 /* This enum is used to specify the priority at which an application can handle a particular MIME type. |
|
135 The application with the highest priority will be considered as the default application |
|
136 for that particular MIME type. |
|
137 Default association of MIME types with applications can be overridden by user settings, |
|
138 except for applications handling data types with EDataTypePrioritySystem. |
|
139 */ |
133 enum |
140 enum |
134 { |
141 { |
135 EDataTypePrioritySystem = 0xFFF9, |
142 |
136 EDataTypePriorityHigh = 10000, |
143 EDataTypePrioritySystem = 0xFFF9, // This is a special priority that overrides any user settings. |
137 EDataTypePriorityNormal = 0, |
144 // Applications must have EWriteDeviceData capability to use this priority. |
138 EDataTypePriorityLow = -10000, |
145 // If not they will be downgraded to EDataTypePriorityNormal |
139 EDataTypePriorityLastResort = -20000 |
146 |
|
147 |
|
148 EDataTypePriorityTrustedHigh = 0xC000, // Trusted applications may use this priority value to ensure that their MIME type |
|
149 // associations cannot be overridden by self signed (untrusted) applications |
|
150 |
|
151 |
|
152 EDataTypePriorityHigh = 10000, // An application at EDataTypePriorityHigh will be given higher preference for a |
|
153 // particular data type, than applications with EDataTypePriorityNormal |
|
154 |
|
155 |
|
156 EDataTypePriorityNormal = 0, // An application at EDataTypePriorityNormal will be given higher preference for a |
|
157 // particular data type, than applications with EDataTypePriorityLow. |
|
158 |
|
159 |
|
160 EDataTypePriorityLow = -10000, // This priority means that the data type is a secondary type for that application. |
|
161 // For example, "text/plain" files for a web browser |
|
162 |
|
163 |
|
164 EDataTypePriorityLastResort = -20000 // This priority means that the data type is a last resort for that application |
|
165 |
140 }; |
166 }; |
141 |
167 |
142 /** |
168 /** |
143 @publishedAll |
169 @publishedAll |
144 @released |
170 @released |