Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Low level bindings to libnotify
See also https://developer.gnome.org/libnotify/0.7/libnotify-notify.html. Haddocks here are mostly excerpts from there
Synopsis
- notify_init :: String -> IO Bool
- notify_uninit :: IO ()
- notify_is_initted :: IO Bool
- notify_get_app_name :: IO String
- notify_set_app_name :: String -> IO ()
- notify_get_server_caps :: IO [String]
- data ServerInfo = ServerInfo {}
- notify_get_server_info :: IO (Maybe ServerInfo)
Documentation
Initialize libnotify
This must be called before any other functions
notify_uninit :: IO () Source #
Uninitialize libnotify
notify_is_initted :: IO Bool Source #
Get whether libnotify is initialized or not
notify_get_app_name :: IO String Source #
Get the application name
Do not forget to call notify_init
before calling this!
notify_set_app_name :: String -> IO () Source #
Set the application name
Do not forget to call notify_init
before calling this!
notify_get_server_caps :: IO [String] Source #
Return server capabilities
Synchronously queries the server for its capabilities
>>>
notify_get_server_caps
["actions","body","body-markup","body-hyperlinks","icon-static","x-canonical-private-icon-only"]
data ServerInfo Source #
Server information
ServerInfo | |
|
Instances
notify_get_server_info :: IO (Maybe ServerInfo) Source #
Return server information
Synchronously queries the server for its information, specifically, the name, vendor, server version, and the version of the notifications specification that it is compliant with
>>>
notify_get_server_info
Just (ServerInfo {name = "Xfce Notify Daemon", vendor = "Xfce", version = "0.2.4", specVersion = "0.9"})