sl@0
|
1 |
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// File contains local functions for use by the TUriC classes defined in
|
sl@0
|
15 |
// Uri8.h and Uri16.h.
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//
|
sl@0
|
18 |
|
sl@0
|
19 |
/**
|
sl@0
|
20 |
@file TUriCInternal.h
|
sl@0
|
21 |
@see Uri8.h, Uri16.h
|
sl@0
|
22 |
*/
|
sl@0
|
23 |
|
sl@0
|
24 |
#ifndef __TURICINTERNAL_H__
|
sl@0
|
25 |
#define __TURICINTERNAL_H__
|
sl@0
|
26 |
|
sl@0
|
27 |
// System includes
|
sl@0
|
28 |
//
|
sl@0
|
29 |
#include <e32base.h>
|
sl@0
|
30 |
|
sl@0
|
31 |
// Constants
|
sl@0
|
32 |
//
|
sl@0
|
33 |
const TInt KPlusChar = '+';
|
sl@0
|
34 |
const TInt KMinusChar = '-';
|
sl@0
|
35 |
const TInt KPeriodChar = '.';
|
sl@0
|
36 |
|
sl@0
|
37 |
//File URI Constants
|
sl@0
|
38 |
//
|
sl@0
|
39 |
_LIT(KPrivate, "private/");
|
sl@0
|
40 |
_LIT(KExtMedia, "ext-media/");
|
sl@0
|
41 |
_LIT8(KFileUriScheme8, "file");
|
sl@0
|
42 |
_LIT(KFileUriScheme16, "file");
|
sl@0
|
43 |
_LIT(KDefaultPath,"C:\\");
|
sl@0
|
44 |
|
sl@0
|
45 |
const TInt KDriveSeparator = ':';
|
sl@0
|
46 |
const TInt KUriPathSeparator = '/';
|
sl@0
|
47 |
const TInt KFilePathSeparator = '\\';
|
sl@0
|
48 |
|
sl@0
|
49 |
|
sl@0
|
50 |
|
sl@0
|
51 |
template<class TPtrCType>
|
sl@0
|
52 |
LOCAL_C TBool HasValidSchemeChars(const TPtrCType& aScheme);
|
sl@0
|
53 |
|
sl@0
|
54 |
HBufC8* CreateUri8LC(const TDesC16& aBuf16);
|
sl@0
|
55 |
|
sl@0
|
56 |
TInt DoValidate(const TUriC8& aUri);
|
sl@0
|
57 |
|
sl@0
|
58 |
TInt DoEquivalenceL(const TUriC8& aLhs, const TUriC8& aRhs);
|
sl@0
|
59 |
|
sl@0
|
60 |
void ChangePathSeparator(TDes& aDesPtr, TUint aPathSeperatorFrom, TUint aPathSeperatorTo);
|
sl@0
|
61 |
|
sl@0
|
62 |
HBufC* GetFullFileNameFromFileUriPathL(const TDesC& aFileUriPath);
|
sl@0
|
63 |
HBufC* ResolveFileNameL(const TDesC8& aPath, TUriFileName aType, TBool aIsFileUri);
|
sl@0
|
64 |
void GetFileComponent(TPtrC& aNewName, const TDesC& aOldName, TUriFileName aType );
|
sl@0
|
65 |
|
sl@0
|
66 |
|
sl@0
|
67 |
#endif // __TURICINTERNAL_H__
|