browserutilities/feedsengine/FeedsServer/UrlHandler/inc/LoadObserver.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:  An interface used to provide feed back from a UrlHandler.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef LOAD_OBSERVER_H
       
    20 #define LOAD_OBSERVER_H
       
    21 
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // MACROS
       
    29 
       
    30 // DATA TYPES
       
    31 
       
    32 // FUNCTION PROTOTYPES
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 
       
    36 // CLASS DECLARATION
       
    37 
       
    38 
       
    39 /**
       
    40 *  An interface used to provide feed back from a UrlHandler.
       
    41 *
       
    42 *  \b Library: FeedsEngine.lib
       
    43 *
       
    44 *  @since 3.0
       
    45 */
       
    46 class MLoadObserver
       
    47     {
       
    48     public:
       
    49         /**
       
    50         * Notifies the observer that the UrlHandler is about to start a lengthy 
       
    51         * operation.  In response the observer could display somekind of 
       
    52         * status indicator.
       
    53         *
       
    54         * @since 3.0
       
    55         * @return void.
       
    56         */
       
    57         virtual void StartWait() = 0;
       
    58 
       
    59         /**
       
    60         * Passes the status code and responseBody to the observer.  The observer
       
    61         * adopts aResponseBody.
       
    62         *
       
    63         * @since 3.0
       
    64         * @param aStatusCode The status code - normalized to the http response codes.
       
    65         * @param aResponseBody The response body or NULL.
       
    66         * @param aContentType The content-type.
       
    67         * @param aCharSet The char-encoding.
       
    68         * @return void.
       
    69         */
       
    70         virtual void LoadCompleted(TInt aStatusCode, TDesC8* aResponseBody,
       
    71                 const TDesC& aContentType, const TDesC& aCharSet) = 0;
       
    72     };
       
    73 
       
    74 #endif      // LOAD_OBSERVER_H
       
    75             
       
    76 // End of File