harvester/client/src/harvesterrequestactive.cpp
branchRCL_3
changeset 14 646a02f170b9
parent 1 acef663c1218
child 40 910a23996aa0
child 45 a93990e5815e
child 47 b73252188534
equal deleted inserted replaced
8:6752808b2036 14:646a02f170b9
    48 // --------------------------------------------------------------------------- 
    48 // --------------------------------------------------------------------------- 
    49 //
    49 //
    50 CHarvesterRequestActive* CHarvesterRequestActive::NewL(
    50 CHarvesterRequestActive* CHarvesterRequestActive::NewL(
    51         RHarvesterClient& aClient, MHarvestObserver* aObserver,
    51         RHarvesterClient& aClient, MHarvestObserver* aObserver,
    52         TInt aService, const TDesC& aUri, 
    52         TInt aService, const TDesC& aUri, 
    53         HBufC8* aAlbumIds, TBool& aAddLocation,
    53         HBufC8* aAlbumIds, TBool aAddLocation,
    54         CHarvesterRequestQueue* aQueue )
    54         CHarvesterRequestQueue* aQueue )
    55     {
    55     {
    56     CHarvesterRequestActive* self = new( ELeave )CHarvesterRequestActive( aClient, aObserver,
    56     CHarvesterRequestActive* self = new( ELeave )CHarvesterRequestActive( aClient, aObserver,
    57             aService, aUri, aAlbumIds, aAddLocation, aQueue );
    57             aService, aUri, aAlbumIds, aAddLocation, aQueue );
    58     return self;
    58     return self;
    63 // C++ default constructor can NOT contain any code, that might leave.
    63 // C++ default constructor can NOT contain any code, that might leave.
    64 // ---------------------------------------------------------------------------
    64 // ---------------------------------------------------------------------------
    65 //
    65 //
    66 CHarvesterRequestActive::CHarvesterRequestActive( RHarvesterClient& aClient,
    66 CHarvesterRequestActive::CHarvesterRequestActive( RHarvesterClient& aClient,
    67     MHarvestObserver* aObserver, TInt aService, const TDesC& aUri, 
    67     MHarvestObserver* aObserver, TInt aService, const TDesC& aUri, 
    68     HBufC8* aAlbumIds, TBool& aAddLocation, CHarvesterRequestQueue* aQueue )
    68     HBufC8* aAlbumIds, TBool aAddLocation, CHarvesterRequestQueue* aQueue )
    69     : CActive( CActive::EPriorityStandard ), iClient( aClient ), iObserver( aObserver ), 
    69     : CActive( CActive::EPriorityStandard ), iClient( aClient ), iObserver( aObserver ), 
    70     iService( aService ), iUri( aUri ), iAlbumIds( aAlbumIds ), iAddLocation( aAddLocation ),
    70     iService( aService ), iUri( aUri ), iAlbumIds( aAlbumIds ), iAddLocation( aAddLocation ),
    71     iRequestQueue( aQueue ), iLocation( EFalse ), iCancelled( EFalse )
    71     iRequestQueue( aQueue ), iLocation( EFalse ), iCancelled( EFalse )
    72     {
    72     {
    73     CActiveScheduler::Add( this );
    73     CActiveScheduler::Add( this );