feat: expose to local file
This commit is contained in:
parent
cd82993bed
commit
79681fccdb
|
@ -1009,6 +1009,8 @@ DOS_API void dos_statusosnotification_show_notification(DosStatusOSNotificationO
|
||||||
const char* title, const char* message, const char* identifier);
|
const char* title, const char* message, const char* identifier);
|
||||||
DOS_API void dos_statusosnotification_delete(DosStatusOSNotificationObject* vptr);
|
DOS_API void dos_statusosnotification_delete(DosStatusOSNotificationObject* vptr);
|
||||||
|
|
||||||
|
DOS_API char *dos_to_local_file(const char* filePath);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1391,4 +1391,9 @@ void dos_statusosnotification_delete(DosStatusOSNotificationObject* vptr)
|
||||||
auto qobject = static_cast<QObject*>(vptr);
|
auto qobject = static_cast<QObject*>(vptr);
|
||||||
if(qobject)
|
if(qobject)
|
||||||
qobject->deleteLater();
|
qobject->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
|
char* dos_to_local_file(const char* filePath)
|
||||||
|
{
|
||||||
|
return convert_to_cstring(QUrl(QString::fromUtf8(filePath)).toLocalFile());
|
||||||
}
|
}
|
Loading…
Reference in New Issue