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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __DELIMITEDPATHSEGMENT16_H__
17 #define __DELIMITEDPATHSEGMENT16_H__
20 @file DelimitedPathSegment16.h
21 Comments : This file contains the API definition for the classes TDelimitedPathSegmentParser16
22 and CDelimitedPathSegment16.
30 #include <delimitedparser16.h>
34 Dependencies : TDelimitedParserBase16
35 Comments : Derived class from TDelimitedParserBase providing a class for parsing path segments
36 delimited by '/' as defined in RFC2396.
41 class TDelimitedPathSegmentParser16 : public TDelimitedParserBase16
45 IMPORT_C TDelimitedPathSegmentParser16();
47 IMPORT_C void Parse(const TDesC16& aPathSegment);
49 IMPORT_C void ParseReverse(const TDesC16& aPathSegment);
53 Dependencies : CDelimitedStringBase16
54 Comments : Provides functionality to create a delimited path segment where components of the
55 path segment delimited by '/' as defined in RFC2396.
60 class CDelimitedPathSegment16 : public CDelimitedDataBase16
64 IMPORT_C static CDelimitedPathSegment16* NewL(const TDesC16& aPathSegment);
66 IMPORT_C static CDelimitedPathSegment16* NewLC(const TDesC16& aPathSegment);
68 IMPORT_C ~CDelimitedPathSegment16();
70 IMPORT_C void InsertAndEscapeCurrentL(const TDesC16& aParam);
72 IMPORT_C void PushAndEscapeBackL(const TDesC16& aParam);
74 IMPORT_C void PushAndEscapeFrontL(const TDesC16& aParam);
78 CDelimitedPathSegment16();
80 void ConstructL(const TDesC16& aPathSegment);
89 typedef TDelimitedPathSegmentParser16 TDelimitedPathSegmentParser;
96 typedef CDelimitedPathSegment16 CDelimitedPathSegment;
98 #endif // __DELIMITEDPATHSEGMENT16_H__