Changeset View
Changeset View
Standalone View
Standalone View
src/core/connection_p.h
Show All 18 Lines | |||||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef KIO_CONNECTION_H | 21 | #ifndef KIO_CONNECTION_H | ||
22 | #define KIO_CONNECTION_H | 22 | #define KIO_CONNECTION_H | ||
23 | 23 | | |||
24 | #include <QUrl> | 24 | #include <QUrl> | ||
25 | #include <QObject> | 25 | #include <QObject> | ||
26 | #include <QString> | 26 | #include <QString> | ||
27 | #include <QQueue> | 27 | #include <QVector> | ||
28 | #include "connectionbackend_p.h" | 28 | #include "connectionbackend_p.h" | ||
29 | 29 | | |||
30 | namespace KIO | 30 | namespace KIO | ||
31 | { | 31 | { | ||
32 | 32 | | |||
33 | class Connection; | 33 | class Connection; | ||
34 | 34 | | |||
35 | // Separated from Connection only for historical reasons - they are both private now | 35 | // Separated from Connection only for historical reasons - they are both private now | ||
36 | class ConnectionPrivate | 36 | class ConnectionPrivate | ||
37 | { | 37 | { | ||
38 | public: | 38 | public: | ||
39 | inline ConnectionPrivate() | 39 | inline ConnectionPrivate() | ||
40 | : backend(nullptr), q(nullptr), suspended(false) | 40 | : backend(nullptr), q(nullptr), suspended(false) | ||
41 | { } | 41 | { } | ||
42 | 42 | | |||
43 | void dequeue(); | 43 | void dequeue(); | ||
44 | void commandReceived(const Task &task); | 44 | void commandReceived(const Task &task); | ||
45 | void disconnected(); | 45 | void disconnected(); | ||
46 | void setBackend(ConnectionBackend *b); | 46 | void setBackend(ConnectionBackend *b); | ||
47 | 47 | | |||
48 | QList<Task> outgoingTasks; | 48 | QVector<Task> outgoingTasks; | ||
49 | QQueue<Task> incomingTasks; | 49 | QVector<Task> incomingTasks; | ||
50 | ConnectionBackend *backend; | 50 | ConnectionBackend *backend; | ||
51 | Connection *q; | 51 | Connection *q; | ||
52 | bool suspended; | 52 | bool suspended; | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | class ConnectionServer; | 55 | class ConnectionServer; | ||
56 | 56 | | |||
57 | /** | 57 | /** | ||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |