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@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.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 __DELIMITEDPATHSEGMENT8_H__ williamr@2: #define __DELIMITEDPATHSEGMENT8_H__ williamr@2: williamr@2: /** williamr@2: @file DelimitedPathSegment8.h williamr@2: Comments : This file contains the API definition for the classes TDelimitedPathSegmentParser8 williamr@2: and CDelimitedPathSegment8. 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 : TDelimitedParserBase8 williamr@2: Comments : Derived class from TDelimitedParserBase providing a class for parsing williamr@2: path segments delimited by a ';' as defined in RFC2396. williamr@2: @publishedAll williamr@2: @released williamr@2: @since 6.0 williamr@2: */ williamr@2: class TDelimitedPathSegmentParser8 : public TDelimitedParserBase8 williamr@2: { williamr@2: public: // Methods williamr@2: williamr@2: williamr@2: IMPORT_C TDelimitedPathSegmentParser8(); williamr@2: williamr@2: IMPORT_C void Parse(const TDesC8& aPathSegment); williamr@2: williamr@2: IMPORT_C void ParseReverse(const TDesC8& aPathSegment); williamr@2: }; williamr@2: williamr@2: /** williamr@2: Dependencies : CDelimitedStringBase8 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 CDelimitedPathSegment8 : public CDelimitedDataBase8 williamr@2: { williamr@2: public: // Methods williamr@2: williamr@2: IMPORT_C static CDelimitedPathSegment8* NewL(const TDesC8& aPathSegment); williamr@2: williamr@2: IMPORT_C static CDelimitedPathSegment8* NewLC(const TDesC8& aPathSegment); williamr@2: williamr@2: IMPORT_C ~CDelimitedPathSegment8(); williamr@2: williamr@2: IMPORT_C void InsertAndEscapeCurrentL(const TDesC8& aParam); williamr@2: williamr@2: IMPORT_C void PushAndEscapeFrontL(const TDesC8& aParam); williamr@2: williamr@2: IMPORT_C void PushAndEscapeBackL(const TDesC8& aParam); williamr@2: williamr@2: private: // Methods williamr@2: williamr@2: CDelimitedPathSegment8(); williamr@2: williamr@2: void ConstructL(const TDesC8& aPathSegment); williamr@2: williamr@2: }; williamr@2: williamr@2: #endif // __DELIMITEDPATHSEGMENT8_H__