Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Notification = Notification (ManagedPtr Notification)
- class GObject o => IsNotification o
- toNotification :: (MonadIO m, IsNotification o) => o -> m Notification
- noNotification :: Maybe Notification
- notificationClicked :: (HasCallStack, MonadIO m, IsNotification a) => a -> m ()
- notificationClose :: (HasCallStack, MonadIO m, IsNotification a) => a -> m ()
- notificationGetBody :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text
- notificationGetId :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Word64
- notificationGetTag :: (HasCallStack, MonadIO m, IsNotification a) => a -> m (Maybe Text)
- notificationGetTitle :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text
- getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text
- getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64
- getNotificationTag :: (MonadIO m, IsNotification o) => o -> m (Maybe Text)
- getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text
- type C_NotificationClickedCallback = Ptr () -> Ptr () -> IO ()
- type NotificationClickedCallback = IO ()
- afterNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- genClosure_NotificationClicked :: NotificationClickedCallback -> IO Closure
- mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback)
- noNotificationClickedCallback :: Maybe NotificationClickedCallback
- onNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- wrap_NotificationClickedCallback :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO ()
- type C_NotificationClosedCallback = Ptr () -> Ptr () -> IO ()
- type NotificationClosedCallback = IO ()
- afterNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- genClosure_NotificationClosed :: NotificationClosedCallback -> IO Closure
- mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback)
- noNotificationClosedCallback :: Maybe NotificationClosedCallback
- onNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- wrap_NotificationClosedCallback :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype Notification Source #
class GObject o => IsNotification o Source #
toNotification :: (MonadIO m, IsNotification o) => o -> m Notification Source #
Methods
clicked
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m () |
Tells WebKit the notification has been clicked. This will emit the
Notification
::clicked
signal.
Since: 2.12
close
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m () |
Closes the notification.
Since: 2.8
getBody
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m Text | Returns: the body for the notification |
Obtains the body for the notification.
Since: 2.8
getId
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m Word64 | Returns: the unique id for the notification |
Obtains the unique id for the notification.
Since: 2.8
getTag
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m (Maybe Text) | Returns: the tag for the notification |
Obtains the tag identifier for the notification.
Since: 2.16
getTitle
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m Text | Returns: the title for the notification |
Obtains the title for the notification.
Since: 2.8
Properties
body
getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text Source #
id
getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64 Source #
tag
getNotificationTag :: (MonadIO m, IsNotification o) => o -> m (Maybe Text) Source #
title
getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text Source #
Signals
clicked
type NotificationClickedCallback = IO () Source #
afterNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source #
mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback) Source #
onNotificationClicked :: (IsNotification a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source #
wrap_NotificationClickedCallback :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO () Source #
closed
type NotificationClosedCallback = IO () Source #
afterNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source #
mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback) Source #
onNotificationClosed :: (IsNotification a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source #
wrap_NotificationClosedCallback :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO () Source #