FileToolImpl Class Reference

Real time file upload and download GUI. More...

Inheritance diagram for FileToolImpl:

Inheritance graph
[legend]
Collaboration diagram for FileToolImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

def __init__
 FileToolImpl Constructor.
def lcat
def apply
def clear
def execute
def upload
def download
def uploadConsistent
def downloadConsistent
def errorBox
def __fid

Detailed Description

Real time file upload and download GUI.

This tool provides the capability of uploading and downloading files to and from the LAT instrument through the VSC interface.

It uses the high level FILE methods to construct a series of telecommands to start the upload/download.

It is a current feature that this tool will not upload a file to either of the EEPROMS.

Definition at line 30 of file FileToolImpl.py.


Member Function Documentation

def __fid   self  ) 
 

Parse the current settings into a file ID and return it

\return A FswFileID object

Definition at line 233 of file FileToolImpl.py.

def __init__   self,
  common,
  parent = None,
  name = None,
  modal = False,
  fl = 0
 

FileToolImpl Constructor.

Parameters:
common A ScriptEngineCommon instance
parent The parent GUI (typically the Run Control GUI)
name Name of the GUI
modal Whether the GUI is Modal (blocking)
fl Qt flags

Definition at line 32 of file FileToolImpl.py.

def apply   self  ) 
 

Apply the settings to the text edits

Definition at line 69 of file FileToolImpl.py.

def clear   self  ) 
 

Clear the form and reset to default values

Definition at line 82 of file FileToolImpl.py.

def download   self  ) 
 

Download the file pointed to by the current GUI state to disk

Several consistency checks are done:
a) If there is nothing in the destination box, mit an errorbox and return

Definition at line 132 of file FileToolImpl.py.

def downloadConsistent   self  ) 
 

Several consistency checks are done:
a) If there is nothing in the destination box, emit an errorbox and return

Definition at line 187 of file FileToolImpl.py.

def errorBox   self,
  msg
 

Dumb error message box.  Pops open a QMessageBox with CRITICAL state.

\param msg   Any text.

Definition at line 216 of file FileToolImpl.py.

def execute   self  ) 
 

Execute upload or download command
Also perform consistency checks

Definition at line 92 of file FileToolImpl.py.

def lcat   self  ) 
 

Return the LCATcmdDb instance of self.__common

Definition at line 63 of file FileToolImpl.py.

def upload   self  ) 
 

Upload the file pointed to by the current GUI state.

Definition at line 105 of file FileToolImpl.py.

def uploadConsistent   self  ) 
 

Several consistency checks are done for uploads:
a) If destination != RAM, emit an errorbox and return
b) If there is nothing in the origin box, emit an errorbox and return
c) If the origin file doesn't exist, emit an errorbox and return.

Definition at line 160 of file FileToolImpl.py.


The documentation for this class was generated from the following file:
Generated on Thu Apr 27 20:53:18 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO