Diffstat (limited to 'noncore/unsupported/mailit/smtpclient.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/smtpclient.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/unsupported/mailit/smtpclient.cpp b/noncore/unsupported/mailit/smtpclient.cpp index 7bb7933..3bdc072 100644 --- a/noncore/unsupported/mailit/smtpclient.cpp +++ b/noncore/unsupported/mailit/smtpclient.cpp | |||
@@ -47,13 +47,13 @@ void SmtpClient::newConnection(QString target, int port) | |||
47 | } | 47 | } |
48 | 48 | ||
49 | status = Init; | 49 | status = Init; |
50 | sending = TRUE; | 50 | sending = TRUE; |
51 | socket->connectToHost(target, port); | 51 | socket->connectToHost(target, port); |
52 | 52 | ||
53 | emit updateStatus("DNS lookup"); | 53 | emit updateStatus(tr("DNS lookup")); |
54 | } | 54 | } |
55 | 55 | ||
56 | void SmtpClient::addMail(QString from, QString subject, QStringList to, QString body) | 56 | void SmtpClient::addMail(QString from, QString subject, QStringList to, QString body) |
57 | { | 57 | { |
58 | RawEmail *mail = new RawEmail; | 58 | RawEmail *mail = new RawEmail; |
59 | 59 | ||
@@ -64,13 +64,13 @@ void SmtpClient::addMail(QString from, QString subject, QStringList to, QString | |||
64 | 64 | ||
65 | mailList.append(mail); | 65 | mailList.append(mail); |
66 | } | 66 | } |
67 | 67 | ||
68 | void SmtpClient::connectionEstablished() | 68 | void SmtpClient::connectionEstablished() |
69 | { | 69 | { |
70 | emit updateStatus("Connection established"); | 70 | emit updateStatus(tr("Connection established")); |
71 | 71 | ||
72 | } | 72 | } |
73 | 73 | ||
74 | void SmtpClient::errorHandling(int status) | 74 | void SmtpClient::errorHandling(int status) |
75 | { | 75 | { |
76 | emit errorOccurred(status); | 76 | emit errorOccurred(status); |
@@ -126,13 +126,13 @@ void SmtpClient::incomingData() | |||
126 | } else errorHandling(ErrUnknownResponse); | 126 | } else errorHandling(ErrUnknownResponse); |
127 | } | 127 | } |
128 | case Data: { | 128 | case Data: { |
129 | if (response[0] == '2') { | 129 | if (response[0] == '2') { |
130 | *stream << "DATA\r\n"; | 130 | *stream << "DATA\r\n"; |
131 | status = Body; | 131 | status = Body; |
132 | emit updateStatus("Sending: " + mailPtr->subject); | 132 | emit updateStatus(tr("Sending: ") + mailPtr->subject); |
133 | } else errorHandling(ErrUnknownResponse); | 133 | } else errorHandling(ErrUnknownResponse); |
134 | break; | 134 | break; |
135 | } | 135 | } |
136 | case Body: { | 136 | case Body: { |
137 | if (response[0] == '3') { | 137 | if (response[0] == '3') { |
138 | *stream << mailPtr->body << "\r\n.\r\n"; | 138 | *stream << mailPtr->body << "\r\n.\r\n"; |
@@ -148,13 +148,13 @@ void SmtpClient::incomingData() | |||
148 | case Quit: { | 148 | case Quit: { |
149 | if (response[0] == '2') { | 149 | if (response[0] == '2') { |
150 | *stream << "QUIT\r\n"; | 150 | *stream << "QUIT\r\n"; |
151 | status = Done; | 151 | status = Done; |
152 | QString temp; | 152 | QString temp; |
153 | temp.setNum(mailList.count()); | 153 | temp.setNum(mailList.count()); |
154 | emit updateStatus("Sent " + temp + " messages"); | 154 | emit updateStatus(tr("Sent ") + temp + tr(" messages")); |
155 | emit mailSent(); | 155 | emit mailSent(); |
156 | mailList.clear(); | 156 | mailList.clear(); |
157 | sending = FALSE; | 157 | sending = FALSE; |
158 | socket->close(); | 158 | socket->close(); |
159 | } else errorHandling(ErrUnknownResponse); | 159 | } else errorHandling(ErrUnknownResponse); |
160 | break; | 160 | break; |