--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/creator/engine/inc/creator_browser.h Tue Aug 31 15:15:20 2010 +0300
@@ -0,0 +1,108 @@
+/*
+* Copyright (c) 2010 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 __CREATORBROWSER_H__
+#define __CREATORBROWSER_H__
+
+#include "engine.h"
+#include "creator_modulebase.h"
+
+#include <e32base.h>
+//#include <FavouritesItem.h>
+//#include <FavouritesDb.h>
+//#include <FavouritesFile.h>
+
+
+
+class CCreatorEngine;
+class CBrowserParameters;
+
+
+class CCreatorBrowser : public CCreatorModuleBase
+ {
+public:
+ static CCreatorBrowser* NewL(CCreatorEngine* aEngine);
+ static CCreatorBrowser* NewLC(CCreatorEngine* aEngine);
+ ~CCreatorBrowser();
+
+private:
+ CCreatorBrowser();
+ void ConstructL(CCreatorEngine* aEngine); // from MCreatorModuleBase
+
+public:
+ TBool AskDataFromUserL( TInt aCommand ); // from MCreatorModuleBase
+
+ TInt CreateBookmarkEntryL(CBrowserParameters *aParameters);
+ TInt CreateBookmarkFolderEntryL(CBrowserParameters *aParameters);
+ TInt CreateSavedDeckEntryL(CBrowserParameters *aParameters);
+ TInt CreateSavedDeckFolderEntryL(CBrowserParameters *aParameters);
+
+ void DeleteAllL();
+ void DeleteAllCreatedByCreatorL();
+
+ void DeleteAllBookmarksL();
+ void DeleteAllBookmarksCreatedByCreatorL();
+ void DeleteAllBookmarkFoldersL();
+ void DeleteAllBookmarkFoldersCreatedByCreatorL();
+ void DeleteAllSavedPagesL();
+ void DeleteAllSavedPagesCreatedByCreatorL();
+ void DeleteAllSavedPageFoldersL();
+ void DeleteAllSavedPageFoldersCreatedByCreatorL();
+
+private:
+ void DeleteAllItemsL( const TDesC& aDbName, CFavouritesItem::TType aTypeFilter, TBool aOnlyCreatedWithCreator, RArray<TInt>& aEntryIds, const TUid aDictUid );
+
+
+
+private:
+ CBrowserParameters* iParameters;
+ RArray<TInt> iBmEntryIds;
+ RArray<TInt> iBmFEntryIds;
+ RArray<TInt> iSpEntryIds;
+ RArray<TInt> iSpFEntryIds;
+public:
+ };
+
+
+class CBrowserParameters : public CCreatorModuleBaseParameters
+ {
+public:
+ HBufC* iBookmarkName;
+ HBufC* iBookmarkAddress;
+ TFavouritesWapAp iBookmarkAccessPoint;
+ HBufC* iBookmarkUsername;
+ HBufC* iBookmarkPassword;
+
+ HBufC* iBookmarkFolderName;
+
+ HBufC* iSavedDeckLinkName;
+ HBufC* iSavedDeckLocalAddress;
+
+ HBufC* iSavedDeckFolderName;
+
+public:
+ CBrowserParameters();
+ ~CBrowserParameters();
+ };
+
+
+
+#endif // __CREATORBROWSER_H__