web_plat/launcher_api/inc/DownloadedContentHandler.h
changeset 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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 the License "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:  Downloaded content handler interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DOWNLOADEDCONTENTHANDLER_H
       
    20 #define DOWNLOADEDCONTENTHANDLER_H
       
    21 
       
    22 #include <e32std.h>
       
    23 #include <apmstd.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 class RFile;
       
    28 class CAiwGenericParamList;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Downloaded content handler interface. Clients should implement 
       
    34 *  it if they want to handle content that has been downloaded by 
       
    35 *  the BrowserLauncher.
       
    36 */
       
    37 class MDownloadedContentHandler
       
    38     {
       
    39     public:
       
    40 
       
    41         /**
       
    42         * Handle downloaded content that has been saved to a file, 
       
    43         * and return ETrue if it was handled successfully.
       
    44         * @param aFileName File name with path.
       
    45         * @param aParamList Generic parameter list.
       
    46         * @param aContinue Output parameter: It must be ETrue if the caller wants 
       
    47         *                  Browser not to terminate after the content is handled.
       
    48         * @return ETrue if the implementer has processed the content. If it is 
       
    49         *                  EFalse, BrowserLauncher opens that content in an 
       
    50         *                  appropriate viewer application.
       
    51         */
       
    52         virtual TBool HandleContentL( const TDesC& aFileName, 
       
    53                                       const CAiwGenericParamList& aParamList, 
       
    54                                       TBool& aContinue ) = 0;
       
    55 
       
    56         // reserved for future use
       
    57         virtual TAny* DownloadedContentHandlerReserved1( TAny* /*aAnyParam*/ ) = 0;
       
    58     };
       
    59 
       
    60 #endif // DOWNLOADEDCONTENTHANDLER_H