aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/thread/SMTPConnectionTestThread.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-23 07:36:55 +0000
committerSaturneric <[email protected]>2022-01-23 07:38:54 +0000
commit247b5b8f7ffb5cf7df5d4bc0e4fb786152934569 (patch)
treedaa5b6f39a1a4c07d4fa10a478d159e17059609c /src/ui/thread/SMTPConnectionTestThread.cpp
parent<refactor>(ui): tidy up codes and comments. (diff)
downloadGpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.tar.gz
GpgFrontend-247b5b8f7ffb5cf7df5d4bc0e4fb786152934569.zip
<refactor>(ui): tidy up codes and comments.
1. tidy up thread.
Diffstat (limited to '')
-rw-r--r--src/ui/thread/SMTPConnectionTestThread.cpp (renamed from src/ui/thread/SMTPTestThread.cpp)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/thread/SMTPTestThread.cpp b/src/ui/thread/SMTPConnectionTestThread.cpp
index 0338de13..95cc8f72 100644
--- a/src/ui/thread/SMTPTestThread.cpp
+++ b/src/ui/thread/SMTPConnectionTestThread.cpp
@@ -24,25 +24,25 @@
*
*/
-#include "SMTPTestThread.h"
+#include "SMTPConnectionTestThread.h"
namespace GpgFrontend::UI {
-void SMTPTestThread::run() {
+void SMTPConnectionTestThread::run() {
SmtpClient smtp(host_.c_str(), port_, connection_type_);
if (identify_) {
smtp.setUser(username_.c_str());
smtp.setPassword(password_.c_str());
}
if (!smtp.connectToHost()) {
- emit signalSMTPTestResult("Fail to connect SMTP server");
+ emit SignalSMTPConnectionTestResult("Fail to connect SMTP server");
return;
}
if (!smtp.login()) {
- emit signalSMTPTestResult("Fail to login");
+ emit SignalSMTPConnectionTestResult("Fail to login");
return;
}
smtp.quit();
- emit signalSMTPTestResult("Succeed in testing connection");
+ emit SignalSMTPConnectionTestResult("Succeed in testing connection");
}
} // namespace GpgFrontend::UI