ncdengine/engine/transport/inc/catalogshttpdownloadmanagerimpl.h
changeset 60 245df5276b97
parent 53 ae54820ef82c
child 64 48c14c385b0e
equal deleted inserted replaced
53:ae54820ef82c 60:245df5276b97
    17 
    17 
    18 
    18 
    19 #ifndef C_CATALOGSHTTPDOWNLOADMANAGER_H
    19 #ifndef C_CATALOGSHTTPDOWNLOADMANAGER_H
    20 #define C_CATALOGSHTTPDOWNLOADMANAGER_H
    20 #define C_CATALOGSHTTPDOWNLOADMANAGER_H
    21 
    21 
    22 #include <DownloadMgrClient.h>
    22 // #include <DownloadMgrClient.h>
    23 
    23 
    24 #include "catalogstransportoperationid.h"
    24 #include "catalogstransportoperationid.h"
    25 #include "catalogshttpsession.h"    // RCatalogsHttpOperationArray
    25 #include "catalogshttpsession.h"    // RCatalogsHttpOperationArray
    26 #include "catalogshttpsessionmanager.h"
    26 #include "catalogshttpsessionmanager.h"
    27 
    27 
    28 #include "catalogsconnectionmethod.h"
    28 #include "catalogsconnectionmethod.h"
    29 #include "catalogsaccesspointobserver.h"
    29 #include "catalogsaccesspointobserver.h"
    30 #include <download.h>
    30 #include <download.h>
    31 #include <downloadmanager.h>
    31 #include <downloadmanager.h>
    32 #include <QObject>
    32 #include <QObject>
       
    33 
       
    34 #include <f32file.h> //HLa
       
    35 
    33 class MCatalogsHttpConfig;
    36 class MCatalogsHttpConfig;
    34 class CCatalogsHttpConfig;
    37 class CCatalogsHttpConfig;
    35 class CCatalogsHttpDownload;
    38 class CCatalogsHttpDownload;
    36 class MCatalogsHttpOperation;
    39 class MCatalogsHttpOperation;
    37 class MCatalogsHttpObserver;
    40 class MCatalogsHttpObserver;
   260         * an index to it or KErrNotFound.
   263         * an index to it or KErrNotFound.
   261         *
   264         *
   262         * @param aArray Array to search from
   265         * @param aArray Array to search from
   263         * @param aDownload Download to find
   266         * @param aDownload Download to find
   264         * @return Index to the download in iDownloads
   267         * @return Index to the download in iDownloads
   265         */      
   268         */
       
   269         /* HLa
   266         TInt FindInDownloads( 
   270         TInt FindInDownloads( 
   267             const RCatalogsHttpOperationArray& aArray,
   271             const RCatalogsHttpOperationArray& aArray,
   268             RHttpDownload* aDownload ) const;
   272             RHttpDownload* aDownload ) const;
   269 
   273         */
   270 
   274 
   271         /**
   275         /**
   272         * Searches for the given download from the given array and returns
   276         * Searches for the given download from the given array and returns
   273         * an index to it or KErrNotFound.
   277         * an index to it or KErrNotFound.
   274         *
   278         *
   284     private:
   288     private:
   285     
   289     
   286         /**
   290         /**
   287          * Download events
   291          * Download events
   288          */
   292          */
       
   293         /* HLa
   289         class TDownloadEvent        
   294         class TDownloadEvent        
   290             {
   295             {
   291         public:
   296         public:
   292             RHttpDownload* iDownload;   // not owned
   297             RHttpDownload* iDownload;   // not owned
   293 			THttpDownloadEvent iEvent;
   298 			THttpDownloadEvent iEvent;
   296 			    THttpDownloadEvent& aEvent ) :
   301 			    THttpDownloadEvent& aEvent ) :
   297 			    iDownload( &aDownload ), iEvent( aEvent ) 
   302 			    iDownload( &aDownload ), iEvent( aEvent ) 
   298 			        {
   303 			        {
   299 			        }
   304 			        }
   300             };
   305             };
   301 
   306           */
   302 
   307 
   303         /**
   308         /**
   304          * Sets this object active if event queue has unhandled events
   309          * Sets this object active if event queue has unhandled events
   305          */
   310          */
   306         void ContinueEventHandling();
   311         void ContinueEventHandling();
   307         
   312         
   308         /**
   313         /**
   309          * Removes events from event queue that belong to the same 
   314          * Removes events from event queue that belong to the same 
   310          * RHttpDownload as aEvent
   315          * RHttpDownload as aEvent
   311          */
   316          */
       
   317         /*
   312         void RemoveUnhandledEvents( 
   318         void RemoveUnhandledEvents( 
   313             const TDownloadEvent& aEvent );
   319             const TDownloadEvent& aEvent );
   314 
   320 
   315         void RemoveUnhandledProgressEvents( 
   321         void RemoveUnhandledProgressEvents( 
   316             const TDownloadEvent& aEvent );
   322             const TDownloadEvent& aEvent );
   317 
   323         */
       
   324         
   318         /**
   325         /**
   319          * Deletes downloads that have not been paused by the user
   326          * Deletes downloads that have not been paused by the user
   320          */
   327          */
   321         void DeleteHangingDownloads();
   328         void DeleteHangingDownloads();
   322 
   329 
   341         TInt iRefCount;
   348         TInt iRefCount;
   342         
   349         
   343         RFs iFs;
   350         RFs iFs;
   344         TCatalogsConnectionMethod iCurrentAp;
   351         TCatalogsConnectionMethod iCurrentAp;
   345 
   352 
   346         RArray<TDownloadEvent> iEventQueue;
   353         // RArray<TDownloadEvent> iEventQueue;  //HLa
   347         TInt iCurrentDlId; // id of the last created download
   354         TInt iCurrentDlId; // id of the last created download
   348     };
   355     };
   349 
   356 
   350 
   357 
   351 
   358