iaupdate/IAD/firmwareupdate/inc/iaupdatefwupdatehandler.h
changeset 0 ba25891c3a9e
child 77 d1838696558c
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef IAUPDATEFWUPDATEHANDLER_H
       
    20 #define IAUPDATEFWUPDATEHANDLER_H
       
    21 
       
    22 class CIAUpdateFWFotaModel;
       
    23 class CIAUpdateFWSyncAppEngine;
       
    24 
       
    25 #include <e32base.h>
       
    26 
       
    27 
       
    28 class CIAUpdateFWUpdateHandler : public CActive
       
    29     {
       
    30     public:
       
    31 
       
    32         IMPORT_C static CIAUpdateFWUpdateHandler* NewLC();
       
    33 
       
    34         IMPORT_C static CIAUpdateFWUpdateHandler* NewL();
       
    35     
       
    36         virtual ~CIAUpdateFWUpdateHandler();
       
    37 
       
    38     public:
       
    39       
       
    40         IMPORT_C void FirmWareUpdatewithNSU();
       
    41         
       
    42         IMPORT_C void FirmWareUpdatewithFOTA();
       
    43         
       
    44         IMPORT_C TBool IsDMSupportAvailableL();
       
    45 
       
    46     private:
       
    47     
       
    48         enum TRequest
       
    49             {
       
    50             EFOTA =1,
       
    51             ENSU
       
    52             };
       
    53  
       
    54         CIAUpdateFWUpdateHandler();
       
    55    
       
    56         void ConstructL();
       
    57    
       
    58         void RunL();
       
    59     
       
    60         void DoCancel();
       
    61 
       
    62         void ShowDialogL( TDesC& aText, TDesC& aHeading );
       
    63         
       
    64         void StartSyncL( const TInt aProfileId = KErrNotFound, const TBool aUseFotaProgressNote = EFalse);
       
    65     
       
    66     private: // data
       
    67 
       
    68         TRequest iRequest;
       
    69         CIAUpdateFWFotaModel* iFotaModel;
       
    70         CIAUpdateFWSyncAppEngine* iDMEngine;
       
    71     };
       
    72     
       
    73     
       
    74 #endif  //IAUPDATEFWUPDATEHANDLER_H