voipplugins/accountcreationplugin/engine/inc/macphttphandlerobserver.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:  Header file for MAcpHttpHandlerObserver
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MACPHTTPHANDLEROBSERVER_H
       
    20 #define MACPHTTPHANDLEROBSERVER_H
       
    21 
       
    22 class RHTTPTransaction;
       
    23 
       
    24 class MAcpHttpHandlerObserver
       
    25     {
       
    26 public:
       
    27 
       
    28     /**
       
    29      * Notifies observer about HTTP events.
       
    30      *
       
    31      * @since S60 v3.2
       
    32      * @param aEvent HTTP event.
       
    33      */ 
       
    34     virtual void NotifyHttpEvent( TInt aEvent ) = 0;
       
    35 
       
    36     /**
       
    37      * Notifies observer about HTTP event errors.
       
    38      *
       
    39      * @since S60 v3.2
       
    40      * @param aError HTTP event error.
       
    41      */ 
       
    42     virtual void NotifyHttpError( TInt aError ) = 0;
       
    43 
       
    44     /**
       
    45      * Notifies observer about received body.
       
    46      *
       
    47      * @since S60 v3.2
       
    48      * @param aBodyData Body data.
       
    49      */ 
       
    50     virtual void NotifyBodyReceived( const TDesC8& aBodyData ) = 0;
       
    51 
       
    52     /**
       
    53      * Notifies observer about received header.
       
    54      *
       
    55      * @since S60 v3.2
       
    56      * @param aContentType Content data.
       
    57      */
       
    58     virtual void NotifyContentTypeReceived( 
       
    59         const TDesC8& aContentType ) = 0; 
       
    60     
       
    61     /**
       
    62      * Notifies observer about received session id.
       
    63      * 
       
    64      * @since S60 v3.2
       
    65      * @param aSession Id Session id received from the server.
       
    66      */
       
    67     virtual void NotifySessionIdReceivedL(
       
    68         const TDesC8& aSessionId ) = 0;
       
    69     };
       
    70     
       
    71 #endif // MACPHTTPHANDLEROBSERVER_H
       
    72 
       
    73 // End of file.