omads/omadsextensions/adapters/bookmark/inc/conversionutil.h
changeset 0 dab8a81a92de
child 3 c2b8a5ae6ed5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/omads/omadsextensions/adapters/bookmark/inc/conversionutil.h	Mon Nov 23 14:46:41 2009 +0200
@@ -0,0 +1,53 @@
+/*
+* Copyright (c) 2005-2007 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:  Conversion utility
+*
+*/
+
+
+#ifndef _CONVERSIONUTIL_H_
+#define _CONVERSIONUTIL_H_
+
+#include <FavouritesItem.h>
+
+class COMADSFolderObject;
+class CVBookmarkConverter;
+class CFolderItem;
+
+class CBookmarkConversionUtil : public CBase
+{
+public:
+    static CBookmarkConversionUtil* NewL();
+    static CBookmarkConversionUtil* NewLC();
+    
+    ~CBookmarkConversionUtil();
+    
+    void FavouritesItemToBufferL( const CFavouritesItem& aItem,
+        CBufFlat& aBuffer );
+    
+    void RssItemToBufferL( const CFolderItem& aItem,
+        CBufFlat& aBuffer);
+    
+    TInt BufferToFavouritesItemL( CFavouritesItem::TType aType,
+        CBufFlat& aBuffer, CFavouritesItem& aItem );
+        
+private:
+
+    void ConstructL();
+
+    COMADSFolderObject* iOmaConverter;
+    CVBookmarkConverter* iVBookmarkConverter;
+};
+
+#endif