browserutilities/feedsengine/FeedsServer/UrlHandler/inc/UrlHandlerFactory.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2005 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:  A factory class used to create UrlHandlers.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef URL_HANDLER_FACTORY_H
       
    20 #define URL_HANDLER_FACTORY_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 #include "LoadObserver.h"
       
    27 #include "UrlHandler.h"
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // MACROS
       
    32 
       
    33 // DATA TYPES
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 
       
    39 // CLASS DECLARATION
       
    40 class CHttpConnection;
       
    41 
       
    42 
       
    43 /**
       
    44 *  A factory class used to create UrlHandlers.
       
    45 *
       
    46 *  \b Library: FeedsEngine.lib
       
    47 *
       
    48 *  @since 3.0
       
    49 */
       
    50 class UrlHandlerFactory
       
    51     {
       
    52     public:
       
    53         /**
       
    54         * Given the schema of the url it creates an url handler instance
       
    55         * capable of fetching the url.
       
    56         *
       
    57         * @since 3.0
       
    58         * @param aHttpConnection A shared http connection (not used for non
       
    59         *        http handlers).
       
    60         * @param aUrl The url to load
       
    61         * @param aObserver The load observer.
       
    62         * @return A UrlHandler.
       
    63         */
       
    64         static CUrlHandler* NewUrlHandlerL(CHttpConnection& aHttpConnection,
       
    65                 const TDesC& aUrl);
       
    66     };
       
    67 
       
    68 #endif      // URL_HANDLER_FACTORY_H
       
    69             
       
    70 // End of File