MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / GetWritePath

Function GetWritePath

Telegram/SourceFiles/core/file_utilities.cpp:267–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void GetWritePath(
268 QPointer<QWidget> parent,
269 const QString &caption,
270 const QString &filter,
271 const QString &initialPath,
272 Fn<void(QString &&result)> callback,
273 Fn<void()> failed) {
274 InvokeQueued(QCoreApplication::instance(), [=] {
275 auto file = QString();
276 if (filedialogGetSaveFile(parent, file, caption, filter, initialPath)) {
277 if (callback) {
278 callback(std::move(file));
279 }
280 } else if (failed) {
281 failed();
282 }
283 });
284}
285
286void GetFolder(
287 QPointer<QWidget> parent,

Callers 6

saveAsMethod · 0.85
exportThemeMethod · 0.85
GenerateCodesFunction · 0.85
savePhotoToFileMethod · 0.85
savePhotoToFileMethod · 0.85
SavePhotoToFileFunction · 0.85

Calls 3

filedialogGetSaveFileFunction · 0.85
instanceFunction · 0.50
QStringClass · 0.50

Tested by

no test coverage detected