author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
parent 2 | 2fe1408b6811 |
permissions | -rw-r--r-- |
williamr@2 | 1 |
// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@2 | 2 |
// All rights reserved. |
williamr@2 | 3 |
// This component and the accompanying materials are made available |
williamr@4 | 4 |
// under the terms of "Eclipse Public License v1.0" |
williamr@2 | 5 |
// which accompanies this distribution, and is available |
williamr@4 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@2 | 7 |
// |
williamr@2 | 8 |
// Initial Contributors: |
williamr@2 | 9 |
// Nokia Corporation - initial contribution. |
williamr@2 | 10 |
// |
williamr@2 | 11 |
// Contributors: |
williamr@2 | 12 |
// |
williamr@2 | 13 |
// Description: |
williamr@2 | 14 |
// |
williamr@2 | 15 |
|
williamr@2 | 16 |
#ifndef __DELIMITEDPATHSEGMENT16_H__ |
williamr@2 | 17 |
#define __DELIMITEDPATHSEGMENT16_H__ |
williamr@2 | 18 |
|
williamr@2 | 19 |
/** |
williamr@2 | 20 |
@file DelimitedPathSegment16.h |
williamr@2 | 21 |
Comments : This file contains the API definition for the classes TDelimitedPathSegmentParser16 |
williamr@2 | 22 |
and CDelimitedPathSegment16. |
williamr@2 | 23 |
@publishedAll |
williamr@2 | 24 |
@released |
williamr@2 | 25 |
*/ |
williamr@2 | 26 |
|
williamr@2 | 27 |
// System includes |
williamr@2 | 28 |
// |
williamr@2 | 29 |
#include <e32base.h> |
williamr@2 | 30 |
#include <delimitedparser16.h> |
williamr@2 | 31 |
|
williamr@2 | 32 |
|
williamr@2 | 33 |
/** |
williamr@2 | 34 |
Dependencies : TDelimitedParserBase16 |
williamr@2 | 35 |
Comments : Derived class from TDelimitedParserBase providing a class for parsing path segments |
williamr@2 | 36 |
delimited by '/' as defined in RFC2396. |
williamr@2 | 37 |
@publishedAll |
williamr@2 | 38 |
@released |
williamr@2 | 39 |
@since 6.0 |
williamr@2 | 40 |
*/ |
williamr@2 | 41 |
class TDelimitedPathSegmentParser16 : public TDelimitedParserBase16 |
williamr@2 | 42 |
{ |
williamr@2 | 43 |
public: // Methods |
williamr@2 | 44 |
|
williamr@2 | 45 |
IMPORT_C TDelimitedPathSegmentParser16(); |
williamr@2 | 46 |
|
williamr@2 | 47 |
IMPORT_C void Parse(const TDesC16& aPathSegment); |
williamr@2 | 48 |
|
williamr@2 | 49 |
IMPORT_C void ParseReverse(const TDesC16& aPathSegment); |
williamr@2 | 50 |
}; |
williamr@2 | 51 |
|
williamr@2 | 52 |
/** |
williamr@2 | 53 |
Dependencies : CDelimitedStringBase16 |
williamr@2 | 54 |
Comments : Provides functionality to create a delimited path segment where components of the |
williamr@2 | 55 |
path segment delimited by '/' as defined in RFC2396. |
williamr@2 | 56 |
@publishedAll |
williamr@2 | 57 |
@released |
williamr@2 | 58 |
@since 6.0 |
williamr@2 | 59 |
*/ |
williamr@2 | 60 |
class CDelimitedPathSegment16 : public CDelimitedDataBase16 |
williamr@2 | 61 |
{ |
williamr@2 | 62 |
public: // Methods |
williamr@2 | 63 |
|
williamr@2 | 64 |
IMPORT_C static CDelimitedPathSegment16* NewL(const TDesC16& aPathSegment); |
williamr@2 | 65 |
|
williamr@2 | 66 |
IMPORT_C static CDelimitedPathSegment16* NewLC(const TDesC16& aPathSegment); |
williamr@2 | 67 |
|
williamr@2 | 68 |
IMPORT_C ~CDelimitedPathSegment16(); |
williamr@2 | 69 |
|
williamr@2 | 70 |
IMPORT_C void InsertAndEscapeCurrentL(const TDesC16& aParam); |
williamr@2 | 71 |
|
williamr@2 | 72 |
IMPORT_C void PushAndEscapeBackL(const TDesC16& aParam); |
williamr@2 | 73 |
|
williamr@2 | 74 |
IMPORT_C void PushAndEscapeFrontL(const TDesC16& aParam); |
williamr@2 | 75 |
|
williamr@2 | 76 |
private: // Methods |
williamr@2 | 77 |
|
williamr@2 | 78 |
CDelimitedPathSegment16(); |
williamr@2 | 79 |
|
williamr@2 | 80 |
void ConstructL(const TDesC16& aPathSegment); |
williamr@2 | 81 |
|
williamr@2 | 82 |
}; |
williamr@2 | 83 |
|
williamr@2 | 84 |
/** |
williamr@2 | 85 |
typedef |
williamr@2 | 86 |
@publishedAll |
williamr@2 | 87 |
@released |
williamr@2 | 88 |
*/ |
williamr@2 | 89 |
typedef TDelimitedPathSegmentParser16 TDelimitedPathSegmentParser; |
williamr@2 | 90 |
|
williamr@2 | 91 |
/** |
williamr@2 | 92 |
typedef |
williamr@2 | 93 |
@publishedAll |
williamr@2 | 94 |
@released |
williamr@2 | 95 |
*/ |
williamr@2 | 96 |
typedef CDelimitedPathSegment16 CDelimitedPathSegment; |
williamr@2 | 97 |
|
williamr@2 | 98 |
#endif // __DELIMITEDPATHSEGMENT16_H__ |