diff -r 000000000000 -r b497e44ab2fc omaprovisioning/provisioning/WAPAdapter/Inc/CWPWAPBrowserAdapter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omaprovisioning/provisioning/WAPAdapter/Inc/CWPWAPBrowserAdapter.h Thu Dec 17 09:07:52 2009 +0200 @@ -0,0 +1,102 @@ +/* +* Copyright (c) 2002-2006 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: Handles browser settings in provisioning. +* +*/ + + +#ifndef CWPWAPBROWSERADAPTER_H +#define CWPWAPBROWSERADAPTER_H + +// INCLUDES +#include "CWPWAPAdapterBase.h" + +#include +#include + + +// FORWARD DECLARATIONS +class CWPCharacteristic; +class CBookmarkDb; +// CLASS DECLARATION + +/** + * CWPWAPBrowserAdapter handles browser settings. + * + * @lib WPWAPAdapter + * @since 2.0 + */ +class CWPWAPBrowserAdapter : public CWPWAPAdapterBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + * @return CWPWAPBrowserAdapter instance + */ + static CWPWAPBrowserAdapter* NewL(); + + /** + * Destructor. + */ + ~CWPWAPBrowserAdapter(); + + public: // from CWPWAPAdapterBase + + void ApplicationL( CWPCharacteristic& aCharacteristic ); + void DeleteL( const TDesC8& aSaveData ); + + private: // New functions + /** + * C++ default constructor. + */ + CWPWAPBrowserAdapter(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + /** + * Create the bookmarks db. + */ + void CreateDbL(); + + private: // Data + // Title for browser items. Owns. + HBufC* iTitle; + + // Title for bookmarks. Owns. + HBufC* iBookmarkTitle; + + // Default name for browser items. Owns. + HBufC* iDefaultName; + + // Default name for bookmarks. Owns. + HBufC* iDefaultBookmarkName; + + // ETrue if one browser application has been processed. + TBool iProcessed; + + // Favourites database. Owns. + CBookmarkDb* iBookmarkDb; + + RFavouritesSession iSession; + + RFavouritesDb iFavouritesDb; + }; + +#endif // CWPWAPBROWSERADAPTER_H + +// End of File