Create and display a progress dialog ! @param flags bitwise OR of values in ProgressDialogOptions @param remainingLabelText if not empty substitutes for "Remaining Time:" @return nullptr if Services not installed */
| 304 | @return nullptr if Services not installed |
| 305 | */ |
| 306 | inline std::unique_ptr<ProgressDialog> MakeProgress( |
| 307 | const TranslatableString & title, |
| 308 | const TranslatableString & message, |
| 309 | unsigned flags = (ProgressShowStop | ProgressShowCancel), |
| 310 | const TranslatableString & remainingLabelText = {}) |
| 311 | { |
| 312 | if (auto p = Get()) |
| 313 | return p->DoMakeProgress(title, message, flags, remainingLabelText); |
| 314 | else |
| 315 | return nullptr; |
| 316 | } |
| 317 | |
| 318 | //! Create and display a progress dialog (return nullptr if Services not installed) |
| 319 | /*! |
no test coverage detected