40
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Conversion utility
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef _CONVERSIONUTIL_H_
|
|
20 |
#define _CONVERSIONUTIL_H_
|
|
21 |
|
|
22 |
#include <favouritesitem.h>
|
|
23 |
|
|
24 |
class COMADSFolderObject;
|
|
25 |
class CVBookmarkConverter;
|
|
26 |
class CFolderItem;
|
|
27 |
|
|
28 |
class CBookmarkConversionUtil : public CBase
|
|
29 |
{
|
|
30 |
public:
|
|
31 |
static CBookmarkConversionUtil* NewL();
|
|
32 |
static CBookmarkConversionUtil* NewLC();
|
|
33 |
|
|
34 |
~CBookmarkConversionUtil();
|
|
35 |
|
|
36 |
void FavouritesItemToBufferL( const CFavouritesItem& aItem,
|
|
37 |
CBufFlat& aBuffer );
|
|
38 |
|
|
39 |
void RssItemToBufferL( const CFolderItem& aItem,
|
|
40 |
CBufFlat& aBuffer);
|
|
41 |
|
|
42 |
TInt BufferToFavouritesItemL( CFavouritesItem::TType aType,
|
|
43 |
CBufFlat& aBuffer, CFavouritesItem& aItem );
|
|
44 |
|
|
45 |
private:
|
|
46 |
|
|
47 |
void ConstructL();
|
|
48 |
|
|
49 |
COMADSFolderObject* iOmaConverter;
|
|
50 |
CVBookmarkConverter* iVBookmarkConverter;
|
|
51 |
};
|
|
52 |
|
|
53 |
#endif
|