browserutilities/downloadmgr/DownloadMgrClntSrv/inc/DownloadMgrCod.h
changeset 0 dd21522fd290
child 36 0ed94ceaa377
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_CODOBSERVER_H__
       
    22 #define __DOWNLOADMGR_CODOBSERVER_H__
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <CodDownload.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class RHttpDownloadMgr;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 NONSHARABLE_STRUCT( SDMgrCodUserData )
       
    32     {
       
    33     public:
       
    34         MCodDownloadObserver::TEvent iPrevCodEvent;
       
    35         TInt                         iHandle;
       
    36     };
       
    37 
       
    38 /**
       
    39 *  Handles the responses of the asyncron services.
       
    40 *  It can be created by a RHttpDownloadMgr session or 
       
    41 *  RHttpDownload subsession.
       
    42 *
       
    43 *  @lib -
       
    44 *  @since Series 60 2.8
       
    45 */
       
    46 NONSHARABLE_CLASS( CCodObserver ) : public CBase,
       
    47                                     public MCodDownloadObserver
       
    48 	{
       
    49     public:
       
    50 
       
    51         /**
       
    52         * Two-phased constructor.
       
    53         */
       
    54         static CCodObserver* NewL( RHttpDownloadMgr* aDownloadMgr );
       
    55         
       
    56         /**
       
    57         * Destructor.
       
    58         */
       
    59         virtual ~CCodObserver();
       
    60 
       
    61     public: // From MCodDownloadObserver
       
    62 
       
    63 	    void CodEventL( CCodDownload& aDownload, TEvent aEvent );
       
    64 
       
    65     private:
       
    66 
       
    67         /**
       
    68         * C++ default constructor.
       
    69         */
       
    70         CCodObserver( RHttpDownloadMgr* aDownloadMgr );
       
    71 
       
    72         /**
       
    73         * By default Symbian 2nd phase constructor is private.
       
    74         */
       
    75         void ConstructL();
       
    76 
       
    77 
       
    78     private:
       
    79 
       
    80         RHttpDownloadMgr* iDownloadMgr;  ///< NOT Owned.
       
    81         TBool iDlAttrCodPdAvailableSet; // 
       
    82         TBool iReadyForPD;
       
    83         
       
    84         //Following  variables are used to store the values during progress update.
       
    85         //These values are sent to server only if they are changed
       
    86         TInt32 iCodLength;         //Stores the value of size of CodDownLoad length
       
    87         HBufC* iFilename;         //Stores the value CodDownload path name
       
    88         
       
    89 	};
       
    90 
       
    91 
       
    92 #endif /* __DOWNLOADMGR_CODOBSERVER_H__ */
       
    93