epoc32/include/delimitedpath16.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 delimitedpath16.h
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __DELIMITEDPATH16_H__
       
    17 #define __DELIMITEDPATH16_H__
       
    18 
       
    19 /**
       
    20 	@file DelimitedPath16.h
       
    21 	Comments :	This file contains the API definition for the classes 
       
    22 				TDelimitedPathParser16 and CDelimitedPath16. 
       
    23 	@publishedAll
       
    24 	@released	
       
    25  */
       
    26 
       
    27 // System includes
       
    28 //
       
    29 #include <e32base.h>
       
    30 #include <delimitedparser16.h>
       
    31 
       
    32 
       
    33 /**
       
    34 Dependencies : TDelimitedParserBase16
       
    35 Comments : Derived class from TDelimitedParserBase providing a class for parsing paths
       
    36 delimited by '/' as defined in RFC2396.
       
    37 @publishedAll
       
    38 @released
       
    39 @since 6.0
       
    40 */
       
    41 class TDelimitedPathParser16 : public TDelimitedParserBase16
       
    42 	{
       
    43 public:	// Methods
       
    44 
       
    45 	IMPORT_C TDelimitedPathParser16();
       
    46 
       
    47 	IMPORT_C void Parse(const TDesC16& aPath);
       
    48 
       
    49 	IMPORT_C void ParseReverse(const TDesC16& aPath);
       
    50 	};
       
    51 
       
    52 /**
       
    53 Dependencies : CDelimitedStringBase16
       
    54 Comments : Provides functionality to create a delimited path where components of the 
       
    55 path delimited by '/' as defined in RFC2396.
       
    56 @publishedAll
       
    57 @released
       
    58 @since 6.0
       
    59 */
       
    60 class CDelimitedPath16 : public CDelimitedDataBase16
       
    61 	{
       
    62 public:	// Methods
       
    63 
       
    64 	IMPORT_C static CDelimitedPath16* NewL(const TDesC16& aPath);
       
    65 
       
    66 	IMPORT_C static CDelimitedPath16* NewLC(const TDesC16& aPath);
       
    67 
       
    68 	IMPORT_C ~CDelimitedPath16();
       
    69 
       
    70 	IMPORT_C void InsertAndEscapeCurrentL(const TDesC16& aSegment);
       
    71 
       
    72 	IMPORT_C void PushAndEscapeBackL(const TDesC16& aSegment);
       
    73 	
       
    74 	IMPORT_C void PushAndEscapeFrontL(const TDesC16& aSegment);
       
    75 
       
    76 private:	// Methods
       
    77 
       
    78 	CDelimitedPath16();
       
    79 
       
    80 	void ConstructL(const TDesC16& aPath);
       
    81 
       
    82 	};
       
    83 
       
    84 /**
       
    85 typedef 
       
    86 @publishedAll
       
    87 @released
       
    88 */
       
    89 typedef TDelimitedPathParser16 TDelimitedPathParser;
       
    90 
       
    91 /**
       
    92 typedef 
       
    93 @publishedAll
       
    94 @released
       
    95 */
       
    96 typedef CDelimitedPath16 CDelimitedPath;
       
    97 
       
    98 #endif	// __DELIMITEDPATH16_H__