diff --git a/src/nimqml.nim b/src/nimqml.nim index 5d30921..35b73f1 100644 --- a/src/nimqml.nim +++ b/src/nimqml.nim @@ -60,3 +60,6 @@ proc url_host*(host: string): string = proc url_replaceHostAndAddPath*(url: string, newHost: string, protocol: string = "", pathPrefix: string = ""): string = result = $(dos_qurl_replaceHostAndAddPath(url.cstring, protocol.cstring, newHost.cstring, pathPrefix.cstring)) + +proc url_toLocalFile*(url: string): string = + result = $(dos_to_local_file(url.cstring)) \ No newline at end of file diff --git a/src/nimqml/private/dotherside.nim b/src/nimqml/private/dotherside.nim index e7f9159..0359407 100644 --- a/src/nimqml/private/dotherside.nim +++ b/src/nimqml/private/dotherside.nim @@ -354,4 +354,6 @@ proc dos_statusosnotification_show_notification(vptr: DosStatusOSNotificationObj title: cstring, messsage: cstring, identifier: cstring) {.cdecl, dynlib: dynLibName, importc.} proc dos_statusosnotification_delete(vptr: DosStatusOSNotificationObject) - {.cdecl, dynlib: dynLibName, importc.} \ No newline at end of file + {.cdecl, dynlib: dynLibName, importc.} + +proc dos_to_local_file(filpath: cstring): cstring {.cdecl, dynlib: dynLibName, importc.} \ No newline at end of file