web_plat/launcher_api/inc/DownloadedContentHandler.h
changeset 0 dd21522fd290
child 74 91031d3aab7d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web_plat/launcher_api/inc/DownloadedContentHandler.h	Mon Mar 30 12:54:55 2009 +0300
@@ -0,0 +1,60 @@
+/*
+* Copyright (c) 2002-2004 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:  Downloaded content handler interface.
+*
+*/
+
+
+#ifndef DOWNLOADEDCONTENTHANDLER_H
+#define DOWNLOADEDCONTENTHANDLER_H
+
+#include <e32std.h>
+#include <apmstd.h>
+
+// FORWARD DECLARATIONS
+
+class RFile;
+class CAiwGenericParamList;
+
+// CLASS DECLARATION
+
+/**
+*  Downloaded content handler interface. Clients should implement 
+*  it if they want to handle content that has been downloaded by 
+*  the BrowserLauncher.
+*/
+class MDownloadedContentHandler
+    {
+    public:
+
+        /**
+        * Handle downloaded content that has been saved to a file, 
+        * and return ETrue if it was handled successfully.
+        * @param aFileName File name with path.
+        * @param aParamList Generic parameter list.
+        * @param aContinue Output parameter: It must be ETrue if the caller wants 
+        *                  Browser not to terminate after the content is handled.
+        * @return ETrue if the implementer has processed the content. If it is 
+        *                  EFalse, BrowserLauncher opens that content in an 
+        *                  appropriate viewer application.
+        */
+        virtual TBool HandleContentL( const TDesC& aFileName, 
+                                      const CAiwGenericParamList& aParamList, 
+                                      TBool& aContinue ) = 0;
+
+        // reserved for future use
+        virtual TAny* DownloadedContentHandlerReserved1( TAny* /*aAnyParam*/ ) = 0;
+    };
+
+#endif // DOWNLOADEDCONTENTHANDLER_H