fotaapplication/fotaserver/FotaServer/inc/DevEncController.h
branchRCL_3
changeset 19 86979fe66c4c
parent 0 b497e44ab2fc
equal deleted inserted replaced
14:9e9792ae22e3 19:86979fe66c4c
    18 #ifndef __DEVENCCONTROLLER_H__
    18 #ifndef __DEVENCCONTROLLER_H__
    19 #define __DEVENCCONTROLLER_H__
    19 #define __DEVENCCONTROLLER_H__
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 #include <e32base.h>
    22 #include <e32base.h>
    23 #include <DevEncSession.h>
    23 
    24 #include <DevEncConstants.h>
    24 #include <DevEncConstants.h>
    25 #include "DevEncProgressDlg.h"
    25 #include "DevEncProgressDlg.h"
    26 #define KDevEncUIUid 0x2000259A
    26 #define KDevEncUIUid 0x2000259A
    27 
    27 
    28 //Forward declaration
    28 //Forward declaration
    29 class CFotaServer;
    29 class CFotaServer;
    30 
    30 class CDevEncSessionBase;
    31 
       
    32 class CDevEncStarterStarter;
    31 class CDevEncStarterStarter;
    33 class CDevEncProgressObserver;
    32 class CDevEncProgressObserver;
    34 
    33 
    35 class CDevEncController : public CBase
    34 class CDevEncController : public CBase
    36     {
    35     {
    60 
    59 
    61         void ConstructL();
    60         void ConstructL();
    62         
    61         
    63         TBool IsDeviceEncryptionSupportedL();
    62         TBool IsDeviceEncryptionSupportedL();
    64         
    63         
       
    64         void LoadDevEncSessionL();
       
    65         
       
    66         void UnloadDevEncSession();
       
    67         
    65         void StartDecryptionL();
    68         void StartDecryptionL();
    66         
    69         
    67         void StartEncryptionL();
    70         void StartEncryptionL();
    68         
    71         
    69         TBool CheckBatteryL();
    72         TBool CheckBatteryL();
    70         
    73         
    71     // Data
    74     // Data
    72         CFotaServer* iCallback; // parent
    75         CFotaServer* iCallback; // parent
    73         
    76         
    74         CDevEncSession*     iEncMemorySession; // Device Encryption engine session
    77 		RLibrary iLibrary;
       
    78                 
       
    79         CDevEncSessionBase*     iEncMemorySession; // Device Encryption engine session
    75 
    80 
    76         CDevEncProgressObserver* iDevEncObserver; //Observer for the encryption/decryption operation
    81         CDevEncProgressObserver* iDevEncObserver; //Observer for the encryption/decryption operation
    77         
    82         
    78         TDriveNumber iStorageDrive; //Holds the storage drive id
    83         TDriveNumber iStorageDrive; //Holds the storage drive id
    79         
    84