mirror of https://github.com/status-im/nimqml.git
Merge pull request #42 from status-im/4922-indicate-notifications-on-the-taskbar
feature(desktop/general): Expose showing icon badge notification functions
This commit is contained in:
commit
0931c98089
|
@ -352,6 +352,8 @@ proc dos_osnotification_create(): DosStatusOSNotification
|
||||||
proc dos_osnotification_show_notification(vptr: DosStatusOSNotification,
|
proc dos_osnotification_show_notification(vptr: DosStatusOSNotification,
|
||||||
title: cstring, messsage: cstring, identifier: cstring)
|
title: cstring, messsage: cstring, identifier: cstring)
|
||||||
{.cdecl, dynlib: dynLibName, importc.}
|
{.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
proc dos_osnotification_show_badge_notification(vptr: DosStatusOSNotification, notificationsCount: int)
|
||||||
|
{.cdecl, dynlib: dynLibName, importc.}
|
||||||
proc dos_osnotification_delete(vptr: DosStatusOSNotification)
|
proc dos_osnotification_delete(vptr: DosStatusOSNotification)
|
||||||
{.cdecl, dynlib: dynLibName, importc.}
|
{.cdecl, dynlib: dynLibName, importc.}
|
||||||
|
|
||||||
|
|
|
@ -12,3 +12,6 @@ proc newStatusOSNotification*(): StatusOSNotification =
|
||||||
proc showNotification*(self: StatusOSNotification, title: string,
|
proc showNotification*(self: StatusOSNotification, title: string,
|
||||||
message: string, identifier: string) =
|
message: string, identifier: string) =
|
||||||
dos_osnotification_show_notification(self.vptr, title, message, identifier)
|
dos_osnotification_show_notification(self.vptr, title, message, identifier)
|
||||||
|
|
||||||
|
proc showIconBadgeNotification*(self: StatusOSNotification, notificationsCount: int) =
|
||||||
|
dos_osnotification_show_badge_notification(self.vptr, notificationsCount)
|
Loading…
Reference in New Issue