messagingfw/biomsgfw/IACPINC/wwwp.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:45:03 +0300
changeset 32 f8bdbd193745
parent 0 8e480a14352b
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

// Copyright (c) 2000-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:
// WWW Hotlist Item Settings
// 
//

#ifndef __WWWP_H__
#define __WWWP_H__

#include <ipaddr.h>

class CWWWHotlistItem  : public CBase
/**
@internalComponent
@released
*/
	{
public:
	CWWWHotlistItem();
	~CWWWHotlistItem();
	const TDesC& Name() const;
	const TDesC& Url() const;

	void SetNameL(const TDesC& aDes);
	void SetUrlL(const TDesC& aDes);

private:
	HBufC*	iBmkName;	// Name of the bookmark entry 
	CIpAddress*	iBmkUrl;	// URL of the bookmark entry
	};


class CWWWHotlistParser : public CBase
/**
@internalComponent
@released
*/
	{
public:
	static CWWWHotlistParser* NewL(RFs& aFs);
	~CWWWHotlistParser();
	void ParseL(CParsedFieldCollection& aIacpFields);
	void ProcessL(CMsvEntry& aEntry); 

private:
	CWWWHotlistParser(RFs& aFs);
	void ConstructL();
	void StoreL(CMsvEntry& aEntry);

private:
	CArrayPtrSeg<CWWWHotlistItem>*	iHotlistItemList;   // Array of bookmarks to store
	RFs&							iFs;
	};
#endif