Commit 6c97d958 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Remove KTcpSocket from public interface

parent 13888296
......@@ -66,12 +66,6 @@ void Job::connectionLost()
emitResult();
}
void Job::setSocketError(KTcpSocket::Error error)
{
Q_D(Job);
d->m_socketError = error;
}
Job::HandlerResponse Job::handleErrorReplies(const Message &response)
{
Q_D(Job);
......
......@@ -23,7 +23,6 @@
#include "kimap_export.h"
#include <KJob>
#include <ktcpsocket.h>
namespace KIMAP
{
......@@ -51,7 +50,6 @@ private:
virtual void doStart() = 0;
virtual void handleResponse(const Message &response);
virtual void connectionLost();
void setSocketError(KTcpSocket::Error);
protected:
enum HandlerResponse {
......
......@@ -47,6 +47,11 @@ public:
return m_session->d;
}
void setSocketError(KTcpSocket::Error error)
{
m_socketError = error;
}
QList<QByteArray> tags;
Session *m_session;
QString m_name;
......
......@@ -31,6 +31,7 @@
#include "kimap_debug.h"
#include "job.h"
#include "job_p.h"
#include "loginjob.h"
#include "message_p.h"
#include "sessionlogger_p.h"
......@@ -413,10 +414,10 @@ void SessionPrivate::socketError(KTcpSocket::Error error)
}
if (currentJob) {
currentJob->setSocketError(error);
currentJob->d_ptr->setSocketError(error);
} else if (!queue.isEmpty()) {
currentJob = queue.takeFirst();
currentJob->setSocketError(error);
currentJob->d_ptr->setSocketError(error);
}
if (isSocketConnected) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment