51
51
quint16 port() const;
52
52
State state() const;
55
* Returns the name that has been set with LoginJob::setUserName()
56
* The user name is useful to uniquely identify an IMAP resource, in combination with the host name
57
* @note If the Session was pre-authenticated, userName() will return an empty string
60
QString userName() const;
54
62
QByteArray serverGreeting() const;
87
95
void jobQueueSizeChanged( int queueSize );
88
void connectionLost();
99
Emitted when we loose a previously established connection
101
Likely reasons: server closed the connection, loss of internet connectivity, etc...
103
For historical reasons, this signal is also emitted in the event of a failed connection, but
104
you should not rely on this behavior.
106
New implementations should use connectionFailed() to detect a failure to connect to the host,
107
and stateChanged() to detect a loss of connectivity.
109
KDE_DEPRECATED void connectionLost();
112
Emitted when the Session couldn't connect to the host.
114
Likely reasons: invalid host address, no internet connectivity, firewall blocking rules,
117
Pending jobs in the queue will be deleted, and the first job in the queue will be failed. (ie:
118
it will have its result signal emitted with a non-zero error code.)
122
void connectionFailed();
125
Emitted when the session's state changes.
127
You can use this signal to detect a connection loss (ie: stateChanged is emitted with newState
128
== KIMAP::Session::Disconnected)
130
If you want to receive the stateChanged arguments in your slot, you must register the State
131
enum with @c Q_DECLARE_METATYPE(KIMAP::Session::State) and @c qRegisterMetaType<KIMAP::Session::State>();
135
void stateChanged(KIMAP::Session::State newState, KIMAP::Session::State oldState);
91
138
Q_PRIVATE_SLOT( d, void doStartNext() )