module Notification:sig
..end
val app_name : string Pervasives.ref
Sys.argv.(0)
val desktop_entry : string option Pervasives.ref
type 'a
t
val result : 'a t -> 'a Lwt.t
`Closed
if the user clicked on the cross, timeout was
reached or the notification daemon exited`Default
if the default action was invoked, i.e. the user
clicked on the notification, but not on a buttonsval close : 'a t -> unit Lwt.t
typeurgency =
[ `Critical | `Low | `Normal ]
type
image = {
|
img_width : |
|
img_height : |
|
img_rowstride : |
|
img_has_alpha : |
|
img_bits_per_sample : |
|
img_channels : |
|
img_data : |
val notify : ?app_name:string ->
?desktop_entry:string ->
?replace:'b t ->
?icon:string ->
?image:image ->
summary:string ->
?body:string ->
?actions:(string * ([> `Closed | `Default ] as 'a)) list ->
?urgency:urgency ->
?category:string ->
?sound_file:string ->
?suppress_sound:bool ->
?pos:int * int ->
?hints:(string * OBus_value.V.single) list ->
?timeout:int -> unit -> 'a t Lwt.t
app_name
and desktop_entry
can override default values
taken from referencesreplace
is a popup id this notification replaceicon
is the notification icon. It is either as a URI (file://...) or a
name in a freedesktop.org-compliant icon theme (not a GTK+ stock ID)image
is an image, it is used if icon
is not presentsummary
is a single line overview of the notificationbody
is a multi-line body of text. Each line is a paragraph,
server implementations are free to word wrap them as they see fit.
The body may contain simple markup as specified in Markup. It must be
encoded using UTF-8. If the body is omitted, just the summary is
displayed.action
is a list of (text, key) pair, text
is the text displayed to the user
and key
is the value which will be returned when the action is invokedcategory
is a string representing the category of the
notification, for example: "device.added", "email.arrived"
(more category can be found in the specifications)sound_file
is a sound file to play while displaying the notificationsuppress_sound
tell the daemon to suppress soundspos
is a screen positionhints
is a list of additionnal hintstimeout
is a timeout in millisecondtype
server_info = {
|
server_name : |
|
server_vendor : |
|
server_version : |
|
server_spec_version : |
val get_server_information : unit -> server_info Lwt.t
val get_capabilities : unit -> string list Lwt.t