diff options
author | Saturneric <[email protected]> | 2022-01-23 07:36:55 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-23 07:38:54 +0000 |
commit | 247b5b8f7ffb5cf7df5d4bc0e4fb786152934569 (patch) | |
tree | daa5b6f39a1a4c07d4fa10a478d159e17059609c /src/ui/thread/FileReadThread.h | |
parent | <refactor>(ui): tidy up codes and comments. (diff) | |
download | GpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.tar.gz GpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.zip |
<refactor>(ui): tidy up codes and comments.
1. tidy up thread.
Diffstat (limited to 'src/ui/thread/FileReadThread.h')
-rw-r--r-- | src/ui/thread/FileReadThread.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/src/ui/thread/FileReadThread.h b/src/ui/thread/FileReadThread.h index a1266afc..e7573af8 100644 --- a/src/ui/thread/FileReadThread.h +++ b/src/ui/thread/FileReadThread.h @@ -31,23 +31,45 @@ namespace GpgFrontend::UI { +/** + * @brief + * + */ class FileReadThread : public QThread { Q_OBJECT public: + /** + * @brief Construct a new File Read Thread object + * + * @param path + */ explicit FileReadThread(std::string path); signals: - void sendReadBlock(const std::string& block); + /** + * @brief + * + * @param block + */ + void SignalSendReadBlock(const std::string& block); - void readDone(); + /** + * @brief + * + */ + void SignalReadDone(); protected: + /** + * @brief + * + */ void run() override; private: - std::string path; + std::string path_; ///< }; } // namespace GpgFrontend::UI |