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) => 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 |
Gets the application name registered.
getServerCaps
:: (HasCallStack, MonadIO m) | |
=> m [Text] | Returns: a |
Synchronously queries the server for its capabilities and returns them in a List
.
getServerInfo
:: (HasCallStack, MonadIO m) | |
=> m (Bool, Text, Text, Text, Text) | Returns: |
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) | |
=> Text |
|
-> m Bool |
Initialized libnotify. This must be called before any other functions.
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 #
Uninitialized libnotify.
This should be called when the program no longer needs libnotify for the rest of its lifecycle, typically just before exitting.