⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tenginethread.h

📁 把html转成txt 把html转成txt
💻 H
字号:
//---------------------------------------------------------------------------
#ifndef TEngineThreadH
#define TEngineThreadH
//---------------------------------------------------------------------------
#include <Classes.hpp>
//---------------------------------------------------------------------------

typedef void __fastcall (__closure *TThreadProgressEvent)(System::TObject *Sender,
  int percent);

class TEngineThread : public TThread
{
private:
  bool error;
  std::string errorMessage;

  Document document;
  TThreadProgressEvent onProgress;
  TNotifyEvent onFinished;
  long fileSize;
  int percentage;

  void __fastcall UpdateProgress(void);
  void __fastcall Finished(void);


protected:
    void __fastcall Execute();
public:
    __fastcall TEngineThread(bool CreateSuspended, const Document &newDocument);
    void SetOnProgress(const TThreadProgressEvent newOnProgress);
    void SetOnFinished(const TNotifyEvent newOnFinished);
    bool GetError(void);
    std::string GetErrorMessage(void);
};
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -