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);
|
||||
DOS_API void dos_statusosnotification_delete(DosStatusOSNotificationObject* vptr);
|
||||
|
||||
DOS_API char *dos_to_local_file(const char* filePath);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1392,3 +1392,8 @@ void dos_statusosnotification_delete(DosStatusOSNotificationObject* vptr)
|
|||
if(qobject)
|
||||
qobject->deleteLater();
|
||||
}
|
||||
|
||||
char* dos_to_local_file(const char* filePath)
|
||||
{
|
||||
return convert_to_cstring(QUrl(QString::fromUtf8(filePath)).toLocalFile());
|
||||
}
|
Loading…
Reference in New Issue