filemanager/src/fmbkupenginewrapper/inc/fmbackupsettings.h
changeset 18 edd66bde63a4
parent 16 ada7962b4308
child 24 1d0c87b42e2e
--- a/filemanager/src/fmbkupenginewrapper/inc/fmbackupsettings.h	Mon May 03 12:24:39 2010 +0300
+++ b/filemanager/src/fmbkupenginewrapper/inc/fmbackupsettings.h	Fri May 14 15:42:43 2010 +0300
@@ -69,7 +69,8 @@
         EScheduling,
         EWeekday,
         ETime,
-        ETarget
+        ETarget,
+        EBackupdate
     };
 
 public:
@@ -241,6 +242,14 @@
     QString targetDrive() const;
 
     /**
+     * Gets available backup target drive
+     * if targetDrive exist, return targetDrive
+     * otherwise return other first available backup drive
+     * @return Available backup target drive, empty QString for null
+     */
+    QString availableTargetDrive() const;
+    
+    /**
      * Loads saved backup settings
      */
     void load();
@@ -284,6 +293,10 @@
      */
     QString targetDriveToString( const QString& targetDrive );
     
+    /**
+     * Updates the backup date
+     */
+    void updateBackupDate();
 private:
     /**
      * Gets the count of contents selected
@@ -318,6 +331,11 @@
      */
     FmBackupEntry* createTargetDriveEntry();
 
+    /**
+     * Creates backup date entry
+     */
+    FmBackupEntry* createBackupDateEntry();
+    
     void refreshList();
     void resetAndDestoryBackupEntry();
 private:
@@ -348,10 +366,16 @@
     QString mTargetDrive;
 
     /**
+     * Backup date
+     */
+    QDate mDate;
+    
+    /**
      * Backup setting list items
      */
     QList< FmBackupEntry* > mBackupEntryList;
     
+    
     FmBkupEngine *mBkupEngine;
 };