Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- getAppName :: (HasCallStack, MonadIO m) => m Text
- getServerCaps :: (HasCallStack, MonadIO m) => m [Text]
- getServerInfo :: (HasCallStack, MonadIO m) => m (Bool, Text, Text, Text, Text)
- init :: (HasCallStack, MonadIO m) => Maybe Text -> m Bool
- isInitted :: (HasCallStack, MonadIO m) => m Bool
- setAppName :: (HasCallStack, MonadIO m) => Text -> m ()
- uninit :: (HasCallStack, MonadIO m) => m ()
Methods
getAppName
:: (HasCallStack, MonadIO m) | |
=> m Text | Returns: The registered application name, passed to [func |
Gets the application name registered.
getServerCaps
:: (HasCallStack, MonadIO m) | |
=> m [Text] | Returns: a list of server capability strings. |
Queries the server capabilities.
Synchronously queries the server for its capabilities and returns them in a list.
getServerInfo
:: (HasCallStack, MonadIO m) | |
=> m (Bool, Text, Text, Text, Text) | Returns: |
Queries the server for 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.
init
:: (HasCallStack, MonadIO m) | |
=> Maybe Text |
|
-> m Bool |
Initialized libnotify. This must be called before any other functions.
Starting from 0.8, if the provided appName
is Nothing
, libnotify will
try to figure it out from the running application.
Before it was not allowed, and was causing libnotify not to be initialized.
isInitted
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: |
Gets whether or not libnotify is initialized.
setAppName
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m () |
Sets the application name.
uninit
uninit :: (HasCallStack, MonadIO m) => m () Source #
Uninitializes libnotify.
This should be called when the program no longer needs libnotify for the rest of its lifecycle, typically just before exitting.