Package timedrive :: Module app :: Class MainWindow
[frames] | no frames]

Class MainWindow


Main Window class

Instance Methods
 
__init__(self)
Initialization function for MainWindow
 
setupRestoreList(self, currentModel=None)
 
setupSnapshotsList(self, currentModel=None)
 
buttonSettings_Pressed(self)
 
buttonAddToQueue_Pressed(self)
 
buttonRemoveFromQueue_Pressed(self)
 
loadSnapshotsStarted(self)
 
loadSnapshotsFinished(self)
 
restoreFilesStarted(self)
 
restoreFilesFinished(self, taskName, message)
 
RestoreOptions_Toggle(self, option)
 
RestoreDialog_Show(self, option)
Show the restore files dialog after a file list has been loaded.
 
buttonAdvancedRestore_Pressed(self)
 
AdvancedRestore_FetchRemoteUrl(self)
Constructs a valid remote url from the Advanced Restore Dialog
 
AdvancedRestore_SetVisible(self, status)
Toggles the Advanced Restore Pane Visbile/Invisible
 
AdvancedRestore_comboRemoteOptions_currentIndexChanged(self, index)
Toggles the file selection button on/off depending on the remote option selected.
 
AdvancedRestore_PickFolder(self)
 
ProgressIndicators_SetVisible(self, status)
 
BackupControls_Toggle(self, option)
 
TestAdvancedRestoreOptions(self)
Test the connection to see if it is valid
 
buttonBackup_Pressed(self)
 
backupStarted(self)
Disable Backup Related Ui Controls and notify user that the backup has started (Ubuntu 9.04, Mac OS X)
 
backupFinished(self, taskName, message)
Notify User that the Backup has ended (Ubuntu 9.04, Mac OS X)
 
taskError(self, taskName, error, message)
Notify user that there was an error.
 
manageBackups_Finished(self, taskName, message)
Notify user that the operation has completed successfully.
 
ShowRemoteResults(self, tstResult)
Updates the settings view based on the results of the connection test.
 
RestoreFiles_Start(self)
 
RestoreFiles_RemoveFromList(self, operationComplete)
Clears the restore queue of all files.
 
ProgressIndicators_Setup(self, maximum, message=None)
Initialize the progress bar, set name and current task
 
ProgressIndicators_Update(self, progress, message=None)
Updates the progress bar
 
ProgressIndicators_Shutdown(self)
 
buttonRefreshSnapshotList_Pressed(self)
 
RefreshSnapshotList(self, sync=False)
Refresh the snapshot list
 
LoadSnapshots_SetModelList(self, transferModel)
Loads the available snapshots to treeSnapshots
 
buttonExit_Pressed(self)
 
CreateTimeData(self)
 
doNotify(self, userMessage)
Notifies the user, only if the notify is enabled.
 
buttonOpenLog_Pressed(self)
 
questionPrompt(self, title, message, th)
Prompts a question to the user from an background thread
 
buttonStopTask_Pressed(self)
stop the task, if it's possible, since everything uses a loop it's easy

Inherited from background.testconnectionurl.TestConnectionControl: doTestConnection, setupTestConnection

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from background.testconnectionurl.TestConnectionControl: TestConnectionUrl

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 

Initialization function for MainWindow

Overrides: object.__init__

AdvancedRestore_SetVisible(self, status)

 

Toggles the Advanced Restore Pane Visbile/Invisible

Parameters:
  • status (Boolean)

AdvancedRestore_comboRemoteOptions_currentIndexChanged(self, index)

 

Toggles the file selection button on/off depending on the remote option selected.

Parameters:
  • index (int)

backupFinished(self, taskName, message)

 

Notify User that the Backup has ended (Ubuntu 9.04, Mac OS X)

Parameters:
  • taskName (String)
  • message (String)

taskError(self, taskName, error, message)

 

Notify user that there was an error.

Parameters:
  • taskName (String)
  • error (String (constant)) - Mostly static defined in Backgroundtask Object
  • message (String)

manageBackups_Finished(self, taskName, message)

 

Notify user that the operation has completed successfully. Refresh the snapshot list.

Parameters:
  • taskName (String)
  • message (String)

ShowRemoteResults(self, tstResult)

 

Updates the settings view based on the results of the connection test.

Parameters:
  • tstResult (Boolean)
Overrides: background.testconnectionurl.TestConnectionControl.ShowRemoteResults

RestoreFiles_RemoveFromList(self, operationComplete)

 

Clears the restore queue of all files.

Parameters:
  • operationComplete (Boolean)

ProgressIndicators_Setup(self, maximum, message=None)

 

Initialize the progress bar, set name and current task

Parameters:
  • maximum (Int) - the maximum of elements to process
  • message (String) - default=None, informative message or task name

ProgressIndicators_Update(self, progress, message=None)

 

Updates the progress bar

Parameters:
  • progress (Int)
  • message (String) - default=None, informative message or task name

RefreshSnapshotList(self, sync=False)

 

Refresh the snapshot list

Parameters:
  • sync (Boolean) - default = False

LoadSnapshots_SetModelList(self, transferModel)

 

Loads the available snapshots to treeSnapshots

Parameters:
  • transferModel (List Model)

questionPrompt(self, title, message, th)

 

Prompts a question to the user from an background thread

Parameters:
  • title (String)
  • message (String)
  • th (QThread Object)