Discuss this help topic in SecureBlackbox Forum

TElPGPReader.OnProgress

TElPGPReader     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired periodically and shows amount of processed data.

Declaration

[C#]
    event TSBPGPProgressEvent OnProgress;
    delegate void TSBPGPProgressEvent(Object Sender, long Processed, long Total, ref bool Cancel);

[VB.NET]
    Event OnProgress As TSBPGPProgressEvent
    Delegate Sub TSBPGPProgressEvent(ByVal Sender As Object, ByVal Processed As Long, ByVal Total As Long, ByRef Cancel As Boolean)

[Pascal]
    property OnProgress : TSBPGPProgressEvent;
    TSBPGPProgressEvent = procedure(Sender: TObject; Processed: Int64; Total: Int64; var Cancel: boolean) of object;

[C++]
    void get_OnProgress(TSBPGPProgressEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnProgress(TSBPGPProgressEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPProgressEvent)(void * _ObjectData, TObjectHandle Sender, int64_t Processed, int64_t Total, int8_t &Cancel);

[PHP]
    TSBPGPProgressEvent|callable|NULL get_OnProgress()
    void set_OnProgress(TSBPGPProgressEvent|callable|NULL $Value)
    callable TSBPGPProgressEvent(TObject $Sender, integer $Processed, integer $Total, bool &$Cancel)

[Java]
    TSBPGPProgressEvent getOnProgress();
    void setOnProgress(TSBPGPProgressEvent Value);
    TSBPGPProgressEvent.Callback OnProgress = new TSBPGPProgressEvent.Callback() {
        public void TSBPGPProgressEventCallback(TObject Sender, long Processed, long Total, TSBBoolean Cancel) {
            //...
        }
    }

Parameters

  • Processed - amount of processed data in bytes.
  • Total - total length of incoming data in bytes.
  • Cancel - if this parameter is set to True, further processing will be canceled.

Description

    This event shows amount of processed data in bytes. To get the amount of processed data in percent just count ((Processed * 100) / Total).

See also:     OnArmored     OnCompressed     OnCreateOutputStream     OnEncrypted     OnKeyPassphrase     OnPassphrase     OnSigned    

Discuss this help topic in SecureBlackbox Forum