Changeset View
Changeset View
Standalone View
Standalone View
src/core/slaveinterface.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | enum Info { | 46 | enum Info { | ||
47 | INF_TOTAL_SIZE = 10, | 47 | INF_TOTAL_SIZE = 10, | ||
48 | INF_PROCESSED_SIZE = 11, | 48 | INF_PROCESSED_SIZE = 11, | ||
49 | INF_SPEED, | 49 | INF_SPEED, | ||
50 | INF_REDIRECTION = 20, | 50 | INF_REDIRECTION = 20, | ||
51 | INF_MIME_TYPE = 21, | 51 | INF_MIME_TYPE = 21, | ||
52 | INF_ERROR_PAGE = 22, | 52 | INF_ERROR_PAGE = 22, | ||
53 | INF_WARNING = 23, | 53 | INF_WARNING = 23, | ||
54 | INF_GETTING_FILE, ///< @deprecated | 54 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(3, 0) | ||
55 | INF_GETTING_FILE, ///< @deprecated Since 3.0 | ||||
56 | #else | ||||
57 | INF_GETTING_FILE_DEPRECATED_DO_NOT_USE, | ||||
58 | #endif | ||||
55 | INF_UNUSED = 25, ///< now unused | 59 | INF_UNUSED = 25, ///< now unused | ||
56 | INF_INFOMESSAGE, | 60 | INF_INFOMESSAGE, | ||
57 | INF_META_DATA, | 61 | INF_META_DATA, | ||
58 | INF_NETWORK_STATUS, | 62 | INF_NETWORK_STATUS, | ||
59 | INF_MESSAGEBOX, | 63 | INF_MESSAGEBOX, | ||
60 | INF_POSITION | 64 | INF_POSITION | ||
61 | // add new ones here once a release is done, to avoid breaking binary compatibility | 65 | // add new ones here once a release is done, to avoid breaking binary compatibility | ||
62 | }; | 66 | }; | ||
63 | 67 | | |||
64 | /** | 68 | /** | ||
65 | * Identifiers for KIO data messages. | 69 | * Identifiers for KIO data messages. | ||
66 | */ | 70 | */ | ||
67 | enum Message { | 71 | enum Message { | ||
68 | MSG_DATA = 100, | 72 | MSG_DATA = 100, | ||
69 | MSG_DATA_REQ, | 73 | MSG_DATA_REQ, | ||
70 | MSG_ERROR, | 74 | MSG_ERROR, | ||
71 | MSG_CONNECTED, | 75 | MSG_CONNECTED, | ||
72 | MSG_FINISHED, | 76 | MSG_FINISHED, | ||
73 | MSG_STAT_ENTRY, // 105 | 77 | MSG_STAT_ENTRY, // 105 | ||
74 | MSG_LIST_ENTRIES, | 78 | MSG_LIST_ENTRIES, | ||
75 | MSG_RENAMED, ///< unused | 79 | MSG_RENAMED, ///< unused | ||
76 | MSG_RESUME, | 80 | MSG_RESUME, | ||
77 | MSG_SLAVE_STATUS, ///< only for compatibility, use V2 for KF >= 5.45. TODO KF6: remove | 81 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 45) | ||
82 | MSG_SLAVE_STATUS, ///< @deprecated Since 5.45, use MSG_SLAVE_STATUS_V2 | ||||
83 | #else | ||||
84 | MSG_SLAVE_STATUS_DEPRECATED_DO_NOT_USE, | ||||
85 | #endif | ||||
78 | MSG_SLAVE_ACK, // 110 | 86 | MSG_SLAVE_ACK, // 110 | ||
79 | MSG_NET_REQUEST, | 87 | MSG_NET_REQUEST, | ||
80 | MSG_NET_DROP, | 88 | MSG_NET_DROP, | ||
81 | MSG_NEED_SUBURL_DATA, | 89 | MSG_NEED_SUBURL_DATA, | ||
82 | MSG_CANRESUME, | 90 | MSG_CANRESUME, | ||
83 | MSG_AUTH_KEY, ///< @deprecated | 91 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(3, 1) | ||
84 | MSG_DEL_AUTH_KEY, ///< @deprecated | 92 | MSG_AUTH_KEY, ///< @deprecated Since 3.1 | ||
93 | MSG_DEL_AUTH_KEY, ///< @deprecated Since 3.1 | ||||
94 | #else | ||||
95 | MSG_AUTH_KEY_DEPRECATED_DO_NOT_USE, | ||||
96 | MSG_DEL_AUTH_KEY_DEPRECATED_DO_NOT_USE, | ||||
97 | #endif | ||||
85 | MSG_OPENED, | 98 | MSG_OPENED, | ||
86 | MSG_WRITTEN, | 99 | MSG_WRITTEN, | ||
87 | MSG_HOST_INFO_REQ, | 100 | MSG_HOST_INFO_REQ, | ||
88 | MSG_PRIVILEGE_EXEC, | 101 | MSG_PRIVILEGE_EXEC, | ||
89 | MSG_SLAVE_STATUS_V2 | 102 | MSG_SLAVE_STATUS_V2 | ||
90 | // add new ones here once a release is done, to avoid breaking binary compatibility | 103 | // add new ones here once a release is done, to avoid breaking binary compatibility | ||
91 | }; | 104 | }; | ||
92 | 105 | | |||
Show All 11 Lines | 116 | { | |||
104 | Q_OBJECT | 117 | Q_OBJECT | ||
105 | 118 | | |||
106 | protected: | 119 | protected: | ||
107 | SlaveInterface(SlaveInterfacePrivate &dd, QObject *parent = nullptr); | 120 | SlaveInterface(SlaveInterfacePrivate &dd, QObject *parent = nullptr); | ||
108 | public: | 121 | public: | ||
109 | 122 | | |||
110 | virtual ~SlaveInterface(); | 123 | virtual ~SlaveInterface(); | ||
111 | 124 | | |||
125 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
112 | // TODO KF6: remove these methods, Connection isn't an exported class | 126 | // TODO KF6: remove these methods, Connection isn't an exported class | ||
113 | KIOCORE_DEPRECATED void setConnection(Connection *connection); | 127 | KIOCORE_DEPRECATED_VERSION(5, 0, "Do not use") | ||
114 | KIOCORE_DEPRECATED Connection *connection() const; | 128 | void setConnection(Connection *connection); | ||
129 | KIOCORE_DEPRECATED_VERSION(5, 0, "Do not use") | ||||
130 | Connection *connection() const; | ||||
131 | #endif | ||||
115 | 132 | | |||
116 | // Send our answer to the MSG_RESUME (canResume) request | 133 | // Send our answer to the MSG_RESUME (canResume) request | ||
117 | // (to tell the "put" job whether to resume or not) | 134 | // (to tell the "put" job whether to resume or not) | ||
118 | void sendResumeAnswer(bool resume); | 135 | void sendResumeAnswer(bool resume); | ||
119 | 136 | | |||
120 | /** | 137 | /** | ||
121 | * Sends our answer for the INF_MESSAGEBOX request. | 138 | * Sends our answer for the INF_MESSAGEBOX request. | ||
122 | * | 139 | * | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |