genericservices/httputils/inc/DelimitedQuery8.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __DELIMITEDQUERY8_H__
       
    17 #define __DELIMITEDQUERY8_H__
       
    18 
       
    19 /**
       
    20 	@file DelimitedQuery8.h
       
    21 	Comments :	This file contains the API definition for the classes TDelimitedQueryParser8
       
    22 				and CDelimitedQuery8. 
       
    23 	@publishedAll
       
    24 	@released
       
    25  */
       
    26 
       
    27 // System includes
       
    28 //
       
    29 #include <e32base.h>
       
    30 #include <delimitedparser8.h>
       
    31 
       
    32 
       
    33 /**
       
    34 Dependencies : TDelimitedParserBase8
       
    35 Comments : Derived class from TDelimitedParserBase providing a class for parsing 
       
    36 querys delimited by a '&' as defined in RFC2396.
       
    37 @publishedAll
       
    38 @released
       
    39 @since 6.0
       
    40 */
       
    41 class TDelimitedQueryParser8 : public TDelimitedParserBase8
       
    42 	{
       
    43 public:	// Methods
       
    44 
       
    45 	IMPORT_C TDelimitedQueryParser8();
       
    46 
       
    47 	IMPORT_C void Parse(const TDesC8& aQuery);
       
    48 
       
    49 	IMPORT_C void ParseReverse(const TDesC8& aQuery);
       
    50 	};
       
    51 
       
    52 /**
       
    53 Dependencies : CDelimitedStringBase8
       
    54 Comments : Provides functionality to create a delimited query where components of the 
       
    55 query delimited by '&' as defined in RFC2396.
       
    56 @publishedAll
       
    57 @released
       
    58 @since 6.0
       
    59 */
       
    60 class CDelimitedQuery8 : public CDelimitedDataBase8
       
    61 	{
       
    62 public:	// Methods
       
    63 
       
    64 	IMPORT_C static CDelimitedQuery8* NewL(const TDesC8& aQuery);
       
    65 
       
    66 	IMPORT_C static CDelimitedQuery8* NewLC(const TDesC8& aQuery);
       
    67 
       
    68 	IMPORT_C ~CDelimitedQuery8();
       
    69 
       
    70 	IMPORT_C void InsertAndEscapeCurrentL(const TDesC8& aSegment);
       
    71 
       
    72 	IMPORT_C void PushAndEscapeFrontL(const TDesC8& aSegment);
       
    73 
       
    74 	IMPORT_C void PushAndEscapeBackL(const TDesC8& aSegment);
       
    75 
       
    76 private:	// Methods
       
    77 
       
    78 	CDelimitedQuery8();
       
    79 
       
    80 	void ConstructL(const TDesC8& aQuery);
       
    81 
       
    82 	};
       
    83 
       
    84 #endif	// __DELIMITEDQUERY8_H__