aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/thread/FileReadThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui/thread/FileReadThread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/thread/FileReadThread.cpp b/src/ui/thread/FileReadThread.cpp
index 1e991752..1ed9ae60 100644
--- a/src/ui/thread/FileReadThread.cpp
+++ b/src/ui/thread/FileReadThread.cpp
@@ -31,13 +31,13 @@
namespace GpgFrontend::UI {
-FileReadThread::FileReadThread(std::string path) : path(std::move(path)) {
+FileReadThread::FileReadThread(std::string path) : path_(std::move(path)) {
qRegisterMetaType<std::string>("std::string");
}
void FileReadThread::run() {
LOG(INFO) << "started";
- boost::filesystem::path read_file_path(this->path);
+ boost::filesystem::path read_file_path(this->path_);
if (is_regular_file(read_file_path)) {
LOG(INFO) << "read open";
@@ -56,7 +56,7 @@ void FileReadThread::run() {
LOG(INFO) << "block size " << read_size;
std::string buffer_str(buffer, read_size);
- emit sendReadBlock(buffer_str);
+ emit SignalSendReadBlock(buffer_str);
#ifdef RELEASE
QThread::msleep(32);
#else
@@ -64,7 +64,7 @@ void FileReadThread::run() {
#endif
}
fclose(fp);
- emit readDone();
+ emit SignalReadDone();
LOG(INFO) << "thread end reading";
}
}