diff -r 6385c4c93049 -r 8e6fa1719340 browserui/browser/BrowserAppInc/BrowserAppDocument.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browserui/browser/BrowserAppInc/BrowserAppDocument.h Wed Sep 01 12:31:04 2010 +0100 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* Browser document class +* +* +*/ + +#ifndef __BROWSERAPPDOCUMENT_H +#define __BROWSERAPPDOCUMENT_H + +#include +#include "BrowserUtil.h" +#include + +//CONSTANTS +_LIT( KAttachment,"c:\\system\\temp\\Attachment.html"); +_LIT( KMailerStoreUid,"1000484b"); + +class MDownloadedContentHandler; + +// CAknDocument +class CBrowserAppDocument : public CAknDocument +{ +public: + CBrowserAppDocument(CEikApplication& aApp); + virtual ~CBrowserAppDocument(); + + inline void SetFolderToOpen(TInt aFolderId) { iFolderToOpen = aFolderId; } + + /** + * Set the MDownloadedContentHandler implementation. + * @param aObserver The implementation. + * @return None. + */ + inline void SetDownloadedContentHandler(MDownloadedContentHandler *aObserver); + + inline void SetIsContentHandlerRegistered( TBool aIsContentHandlerRegistered ) + { iIsContentHandlerRegistered = aIsContentHandlerRegistered; } + + inline TBool IsContentHandlerRegistered() const + { return iIsContentHandlerRegistered; }; + + TInt GetFolderToOpen() const; + + HBufC* GetUrlToOpen() const; + + MDownloadedContentHandler *GetDownloadedContentHandler() const; + + CFileStore* OpenFileL(TBool aDoOpen, const TDesC& aFileName, RFs& aFs); + + void OpenFileL(CFileStore*& aFileStore, RFile& aFile); + + TBrowserOverriddenSettings* GetOverriddenSettings(); + + inline void SetOverriddenSettings(TBrowserOverriddenSettings* aSettings){ iOverriddenSettings = aSettings; }; + +protected: + CEikAppUi* CreateAppUiL(); + +private: + MDownloadedContentHandler *iDownloadedContentHandler; + TInt iFolderToOpen; + TBool iIsContentHandlerRegistered; + HBufC* iUrlToOpen; + TBrowserOverriddenSettings* iOverriddenSettings; +}; + +#include "BrowserAppDocument.inl" + +#endif \ No newline at end of file