internetradio2.0/dataproviderinc/irhttpdataproviderobserver.h
changeset 14 896e9dbc5f19
parent 12 608f67c22514
child 15 065198191975
equal deleted inserted replaced
12:608f67c22514 14:896e9dbc5f19
     1 /*
       
     2 * Copyright (c) 2006-2007 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 "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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IRHTTPDATAPROVIDEROBSERVER_H
       
    20 #define IRHTTPDATAPROVIDEROBSERVER_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 /**
       
    25  * MIRHttpDataProviderObserver
       
    26  * passes events and responses body data with this interface. 
       
    27  * An instance of this class must be provided for construction of 
       
    28  * CIRHttpDataProvider.
       
    29  */
       
    30 class MIRHttpDataProviderObserver
       
    31     {
       
    32 public:
       
    33     
       
    34     /** 
       
    35      *  void MIRHttpDataProviderObserver::HttpEventComplete()
       
    36      *  Used to indicate HTTP event completion
       
    37      */
       
    38     virtual void HttpEventComplete() = 0;
       
    39     
       
    40     /** 
       
    41      *  void MIRHttpDataProviderObserver::HttpHeaderReceived( 
       
    42 	 *  const TDesC8& aHeaderData )
       
    43      *  Used to indicate HTTP header is received
       
    44      */
       
    45     virtual void HttpHeaderReceived( const TDesC8 &aHeaderData ) = 0;
       
    46         
       
    47     /** 
       
    48      *  HttpDateHeaderReceived(const TDesC8 &aHeader, const TTime& aTime );
       
    49      *  Used to indicate HTTP header is received
       
    50      *  to be set in the request header
       
    51      */
       
    52     virtual void HttpDateHeaderReceived(const TDesC8 &aHeader,
       
    53     	const TTime& aTime ) = 0;
       
    54 
       
    55     /** 
       
    56      *  void MIRHttpDataProviderObserver::HttpBodyReceived( 
       
    57      *  const TDesC8& aBodyData )
       
    58      *  Used to indicate HTTP body is received
       
    59      */
       
    60     virtual void HttpBodyReceived( const TDesC8 &aBodyData ) = 0;
       
    61     
       
    62     /** 
       
    63      *  void MIRHttpDataProviderObserver::HttpTransactionError(
       
    64      *  TInt aErrorCode)
       
    65      *  Used to indicate HTTP Transaction error
       
    66      */
       
    67     virtual void HttpTransactionError( TInt aErrorCode ) = 0;
       
    68     
       
    69     /** 
       
    70      *  void MIRHttpDataProviderObserver::HttpResponseCodeRecieved(
       
    71      *  TInt aResponseCode)
       
    72      *  Used to indicate HTTP response code recieved
       
    73      */
       
    74     virtual void HttpResponseCodeRecieved( TInt aResponseCode ) = 0;
       
    75     
       
    76     };
       
    77 
       
    78 #endif // IRHTTPDATAPROVIDEROBSERVER_H
       
    79 
       
    80 
       
    81 
       
    82