SecureBlackbox 2020 Qt Edition

Questions / Feedback?

FileOperation Event

Signifies the start of a file transfer operation.

Syntax

class SFTPClientFileOperationEventParams {
public:
  int Operation();
  const QString &RemotePath();
  const QString &LocalPath();
  bool Skip();
  void SetSkip(bool bSkip);
  bool Cancel();
  void SetCancel(bool bCancel);
  int EventRetVal();
  void SetEventRetVal(int iRetVal);
};
// To handle, connect one or more slots to this signal. void FileOperation(SFTPClientFileOperationEventParams *e);
// Or, subclass SFTPClient and override this emitter function. virtual int FireFileOperation(SFTPClientFileOperationEventParams *e) {...}

Remarks

This event is fired each time the class starts an upload or download operation within a multi-file call. Operation defines the operation about to start, RemotePath specifies the name and path to the remote file, and LocalPath specifies the name and path to the local file.

If needed, set Skip to true to ignore the current file, or Cancel to abort the whole batch.

Supported operations:

csfoDownloadFile0Download file

csfoUploadFile1Upload file

csfoDeleteFile2Delete file

csfoMakeDir3Make directory

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Qt Edition - Version 20.0 [Build 8154]