| Safe Haskell | None |
|---|
Libnotify.C.Notify
Description
Low level bindings to libnotify
See also https://developer.gnome.org/libnotify/0.7/libnotify-notify.html. Haddocks here are mostly excerpts from there
- 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 {
- name :: String
- vendor :: String
- version :: String
- specVersion :: String
- notify_get_server_info :: IO (Maybe ServerInfo)
Documentation
Arguments
| :: String | Application name. Should not be empty! |
| -> IO Bool |
Initialize libnotify
This must be called before any other functions
notify_uninit :: IO ()Source
Uninitialize libnotify
notify_is_initted :: IO BoolSource
Get whether libnotify is initialized or not
notify_get_app_name :: IO StringSource
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
Constructors
| ServerInfo | |
Fields
| |
Instances
| Eq ServerInfo | |
| Data ServerInfo | |
| Show ServerInfo | |
| Typeable ServerInfo | |
| Generic ServerInfo |
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_infoJust (ServerInfo {name = "Xfce Notify Daemon", vendor = "Xfce", version = "0.2.4", specVersion = "0.9"})