SimCenter Agave Client Interface  0.0.0
This repo is to be used for other SimCenter Projects which communicate with an Agave server.
Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
FileOperator Class Reference

Signals

void fileOpStarted ()
 
void fileOpDone (RequestState opState, QString err_msg)
 
void fileSystemChange (FileNodeRef changedFile)
 

Public Member Functions

 FileOperator (RemoteDataInterface *theInterface, QObject *parent)
 
void connectFileTreeWidget (RemoteFileTree *connectedWidget)
 
void disconnectFileTreeWidget (RemoteFileTree *connectedWidget)
 
const FileNodeRef speculateFileWithName (QString fullPath, bool folder, bool loadBuffer=true)
 
const FileNodeRef speculateFileWithName (const FileNodeRef &baseNode, QString addedPath, bool folder, bool loadBuffer=true)
 
bool operationIsPending ()
 
void lsClosestNode (QString fullPath, bool clearData=false)
 
void lsClosestNodeToParent (QString fullPath, bool clearData=false)
 
void enactRootRefresh ()
 
void sendDeleteReq (const FileNodeRef &selectedNode)
 
void sendMoveReq (const FileNodeRef &moveFrom, QString newName)
 
void sendCopyReq (const FileNodeRef &copyFrom, QString newName)
 
void sendRenameReq (const FileNodeRef &selectedNode, QString newName)
 
void sendCreateFolderReq (const FileNodeRef &selectedNode, QString newName)
 
void sendUploadReq (const FileNodeRef &uploadTarget, QString localFile)
 
void sendUploadBuffReq (const FileNodeRef &uploadTarget, QByteArray fileBuff, QString newName)
 
void sendDownloadReq (const FileNodeRef &targetFile, QString localDest)
 
void sendDownloadBuffReq (const FileNodeRef &targetFile)
 
FileRecursiveOperatorgetRecursiveOp ()
 
bool deletePopup (const FileNodeRef &toDelete)
 

Protected Member Functions

void fileNodesChange (FileNodeRef changedFile)
 
bool fileStillExtant (const FileNodeRef &theFile)
 
NodeState getFileNodeState (const FileNodeRef &theFile)
 
bool isAncestorOf (const FileNodeRef &parent, const FileNodeRef &child)
 
const FileNodeRef getChildWithName (const FileNodeRef &baseFile, QString childName)
 
const QByteArray getFileBuffer (const FileNodeRef &baseFile)
 
void setFileBuffer (const FileNodeRef &theFile, const QByteArray *toSet)
 
FileNodeRef getParent (const FileNodeRef &theFile)
 
QList< FileNodeRefgetChildList (const FileNodeRef &theFile)
 
bool nodeIsRoot (const FileNodeRef &theFile)
 
QPersistentModelIndex getModelIndexByFile (const FileNodeRef &theFile)
 
void enactFolderRefresh (const FileNodeRef &selectedNode, bool clearData=false)
 
QStandardItemModel * getStandardModel ()
 

Friends

class FileTreeNode
 
class FileNodeRef