Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/jobuidelegate.h
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Line(s) | 57 | public: | |||
---|---|---|---|---|---|
147 | */ | 147 | */ | ||
148 | int requestMessageBox(MessageBoxType type, const QString &text, | 148 | int requestMessageBox(MessageBoxType type, const QString &text, | ||
149 | const QString &caption, | 149 | const QString &caption, | ||
150 | const QString &buttonYes, | 150 | const QString &buttonYes, | ||
151 | const QString &buttonNo, | 151 | const QString &buttonNo, | ||
152 | const QString &iconYes = QString(), | 152 | const QString &iconYes = QString(), | ||
153 | const QString &iconNo = QString(), | 153 | const QString &iconNo = QString(), | ||
154 | const QString &dontAskAgainName = QString(), | 154 | const QString &dontAskAgainName = QString(), | ||
155 | const KIO::MetaData &sslMetaData = KIO::MetaData()) override; | 155 | const KIO::MetaData &sslMetaData = KIO::MetaData()) override; | ||
dfaure: what would be the proper API you have in mind? | |||||
I think adding a QString parameter for operation details should be sufficient. Then the API should be kept in sync with SlaveBase, SalveInterface, and JobUiDelegateExtension. chinmoyr: I think adding a QString parameter for operation details should be sufficient. Then the API… | |||||
156 | 156 | | |||
157 | /** | 157 | /** | ||
158 | * Creates a clipboard updater | 158 | * Creates a clipboard updater | ||
159 | */ | 159 | */ | ||
160 | ClipboardUpdater *createClipboardUpdater(Job *job, ClipboardUpdaterMode mode) override; | 160 | ClipboardUpdater *createClipboardUpdater(Job *job, ClipboardUpdaterMode mode) override; | ||
161 | /** | 161 | /** | ||
162 | * Update URL in clipboard, if present | 162 | * Update URL in clipboard, if present | ||
163 | */ | 163 | */ | ||
164 | void updateUrlInClipboard(const QUrl &src, const QUrl &dest) override; | 164 | void updateUrlInClipboard(const QUrl &src, const QUrl &dest) override; | ||
165 | 165 | | |||
166 | /** | ||||
167 | * Asks for confirmation to start a privileged file operation. | ||||
168 | * | ||||
169 | * @param warningCaption the caption of the warning dialog. | ||||
170 | * @param warningMessage the message shown in the warning dialog. | ||||
171 | * @param warningDetails the details of the current privileged operation. | ||||
172 | * | ||||
173 | * @since 5.60 | ||||
174 | * | ||||
175 | * @internal | ||||
176 | */ | ||||
177 | | ||||
178 | bool askPrivilegeOperationConfirmation(const QString &warningCaption, | ||||
179 | const QString &warningMessage, | ||||
180 | const QString &warningDetails) override; | ||||
181 | | ||||
166 | private: | 182 | private: | ||
167 | class Private; | 183 | class Private; | ||
168 | Private *const d; | 184 | Private *const d; | ||
169 | }; | 185 | }; | ||
170 | } | 186 | } | ||
171 | 187 | | |||
172 | #endif | 188 | #endif |
what would be the proper API you have in mind?