feature(desktop/general): Expose showing icon badge notification functions

Issue #4922
This commit is contained in:
Michal Iskierko 2022-04-01 18:01:18 +02:00
parent e66ac18ff5
commit 99435c9b2e
2 changed files with 5 additions and 0 deletions

View File

@ -352,6 +352,8 @@ proc dos_osnotification_create(): DosStatusOSNotification
proc dos_osnotification_show_notification(vptr: DosStatusOSNotification,
title: cstring, messsage: cstring, identifier: cstring)
{.cdecl, dynlib: dynLibName, importc.}
proc dos_osnotification_show_badge_notification(vptr: DosStatusOSNotification, notificationsCount: int)
{.cdecl, dynlib: dynLibName, importc.}
proc dos_osnotification_delete(vptr: DosStatusOSNotification)
{.cdecl, dynlib: dynLibName, importc.}

View File

@ -12,3 +12,6 @@ proc newStatusOSNotification*(): StatusOSNotification =
proc showNotification*(self: StatusOSNotification, title: string,
message: string, identifier: string) =
dos_osnotification_show_notification(self.vptr, title, message, identifier)
proc showIconBadgeNotification*(self: StatusOSNotification, notificationsCount: int) =
dos_osnotification_show_badge_notification(self.vptr, notificationsCount)