applayerprotocols/wapbase/wutil/curl.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2000-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	 	__CURL_H__
       
    17 #define		__CURL_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 
       
    21 class CUrl
       
    22 	{
       
    23 public:
       
    24 
       
    25 	//	Enum of component parts of the Url.
       
    26 	//
       
    27 	enum TComponent
       
    28 		{	
       
    29 		EUrlScheme = 0x01,
       
    30 		EUrlLocation = 0x02,
       
    31 		EUrlPath = 0x04,
       
    32 		EUrlQuery = 0x08,
       
    33 		EUrlFragment = 0x10,
       
    34 		EUrlFileName = 0x20, // the end of the path
       
    35 		EUrlUsername = 0x40,
       
    36 		EUrlPassword = 0x80,
       
    37 		EUrlAuthority = EUrlLocation | EUrlUsername | EUrlPassword,
       
    38 		EUrlNoCredentials = EUrlScheme | EUrlLocation | EUrlPath | EUrlQuery |
       
    39 			EUrlFragment,
       
    40 		EUrlGenericCompare = EUrlScheme | EUrlAuthority | EUrlPath | EUrlQuery
       
    41 		};
       
    42 
       
    43 public:	
       
    44 	IMPORT_C static HBufC* EscapeDecodeL(const TDesC& aString);
       
    45 	IMPORT_C static HBufC* EscapeEncodeL(const TDesC& aString, TInt aEscapeMode);
       
    46 	
       
    47 private:	
       
    48 	IMPORT_C void Stub7();
       
    49 	IMPORT_C void Stub8();
       
    50 	IMPORT_C void Stub9();
       
    51 	IMPORT_C void Stub10();
       
    52 	IMPORT_C void Stub11();
       
    53 	IMPORT_C void Stub12();
       
    54 	IMPORT_C void Stub13();
       
    55 	IMPORT_C void Stub14();
       
    56 	IMPORT_C void Stub15();
       
    57 	IMPORT_C void Stub16();
       
    58 	IMPORT_C void Stub18();
       
    59 	IMPORT_C void Stub19();
       
    60 	IMPORT_C void Stub20();
       
    61 	IMPORT_C void Stub21();
       
    62 	};
       
    63 
       
    64 
       
    65 
       
    66 
       
    67 #endif 		 // __CURL_H__