1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericservices/httputils/UriParser/CUriInternal.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,97 @@
1.4 +// Copyright (c) 2001-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 "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// File contains local functions for use by the CUri classes defined in
1.18 +// Uri8.h and Uri16.h.
1.19 +//
1.20 +//
1.21 +
1.22 +/**
1.23 + @file CUriInternal.h
1.24 + @see Uri8.h, Uri16.h
1.25 +*/
1.26 +
1.27 +#ifndef __CURIINTERNAL_H__
1.28 +#define __CURIINTERNAL_H__
1.29 +
1.30 +// System includes
1.31 +//
1.32 +#include <e32base.h>
1.33 +
1.34 +/**
1.35 + enum TInternalFileUriFlags
1.36 + Enum defining a flag used to indicate file type (public or private)
1.37 + @internalComponent
1.38 + @released
1.39 + @since 9.1
1.40 + */
1.41 +enum TInternalFileUriFlags
1.42 + {
1.43 + /* Specifier for application private file on fix drive */
1.44 + EPrivate = 0x80000000
1.45 + };
1.46 +
1.47 +// Forward class declarations
1.48 +//
1.49 +class CDelimitedDataBase16;
1.50 +class CDelimitedDataBase8;
1.51 +
1.52 +template<class TPtrCType>
1.53 +TInt CalculateUriLength(const TPtrCType aComponent[], TBool& aIsIPv6Host);
1.54 +
1.55 +template<class TPtrType, class TPtrCType>
1.56 +void DoFormUri(TPtrType& aUri, TPtrCType aComponent[], TBool& aIsIPv6Host);
1.57 +
1.58 +template<class TPtrType, class TPtrCType>
1.59 +void SetScheme(TPtrType& aUri, TPtrCType& aScheme);
1.60 +
1.61 +template<class TPtrType, class TPtrCType>
1.62 +void SetAuthority(TPtrType& aUri, TPtrCType& aUserinfo, TPtrCType& aHost, TPtrCType& aPort, TBool& aIsIPv6Host, TBool aUseNetworkDelimiter);
1.63 +
1.64 +template<class TPtrType, class TPtrCType>
1.65 +void SetPath(TPtrType& aUri, TPtrCType& aPath);
1.66 +
1.67 +template<class TPtrType, class TPtrCType>
1.68 +void SetQuery(TPtrType& aUri, TPtrCType& aQuery);
1.69 +
1.70 +template<class TPtrType, class TPtrCType>
1.71 +void SetFragment(TPtrType& aUri, TPtrCType& aFragment);
1.72 +
1.73 +template<class TPtrCType, class CDelimitedDataBaseType>
1.74 +void CleanResolvedPathL(CDelimitedDataBaseType* aResolvedPath);
1.75 +
1.76 +template<class HBufCType, class TUriCType>
1.77 +HBufCType* FormResolvedPathLC(const TUriCType& aBaseUri, const TUriCType& aRefUri, TBool& aUseBaseQuery);
1.78 +
1.79 +template<class TPtrCType, class TUriCType, class HBufCType>
1.80 +void FormResolvedUri(TPtrCType aComponent[], const TUriCType& aBaseUri, const TUriCType& aRefUri, const HBufCType* aResolvedPath, TBool aUseBaseQuery);
1.81 +
1.82 +HBufC* GenerateFileUriPathL(const TDesC& aFileName, TDriveNumber aDrive, TUint aFlags);
1.83 +
1.84 +HBufC8* ResolvePathsL(const TDesC8& aBasePath, const TDesC8& aRefPath);
1.85 +
1.86 +HBufC16* ResolvePathsL(const TDesC16& aBasePath, const TDesC16& aRefPath);
1.87 +
1.88 +TBool IsSameDir(const TDesC8& aSegment);
1.89 +
1.90 +TBool IsSameDir(const TDesC16& aSegment);
1.91 +
1.92 +TBool IsParentDir(const TDesC8& aSegment);
1.93 +
1.94 +TBool IsParentDir(const TDesC16& aSegment);
1.95 +
1.96 +void InsertParentDirL(CDelimitedDataBase8* aResolvedPath);
1.97 +
1.98 +void InsertParentDirL(CDelimitedDataBase16* aResolvedPath);
1.99 +
1.100 +#endif // __CURIINTERNAL_H__