epoc32/include/delimitedquery8.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
--- a/epoc32/include/delimitedquery8.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/delimitedquery8.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,84 @@
-delimitedquery8.h
+// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// 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
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#ifndef __DELIMITEDQUERY8_H__
+#define __DELIMITEDQUERY8_H__
+
+/**
+	@file DelimitedQuery8.h
+	Comments :	This file contains the API definition for the classes TDelimitedQueryParser8
+				and CDelimitedQuery8. 
+	@publishedAll
+	@released
+ */
+
+// System includes
+//
+#include <e32base.h>
+#include <delimitedparser8.h>
+
+
+/**
+Dependencies : TDelimitedParserBase8
+Comments : Derived class from TDelimitedParserBase providing a class for parsing 
+querys delimited by a '&' as defined in RFC2396.
+@publishedAll
+@released
+@since 6.0
+*/
+class TDelimitedQueryParser8 : public TDelimitedParserBase8
+	{
+public:	// Methods
+
+	IMPORT_C TDelimitedQueryParser8();
+
+	IMPORT_C void Parse(const TDesC8& aQuery);
+
+	IMPORT_C void ParseReverse(const TDesC8& aQuery);
+	};
+
+/**
+Dependencies : CDelimitedStringBase8
+Comments : Provides functionality to create a delimited query where components of the 
+query delimited by '&' as defined in RFC2396.
+@publishedAll
+@released
+@since 6.0
+*/
+class CDelimitedQuery8 : public CDelimitedDataBase8
+	{
+public:	// Methods
+
+	IMPORT_C static CDelimitedQuery8* NewL(const TDesC8& aQuery);
+
+	IMPORT_C static CDelimitedQuery8* NewLC(const TDesC8& aQuery);
+
+	IMPORT_C ~CDelimitedQuery8();
+
+	IMPORT_C void InsertAndEscapeCurrentL(const TDesC8& aSegment);
+
+	IMPORT_C void PushAndEscapeFrontL(const TDesC8& aSegment);
+
+	IMPORT_C void PushAndEscapeBackL(const TDesC8& aSegment);
+
+private:	// Methods
+
+	CDelimitedQuery8();
+
+	void ConstructL(const TDesC8& aQuery);
+
+	};
+
+#endif	// __DELIMITEDQUERY8_H__