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 :: IsNotification o => o -> IO Notification
- noNotification :: Maybe Notification
- data NotificationClickedMethodInfo
- notificationClicked :: (HasCallStack, MonadIO m, IsNotification a) => a -> m ()
- data NotificationCloseMethodInfo
- notificationClose :: (HasCallStack, MonadIO m, IsNotification a) => a -> m ()
- data NotificationGetBodyMethodInfo
- notificationGetBody :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text
- data NotificationGetIdMethodInfo
- notificationGetId :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Word64
- data NotificationGetTitleMethodInfo
- notificationGetTitle :: (HasCallStack, MonadIO m, IsNotification a) => a -> m Text
- data NotificationBodyPropertyInfo
- getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text
- notificationBody :: AttrLabelProxy "body"
- data NotificationIdPropertyInfo
- getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64
- notificationId :: AttrLabelProxy "id"
- data NotificationTitlePropertyInfo
- getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text
- notificationTitle :: AttrLabelProxy "title"
- type C_NotificationClickedCallback = Ptr () -> Ptr () -> IO ()
- type NotificationClickedCallback = IO ()
- data NotificationClickedSignalInfo
- afterNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- genClosure_NotificationClicked :: NotificationClickedCallback -> IO Closure
- mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback)
- noNotificationClickedCallback :: Maybe NotificationClickedCallback
- onNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId
- wrap_NotificationClickedCallback :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO ()
- type C_NotificationClosedCallback = Ptr () -> Ptr () -> IO ()
- type NotificationClosedCallback = IO ()
- data NotificationClosedSignalInfo
- afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- genClosure_NotificationClosed :: NotificationClosedCallback -> IO Closure
- mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback)
- noNotificationClosedCallback :: Maybe NotificationClosedCallback
- onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- wrap_NotificationClosedCallback :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO ()
Exported types
newtype Notification Source #
GObject Notification Source # | |
IsObject Notification Source # | |
IsNotification Notification Source # | |
((~) * info (ResolveNotificationMethod t Notification), MethodInfo * info Notification p) => IsLabel t (Notification -> p) Source # | |
((~) * info (ResolveNotificationMethod t Notification), MethodInfo * info Notification p) => IsLabelProxy t (Notification -> p) Source # | |
HasAttributeList * Notification Source # | |
type AttributeList Notification Source # | |
type SignalList Notification Source # | |
class GObject o => IsNotification o Source #
toNotification :: IsNotification o => o -> IO Notification Source #
Methods
clicked
data NotificationClickedMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsNotification a) => MethodInfo * NotificationClickedMethodInfo a signature Source # | |
:: (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
data NotificationCloseMethodInfo Source #
((~) * signature (m ()), MonadIO m, IsNotification a) => MethodInfo * NotificationCloseMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m () |
Closes the notification.
Since: 2.8
getBody
data NotificationGetBodyMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsNotification a) => MethodInfo * NotificationGetBodyMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsNotification a) | |
=> a |
|
-> m Text | Returns: the body for the notification |
Obtains the body for the notification.
Since: 2.8
getId
data NotificationGetIdMethodInfo Source #
((~) * signature (m Word64), MonadIO m, IsNotification a) => MethodInfo * NotificationGetIdMethodInfo a signature Source # | |
:: (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
getTitle
data NotificationGetTitleMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsNotification a) => MethodInfo * NotificationGetTitleMethodInfo a signature Source # | |
:: (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
data NotificationBodyPropertyInfo Source #
getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text Source #
notificationBody :: AttrLabelProxy "body" Source #
id
data NotificationIdPropertyInfo Source #
getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64 Source #
notificationId :: AttrLabelProxy "id" Source #
title
data NotificationTitlePropertyInfo Source #
getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text Source #
notificationTitle :: AttrLabelProxy "title" Source #
Signals
clicked
type NotificationClickedCallback = IO () Source #
afterNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source #
mk_NotificationClickedCallback :: C_NotificationClickedCallback -> IO (FunPtr C_NotificationClickedCallback) Source #
onNotificationClicked :: (GObject a, MonadIO m) => a -> NotificationClickedCallback -> m SignalHandlerId Source #
wrap_NotificationClickedCallback :: NotificationClickedCallback -> Ptr () -> Ptr () -> IO () Source #
closed
type NotificationClosedCallback = IO () Source #
afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source #
mk_NotificationClosedCallback :: C_NotificationClosedCallback -> IO (FunPtr C_NotificationClosedCallback) Source #
onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source #
wrap_NotificationClosedCallback :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO () Source #