williamr@2: // Copyright (c) 2001-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: // Internal header file with common constants used by the implementations williamr@2: // of the uri classes TUriC??, CUri?? and TUriParser??. williamr@2: // williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file UriCommon.h williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifndef __URICOMMON_H__ williamr@2: #define __URICOMMON_H__ williamr@2: williamr@2: // System includes williamr@2: // williamr@2: #include williamr@2: williamr@2: /** williamr@2: Enum defining a flag used to indicate file storage type (fixed drive or removable media). williamr@2: @publishedAll williamr@2: @released williamr@2: @since 9.1 williamr@2: */ williamr@2: enum TFileUriFlags williamr@2: { williamr@2: /** williamr@2: Indiacte the drive letter in the URI is to be replaced by the term "ext-media" williamr@2: */ williamr@2: EExtMedia = 1 williamr@2: }; williamr@2: williamr@2: /** williamr@2: Enum used by GetFileNameL to specify what data is returned. williamr@2: @publishedAll williamr@2: @released williamr@2: @since 9.1 williamr@2: */ williamr@2: enum TUriFileName williamr@2: { williamr@2: /** williamr@2: Indicate a File URI is to be converted into a fully qualified file name. Will Leave if not used on a file URI williamr@2: */ williamr@2: EUriFileNameFull = 0, williamr@2: /** williamr@2: Indicate a the path component is to be converted into a file name with directories, but no drive. Behaviour is undefined for non-hierarchical schemes williamr@2: */ williamr@2: EUriFileNamePath, williamr@2: /** williamr@2: Indicate just the name is to be converted into a file name, with no directories. Behaviour is undefined for non-hierarchical schemes williamr@2: */ williamr@2: EUriFileNameTail williamr@2: }; williamr@2: williamr@2: /** williamr@2: Enum defining the uri components. williamr@2: @warning The enum value EUriMaxComponents should not be used as it will williamr@2: cause a panic. williamr@2: @publishedAll williamr@2: @released williamr@2: @since 6.0 williamr@2: */ williamr@2: enum TUriComponent williamr@2: { williamr@2: /** williamr@2: The scheme component specifier williamr@2: */ williamr@2: EUriScheme, williamr@2: /** williamr@2: The userinfo component specifier williamr@2: */ williamr@2: EUriUserinfo, williamr@2: /** williamr@2: The host component specifier williamr@2: */ williamr@2: EUriHost, williamr@2: /** williamr@2: The port component specifier williamr@2: */ williamr@2: EUriPort, williamr@2: /** williamr@2: The path component specifier williamr@2: */ williamr@2: EUriPath, williamr@2: /** williamr@2: The query component specifier williamr@2: */ williamr@2: EUriQuery, williamr@2: /** williamr@2: The fragment component specifier williamr@2: */ williamr@2: EUriFragment, williamr@2: /** williamr@2: Do not use as a field specifier - will cause panic williamr@2: */ williamr@2: EUriMaxComponents, williamr@2: /** williamr@2: The complete URI. Only use with DisplayFormL, otherwise will cause panic williamr@2: */ williamr@2: EUriComplete = -1 williamr@2: }; williamr@2: williamr@2: #endif // __URICOMMON_H__