epoc32/include/apmstd.h
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     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.symbianfoundation.org/legal/licencesv10.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.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    44 
    44 
    45 @publishedAll
    45 @publishedAll
    46 @released */
    46 @released */
    47 const TInt32 KDataTypePriorityUserSpecified=KMaxTInt16;
    47 const TInt32 KDataTypePriorityUserSpecified=KMaxTInt16;
    48 
    48 
       
    49 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    49 /** This is a special priority that overrides any user settings. Applications must
    50 /** This is a special priority that overrides any user settings. Applications must
    50 have EWriteDeviceData to use this priority. If they have not then they will be
    51 have EWriteDeviceData to use this priority. If they have not then they will be
    51 downgraded to KDataTypePriorityNormal.
    52 downgraded to KDataTypePriorityNormal.
    52 
    53 
    53 @publishedPartner
    54 @publishedPartner
    54 @released
    55 @released
    55 @see TDataTypeWithPriority */
    56 @see TDataTypeWithPriority */
    56 const TInt32 KDataTypePrioritySystem = 0xFFF9;
    57 const TInt32 KDataTypePrioritySystem = 0xFFF9;
       
    58 
       
    59 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
    57 
    60 
    58 /** Trusted applications may use this priority value to ensure 
    61 /** Trusted applications may use this priority value to ensure 
    59     their MIME type associations cannot be overridden by 
    62     their MIME type associations cannot be overridden by 
    60     self signed (untrusted) applications.
    63     self signed (untrusted) applications.
    61 
    64 
   147 	void ParseDes();
   150 	void ParseDes();
   148 private:
   151 private:
   149 	TBuf8<KMaxDataTypeLength> iDataType;
   152 	TBuf8<KMaxDataTypeLength> iDataType;
   150 	TUid iUid;
   153 	TUid iUid;
   151 	};
   154 	};
   152 
   155 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
   153 /**
   156 /**
   154 @internalComponent
   157 @internalComponent
   155 */
   158 */
   156 #define KApaAppTypeDes _L8("x-epoc/x-app")
   159 #define KApaAppTypeDes _L8("x-epoc/x-app")
   157 
   160 
   158 /**
   161 /**
   159 @internalComponent
   162 @internalComponent
   160 */
   163 */
   161 _LIT8(KEpocUrlDataTypeHeader, "X-Epoc-Url/");
   164 _LIT8(KEpocUrlDataTypeHeader, "X-Epoc-Url/");
   162 
   165 
   163 
   166 #endif //SYMBIAN_ENABLE_SPLIT_HEADERS
   164 
   167 
   165 class TDataTypeWithPriority
   168 class TDataTypeWithPriority
   166 /** A data (MIME) type and a priority value for that data type.
   169 /** A data (MIME) type and a priority value for that data type.
   167 
   170 
   168 The priority is used to resolve the current preferred handler of a data type, 
   171 The priority is used to resolve the current preferred handler of a data type,