Package timedrive :: Package background :: Module loadsnapshots :: Class LoadSnapshots
[frames] | no frames]

Class LoadSnapshots


Background class that loads a list of the archive snapshots

Nested Classes

Inherited from PyQt4.QtCore.QThread: Priority

Instance Methods
 
__init__(self, parent=None)
Initialization function for Load Snapshots
 
MainList_FromSettings(self, settings, sync=False)
Produceses a list of snapshots, returns the results with the following signal: ReturnSnapshotList_Main(QStandardItemModel*)
 
GetSnapshotList_Main(self, settings, sync=False)
Get a full list of all snapshots from all archives.
 
GetSnapshotList_Folder(self, folder, settings, sync=False, S3_AccessId=None, S3_SecretKey=None)
Get a list of the snapshots for a given folder.
 
SnapshotList_FetchUrls(self, settings)
Function used to create a list of archive Urls from the backupsettings.IncludeList
 
FolderList(self, settings, folder, sync=False)
Produceses a list of snapshots, returns the results with the following signal: ReturnSnapshotList_Folder(QStandardItemModel*)
 
returnSnapshotList_Main(self, slist)
returns the results list for everything using a emit qtcore signal
 
returnSnapshotList_Folder(self, slist)
returns the results list for one folder using a emit qtcore signal
 
run(self)
Primary method of the class.

Inherited from backgroundtask.BackgroundTask: questionPrompt, setupTaskProgress, start, taskComplete, taskError, toggleControls, updateTaskProgress

Inherited from PyQt4.QtCore.QThread: currentThread, currentThreadId, exec_, exit, finished, idealThreadCount, isFinished, isRunning, msleep, priority, quit, setPriority, setStackSize, setTerminationEnabled, sleep, stackSize, started, terminate, terminated, usleep, wait, yieldCurrentThread

Inherited from PyQt4.QtCore.QObject: blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __delattr__, __getattribute__, __new__, __setattr__

Inherited from object: __format__, __hash__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from PyQt4.QtCore.QThread: HighPriority, HighestPriority, IdlePriority, InheritPriority, LowPriority, LowestPriority, NormalPriority, TimeCriticalPriority

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties

Inherited from backgroundtask.BackgroundTask: default_message, restart, stop, task_name

Inherited from object: __class__

Method Details

__init__(self, parent=None)
(Constructor)

 

Initialization function for Load Snapshots

Parameters:
  • parent (BackgroundTask Object)
Overrides: object.__init__

MainList_FromSettings(self, settings, sync=False)

 

Produceses a list of snapshots, returns the results with the following signal:
        ReturnSnapshotList_Main(QStandardItemModel*)

@type settings: Settings Object
@param settings:
@type sync: Boolean
@param sync: default = False

GetSnapshotList_Main(self, settings, sync=False)

 

Get a full list of all snapshots from all archives. Returned as a dictionary. See also: GetSnapshotList_Folder.

Parameters:
  • settings (Settings Object)
  • sync (Boolean) - default = False

GetSnapshotList_Folder(self, folder, settings, sync=False, S3_AccessId=None, S3_SecretKey=None)

 

Get a list of the snapshots for a given folder. Returned as a dictionary. See also: GetSnapshotList_Main.

Parameters:
  • settings (Settings Object)
  • sync (Boolean) - default = False

FolderList(self, settings, folder, sync=False)

 

Produceses a list of snapshots, returns the results with the following signal:
        ReturnSnapshotList_Folder(QStandardItemModel*)
        
@type settings: Settings Object
@param settings:
@type folder: IncludeItem Object
@param folder:
@type sync: Boolean
@param sync: default = False

returnSnapshotList_Main(self, slist)

 

returns the results list for everything using a emit qtcore signal

Parameters:
  • slist (QStandardItemModel*)

returnSnapshotList_Folder(self, slist)

 

returns the results list for one folder using a emit qtcore signal

Parameters:
  • slist (QStandardItemModel*)

run(self)

 

Primary method of the class. First, fetches a list of the snapshots available in all archives. Then, translates the list to a QStandardItemModel.

Overrides: PyQt4.QtCore.QThread.run