| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Notify.Functions
Description
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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Text | Returns: The registered application name, passed to |
Gets the application name registered.
getServerCaps
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m [Text] | Returns: a |
Synchronously queries the server for its capabilities and returns them in a List.
getServerInfo
Arguments
| :: (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
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m Bool |
Initialized libnotify. This must be called before any other functions.
isInitted
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Bool | Returns: |
Gets whether or not libnotify is initialized.
setAppName
Arguments
| :: (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.