browserutilities/downloadmgr/DownloadMgrClntSrv/inc/DownloadMgrTransObserver.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 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: 
       
    15 *     This file contains the definition of transaction observer of Download Mgr Server.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __DOWNLOADMGR_TRANSOBSERVER_H__
       
    22 #define __DOWNLOADMGR_TRANSOBSERVER_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <f32file.h>
       
    26 #include <http.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class RHttpDownload;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 
       
    34 /**
       
    35 *  Handles the responses of the asyncron services.
       
    36 *  It can be created by a RHttpDownloadMgr session or 
       
    37 *  RHttpDownload subsession.
       
    38 *
       
    39 *  @lib -
       
    40 *  @since Series 60 2.8
       
    41 */
       
    42 NONSHARABLE_CLASS( CTransactionObserver ) : public CBase,
       
    43                                             public MHTTPTransactionCallback
       
    44 	{
       
    45     public:
       
    46 
       
    47         /**
       
    48         * Two-phased constructor.
       
    49         */
       
    50         static CTransactionObserver* NewL( RHttpDownload* aDownload );
       
    51         
       
    52         /**
       
    53         * Destructor.
       
    54         */
       
    55         virtual ~CTransactionObserver();
       
    56 
       
    57     public: // From MHTTPTransactionCallback
       
    58 
       
    59 	    void MHFRunL(RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    60 
       
    61 
       
    62 	    TInt MHFRunError(TInt aError, RHTTPTransaction aTransaction, const THTTPEvent& aEvent);
       
    63 
       
    64 
       
    65     public:
       
    66 
       
    67         /**
       
    68         * .
       
    69         * @param -
       
    70         * @return None.
       
    71         */
       
    72 
       
    73     private:
       
    74 
       
    75         /**
       
    76         * C++ default constructor.
       
    77         */
       
    78         CTransactionObserver( RHttpDownload* aDownload );
       
    79 
       
    80         /**
       
    81         * By default Symbian 2nd phase constructor is private.
       
    82         */
       
    83         void ConstructL();
       
    84 
       
    85 
       
    86     private:
       
    87 
       
    88         RHttpDownload* iDownload;  ///< NOT Owned.
       
    89 	};
       
    90 
       
    91 
       
    92 #endif /* __DOWNLOADMGR_TRANSOBSERVER_H__ */
       
    93