Changeset View
Changeset View
Standalone View
Standalone View
src/core/slaveinterface.h
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 46 | enum Info { | |||
---|---|---|---|---|---|
52 | INF_ERROR_PAGE = 22, | 52 | INF_ERROR_PAGE = 22, | ||
53 | INF_WARNING = 23, | 53 | INF_WARNING = 23, | ||
54 | INF_GETTING_FILE, ///< @deprecated | 54 | INF_GETTING_FILE, ///< @deprecated | ||
55 | INF_UNUSED = 25, ///< now unused | 55 | INF_UNUSED = 25, ///< now unused | ||
56 | INF_INFOMESSAGE, | 56 | INF_INFOMESSAGE, | ||
57 | INF_META_DATA, | 57 | INF_META_DATA, | ||
58 | INF_NETWORK_STATUS, | 58 | INF_NETWORK_STATUS, | ||
59 | INF_MESSAGEBOX, | 59 | INF_MESSAGEBOX, | ||
60 | INF_POSITION | 60 | INF_POSITION, | ||
61 | INF_PRIVILEGE_CONF | ||||
61 | // add new ones here once a release is done, to avoid breaking binary compatibility | 62 | // add new ones here once a release is done, to avoid breaking binary compatibility | ||
62 | }; | 63 | }; | ||
63 | 64 | | |||
64 | /** | 65 | /** | ||
65 | * Identifiers for KIO data messages. | 66 | * Identifiers for KIO data messages. | ||
66 | */ | 67 | */ | ||
67 | enum Message { | 68 | enum Message { | ||
68 | MSG_DATA = 100, | 69 | MSG_DATA = 100, | ||
Show All 12 Lines | |||||
81 | MSG_NEED_SUBURL_DATA, | 82 | MSG_NEED_SUBURL_DATA, | ||
82 | MSG_CANRESUME, | 83 | MSG_CANRESUME, | ||
83 | MSG_AUTH_KEY, ///< @deprecated | 84 | MSG_AUTH_KEY, ///< @deprecated | ||
84 | MSG_DEL_AUTH_KEY, ///< @deprecated | 85 | MSG_DEL_AUTH_KEY, ///< @deprecated | ||
85 | MSG_OPENED, | 86 | MSG_OPENED, | ||
86 | MSG_WRITTEN, | 87 | MSG_WRITTEN, | ||
87 | MSG_HOST_INFO_REQ, | 88 | MSG_HOST_INFO_REQ, | ||
88 | MSG_PRIVILEGE_EXEC, | 89 | MSG_PRIVILEGE_EXEC, | ||
89 | MSG_SLAVE_STATUS_V2 | 90 | MSG_SLAVE_STATUS_V2 | ||
dfaure: unrelated/unneeded anymore | |||||
90 | // add new ones here once a release is done, to avoid breaking binary compatibility | 91 | // add new ones here once a release is done, to avoid breaking binary compatibility | ||
91 | }; | 92 | }; | ||
92 | 93 | | |||
93 | /** | 94 | /** | ||
94 | * @class KIO::SlaveInterface slaveinterface.h <KIO/SlaveInterface> | 95 | * @class KIO::SlaveInterface slaveinterface.h <KIO/SlaveInterface> | ||
95 | * | 96 | * | ||
96 | * There are two classes that specifies the protocol between application | 97 | * There are two classes that specifies the protocol between application | ||
97 | * ( KIO::Job) and kioslave. SlaveInterface is the class to use on the application | 98 | * ( KIO::Job) and kioslave. SlaveInterface is the class to use on the application | ||
Show All 20 Lines | 109 | public: | |||
118 | 119 | | |||
119 | /** | 120 | /** | ||
120 | * Sends our answer for the INF_MESSAGEBOX request. | 121 | * Sends our answer for the INF_MESSAGEBOX request. | ||
121 | * | 122 | * | ||
122 | * @since 4.11 | 123 | * @since 4.11 | ||
123 | */ | 124 | */ | ||
124 | void sendMessageBoxAnswer(int result); | 125 | void sendMessageBoxAnswer(int result); | ||
125 | 126 | | |||
127 | void sendPrivilegeConfirmationAnswer(bool conf); | ||||
128 | | ||||
126 | void setOffset(KIO::filesize_t offset); | 129 | void setOffset(KIO::filesize_t offset); | ||
127 | KIO::filesize_t offset() const; | 130 | KIO::filesize_t offset() const; | ||
128 | 131 | | |||
129 | Q_SIGNALS: | 132 | Q_SIGNALS: | ||
130 | /////////// | 133 | /////////// | ||
131 | // Messages sent by the slave | 134 | // Messages sent by the slave | ||
132 | /////////// | 135 | /////////// | ||
133 | 136 | | |||
Show All 40 Lines | 170 | protected: | |||
174 | 177 | | |||
175 | void messageBox(int type, const QString &text, const QString &caption, | 178 | void messageBox(int type, const QString &text, const QString &caption, | ||
176 | const QString &buttonYes, const QString &buttonNo); | 179 | const QString &buttonYes, const QString &buttonNo); | ||
177 | 180 | | |||
178 | void messageBox(int type, const QString &text, const QString &caption, | 181 | void messageBox(int type, const QString &text, const QString &caption, | ||
179 | const QString &buttonYes, const QString &buttonNo, | 182 | const QString &buttonYes, const QString &buttonNo, | ||
180 | const QString &dontAskAgainName); | 183 | const QString &dontAskAgainName); | ||
181 | 184 | | |||
185 | void requestPrivilegeConfirmation(const QString &caption, const QString &text, const QString &details); | ||||
186 | | ||||
182 | // I need to identify the slaves | 187 | // I need to identify the slaves | ||
183 | void requestNetwork(const QString &, const QString &); | 188 | void requestNetwork(const QString &, const QString &); | ||
184 | void dropNetwork(const QString &, const QString &); | 189 | void dropNetwork(const QString &, const QString &); | ||
185 | 190 | | |||
186 | protected Q_SLOTS: | 191 | protected Q_SLOTS: | ||
187 | void calcSpeed(); | 192 | void calcSpeed(); | ||
188 | protected: | 193 | protected: | ||
189 | SlaveInterfacePrivate *const d_ptr; | 194 | SlaveInterfacePrivate *const d_ptr; | ||
190 | Q_DECLARE_PRIVATE(SlaveInterface) | 195 | Q_DECLARE_PRIVATE(SlaveInterface) | ||
191 | private: | 196 | private: | ||
192 | Q_PRIVATE_SLOT(d_func(), void slotHostInfo(QHostInfo)) | 197 | Q_PRIVATE_SLOT(d_func(), void slotHostInfo(QHostInfo)) | ||
193 | }; | 198 | }; | ||
194 | 199 | | |||
195 | } | 200 | } | ||
196 | 201 | | |||
197 | #endif | 202 | #endif |
unrelated/unneeded anymore