equal
deleted
inserted
replaced
79 int FmBkupEnginePrivate::deleteBackup( QList<FmBkupDrivesAndOperation* > drivesAndOperationList ) |
79 int FmBkupEnginePrivate::deleteBackup( QList<FmBkupDrivesAndOperation* > drivesAndOperationList ) |
80 { |
80 { |
81 mError = FmErrNone; |
81 mError = FmErrNone; |
82 |
82 |
83 selection.clear(); |
83 selection.clear(); |
84 FmRestoreSettings& rstSettings( *( q->RestoreSettingsL() ) ); |
84 FmRestoreSettings& rstSettings( *( q->RestoreSettings() ) ); |
85 rstSettings.GetSelectionL( selection ); |
85 rstSettings.GetSelection( selection ); |
86 QSettings settings("Nokia", "FileManager"); |
86 QSettings settings("Nokia", "FileManager"); |
87 foreach( FmRestoreInfo restoreInfo, selection ) { |
87 foreach( FmRestoreInfo restoreInfo, selection ) { |
88 switch( restoreInfo.content() ) |
88 switch( restoreInfo.content() ) |
89 { |
89 { |
90 case FmBkupEngineCommon::EFileManagerBackupContentSettings: |
90 case FmBkupEngineCommon::EFileManagerBackupContentSettings: |
133 return mError; |
133 return mError; |
134 |
134 |
135 } |
135 } |
136 |
136 |
137 // |
137 // |
138 bool FmBkupEnginePrivate::StartRestoreL( QList<FmBkupDrivesAndOperation* > drivesAndOperationList ) |
138 bool FmBkupEnginePrivate::startRestore( QList<FmBkupDrivesAndOperation* > drivesAndOperationList ) |
139 { |
139 { |
140 selection.clear(); |
140 selection.clear(); |
141 FmRestoreSettings& rstSettings( *( q->RestoreSettingsL() ) ); |
141 FmRestoreSettings& rstSettings( *( q->RestoreSettings() ) ); |
142 rstSettings.GetSelectionL( selection ); |
142 rstSettings.GetSelection( selection ); |
143 |
143 |
144 mError = mBkupThread->asyncRestore( drivesAndOperationList,selection ); |
144 mError = mBkupThread->asyncRestore( drivesAndOperationList,selection ); |
145 return ( mError == FmErrNone ); |
145 return ( mError == FmErrNone ); |
146 |
146 |
147 } |
147 } |