gi-notify-0.7.22: Libnotify bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Notify.Functions

Description

 
Synopsis

Methods

getAppName

getAppName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Text

Returns: The registered application name, passed to init.

Gets the application name registered.

getServerCaps

getServerCaps Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m [Text]

Returns: a List of server capability strings. Free the list elements with free and the list itself with g_list_free().

Synchronously queries the server for its capabilities and returns them in a List.

getServerInfo

getServerInfo Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m (Bool, Text, Text, Text, Text)

Returns: True if successful, and the variables passed will be set, False on error. The returned strings must be freed with g_free

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

init Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

appName: The name of the application initializing libnotify.

-> m Bool

Returns: True if successful, or False on error.

Initialized libnotify. This must be called before any other functions.

isInitted

isInitted Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Bool

Returns: True if libnotify is initialized, or False otherwise.

Gets whether or not libnotify is initialized.

setAppName

setAppName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

appName: The name of the application

-> 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.