williamr@2: // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // 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 williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __DELIMITEDPATHSEGMENT16_H__ williamr@2: #define __DELIMITEDPATHSEGMENT16_H__ williamr@2: williamr@2: /** williamr@2: @file DelimitedPathSegment16.h williamr@2: Comments : This file contains the API definition for the classes TDelimitedPathSegmentParser16 williamr@2: and CDelimitedPathSegment16. williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: // System includes williamr@2: // williamr@2: #include williamr@2: #include williamr@2: williamr@2: williamr@2: /** williamr@2: Dependencies : TDelimitedParserBase16 williamr@2: Comments : Derived class from TDelimitedParserBase providing a class for parsing path segments williamr@2: delimited by '/' as defined in RFC2396. williamr@2: @publishedAll williamr@2: @released williamr@2: @since 6.0 williamr@2: */ williamr@2: class TDelimitedPathSegmentParser16 : public TDelimitedParserBase16 williamr@2: { williamr@2: public: // Methods williamr@2: williamr@2: IMPORT_C TDelimitedPathSegmentParser16(); williamr@2: williamr@2: IMPORT_C void Parse(const TDesC16& aPathSegment); williamr@2: williamr@2: IMPORT_C void ParseReverse(const TDesC16& aPathSegment); williamr@2: }; williamr@2: williamr@2: /** williamr@2: Dependencies : CDelimitedStringBase16 williamr@2: Comments : Provides functionality to create a delimited path segment where components of the williamr@2: path segment delimited by '/' as defined in RFC2396. williamr@2: @publishedAll williamr@2: @released williamr@2: @since 6.0 williamr@2: */ williamr@2: class CDelimitedPathSegment16 : public CDelimitedDataBase16 williamr@2: { williamr@2: public: // Methods williamr@2: williamr@2: IMPORT_C static CDelimitedPathSegment16* NewL(const TDesC16& aPathSegment); williamr@2: williamr@2: IMPORT_C static CDelimitedPathSegment16* NewLC(const TDesC16& aPathSegment); williamr@2: williamr@2: IMPORT_C ~CDelimitedPathSegment16(); williamr@2: williamr@2: IMPORT_C void InsertAndEscapeCurrentL(const TDesC16& aParam); williamr@2: williamr@2: IMPORT_C void PushAndEscapeBackL(const TDesC16& aParam); williamr@2: williamr@2: IMPORT_C void PushAndEscapeFrontL(const TDesC16& aParam); williamr@2: williamr@2: private: // Methods williamr@2: williamr@2: CDelimitedPathSegment16(); williamr@2: williamr@2: void ConstructL(const TDesC16& aPathSegment); williamr@2: williamr@2: }; williamr@2: williamr@2: /** williamr@2: typedef williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: typedef TDelimitedPathSegmentParser16 TDelimitedPathSegmentParser; williamr@2: williamr@2: /** williamr@2: typedef williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: typedef CDelimitedPathSegment16 CDelimitedPathSegment; williamr@2: williamr@2: #endif // __DELIMITEDPATHSEGMENT16_H__