feat: installSelfSignedCertificate

This commit is contained in:
Richard Ramos 2022-02-08 12:26:08 -04:00
parent fea98f226c
commit eb20a5ffb9
3 changed files with 8 additions and 0 deletions

View File

@ -142,6 +142,8 @@ proc dos_qguiapplication_installEventFilter(engine: DosStatusEvent) {.cdecl, dyn
proc dos_qguiapplication_clipboard_setImage(content: cstring) {.cdecl, dynlib: dynLibName, importc.}
proc dos_qguiapplication_download_image(imageSource: cstring, filePath: cstring) {.cdecl, dynlib: dynLibName, importc.}
proc dos_add_self_signed_certificate(content: cstring) {.cdecl, dynlib: dynLibName, importc.}
# QQmlContext
proc dos_qqmlcontext_setcontextproperty(context: DosQQmlContext, propertyName: cstring, propertyValue: DosQVariant) {.cdecl, dynlib: dynLibName, importc.}

View File

@ -17,6 +17,9 @@ proc icon*(application: QApplication, filename: string) =
proc setClipboardText*(text: string = "") =
dos_qapplication_clipboard_setText(text.cstring)
proc installSelfSignedCertificate*(certificate: string) =
dos_add_self_signed_certificate(certificate.cstring)
proc installEventFilter*(application: QApplication, event: StatusEvent) =
dos_qapplication_installEventFilter(event.vptr)

View File

@ -35,6 +35,9 @@ proc quit*(self: QGuiApplication) =
proc setClipboardText*(text: string = "") =
dos_qguiapplication_clipboard_setText(text.cstring)
proc installSelfSignedCertificate*(certificate: string) =
dos_add_self_signed_certificate(certificate.cstring)
proc setClipboardImage*(text: string = "") =
dos_qguiapplication_clipboard_setImage(text.cstring)