1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __DELIMITEDPATHSEGMENT8_H__
17 #define __DELIMITEDPATHSEGMENT8_H__
20 @file DelimitedPathSegment8.h
21 Comments : This file contains the API definition for the classes TDelimitedPathSegmentParser8
22 and CDelimitedPathSegment8.
30 #include <delimitedparser8.h>
34 Dependencies : TDelimitedParserBase8
35 Comments : Derived class from TDelimitedParserBase providing a class for parsing
36 path segments delimited by a ';' as defined in RFC2396.
41 class TDelimitedPathSegmentParser8 : public TDelimitedParserBase8
46 IMPORT_C TDelimitedPathSegmentParser8();
48 IMPORT_C void Parse(const TDesC8& aPathSegment);
50 IMPORT_C void ParseReverse(const TDesC8& aPathSegment);
54 Dependencies : CDelimitedStringBase8
55 Comments : Provides functionality to create a delimited path segment where components of the
56 path segment delimited by '/' as defined in RFC2396.
61 class CDelimitedPathSegment8 : public CDelimitedDataBase8
65 IMPORT_C static CDelimitedPathSegment8* NewL(const TDesC8& aPathSegment);
67 IMPORT_C static CDelimitedPathSegment8* NewLC(const TDesC8& aPathSegment);
69 IMPORT_C ~CDelimitedPathSegment8();
71 IMPORT_C void InsertAndEscapeCurrentL(const TDesC8& aParam);
73 IMPORT_C void PushAndEscapeFrontL(const TDesC8& aParam);
75 IMPORT_C void PushAndEscapeBackL(const TDesC8& aParam);
79 CDelimitedPathSegment8();
81 void ConstructL(const TDesC8& aPathSegment);
85 #endif // __DELIMITEDPATHSEGMENT8_H__