applayerpluginsandutils/uripermissionservices/server/inc/tldproperties.h
changeset 0 b16258d2340f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/applayerpluginsandutils/uripermissionservices/server/inc/tldproperties.h	Tue Feb 02 01:09:52 2010 +0200
@@ -0,0 +1,53 @@
+// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+
+
+#ifndef __TLDPROPERTIES_H__
+#define __TLDPROPERTIES_H__
+
+#include <ineturilistdef.h>
+#include <s32mem.h>
+
+/**
+This class holds all the associated properties of TLD uri  such as TLD name, List type and Policy data. 
+
+@internalComponent
+*/
+NONSHARABLE_CLASS ( CTldProperties ) : public CBase
+	{
+	public:
+	static CTldProperties* NewL ( InetUriList::TListType aListType );
+	
+	~CTldProperties ();
+	
+	InetUriList::TListType ListType () const;
+	const TDesC8& TldName () const;
+	const TDesC8& CharacterSet () const;
+	
+	void SetListType ( InetUriList::TListType aListType );
+	void SetTldNameL ( const TDesC8& aTldName );
+	void SetCharacterSetL ( const TDesC8& aCharacterSet );
+	
+	void Clear ();
+	
+	private:
+	CTldProperties ( InetUriList::TListType aListType );
+
+	private:
+	RBuf8						iTldName;
+	InetUriList::TListType 		iListType;
+	RBuf8	 					iCharacterSet;				
+	};
+
+#endif // __TLDPROPERTIES_H__