filemanager/src/fmbkupenginewrapper/src/fmbkupengine.cpp
changeset 16 ada7962b4308
parent 14 1957042d8c7e
child 18 edd66bde63a4
child 25 b7bfdea70ca2
equal deleted inserted replaced
14:1957042d8c7e 16:ada7962b4308
    30 	connect( d, SIGNAL( notifyStart( bool, int ) ), this, SIGNAL( notifyStart( bool, int ) ) );
    30 	connect( d, SIGNAL( notifyStart( bool, int ) ), this, SIGNAL( notifyStart( bool, int ) ) );
    31 	connect( d, SIGNAL( notifyUpdate(int) ), this, SIGNAL( notifyUpdate(int) ) );
    31 	connect( d, SIGNAL( notifyUpdate(int) ), this, SIGNAL( notifyUpdate(int) ) );
    32 	connect( d, SIGNAL( notifyFinish(int) ), 
    32 	connect( d, SIGNAL( notifyFinish(int) ), 
    33 			this, SIGNAL( notifyFinish(int) ) );
    33 			this, SIGNAL( notifyFinish(int) ) );
    34 	connect( d, SIGNAL( notifyMemoryLow(int, int& ) ), this, SIGNAL( notifyMemoryLow(int, int&) ) );
    34 	connect( d, SIGNAL( notifyMemoryLow(int, int& ) ), this, SIGNAL( notifyMemoryLow(int, int&) ) );
       
    35 	connect( d, SIGNAL( notifyBackupFilesExist( bool& )), this, SIGNAL( notifyBackupFilesExist( bool&) ) );
    35 }
    36 }
    36 
    37 
    37 
    38 
    38 FmBkupEngine::~FmBkupEngine()
    39 FmBkupEngine::~FmBkupEngine()
    39 {
    40 {
    69 
    70 
    70 FmBackupSettings *FmBkupEngine::BackupSettingsL()
    71 FmBackupSettings *FmBkupEngine::BackupSettingsL()
    71 {
    72 {
    72     if ( !iBackupSettings )
    73     if ( !iBackupSettings )
    73         {
    74         {
    74         iBackupSettings = new FmBackupSettings();
    75         iBackupSettings = new FmBackupSettings( this );
    75         }
    76         }
    76     return iBackupSettings;
    77     return iBackupSettings;
    77 }
    78 }
    78 
    79 
    79 FmRestoreSettings *FmBkupEngine::RestoreSettingsL()
    80 FmRestoreSettings *FmBkupEngine::RestoreSettingsL()
    86 }
    87 }
    87     
    88     
    88 void FmBkupEngine::GetRestoreInfoArray( QList<FmBkupDrivesAndOperation* > &drivesAndOperationList,
    89 void FmBkupEngine::GetRestoreInfoArray( QList<FmBkupDrivesAndOperation* > &drivesAndOperationList,
    89         QList< FmRestoreInfo > &restoreInfoList,
    90         QList< FmRestoreInfo > &restoreInfoList,
    90         const int aDrive )
    91         const int aDrive )
    91     {
    92 {
    92     d->GetRestoreInfoArray( drivesAndOperationList, restoreInfoList, aDrive );
    93     d->GetRestoreInfoArray( drivesAndOperationList, restoreInfoList, aDrive );
    93     }
    94 }
    94 
    95 
    95 int FmBkupEngine::deleteBackup( QList<FmBkupDrivesAndOperation* > drivesAndOperationList )
    96 int FmBkupEngine::deleteBackup( QList<FmBkupDrivesAndOperation* > drivesAndOperationList )
    96     {
    97 {
    97     return d->deleteBackup( drivesAndOperationList );
    98     return d->deleteBackup( drivesAndOperationList );
    98     }
    99 }
    99 
   100 
   100 
   101 
       
   102 void FmBkupEngine::getBackupDriveList( QStringList &driveList )
       
   103 {
       
   104     d->getBackupDriveList( driveList );
       
   105 }
       
   106