| 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 |
GI.WebKit2.Objects.Notification
Contents
Description
- 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 NotificationGetTagMethodInfo
- notificationGetTag :: (HasCallStack, MonadIO m, IsNotification a) => a -> m (Maybe Text)
- 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 NotificationTagPropertyInfo
- getNotificationTag :: (MonadIO m, IsNotification o) => o -> m (Maybe Text)
- notificationTag :: AttrLabelProxy "tag"
- 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 :: (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 ()
- data NotificationClosedSignalInfo
- 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 #
Constructors
| Notification (ManagedPtr Notification) |
Instances
| 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 #
Instances
toNotification :: IsNotification o => o -> IO Notification Source #
Methods
clicked
data NotificationClickedMethodInfo Source #
Instances
| ((~) * signature (m ()), MonadIO m, IsNotification a) => MethodInfo * NotificationClickedMethodInfo a signature Source # | |
Arguments
| :: (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 #
Instances
| ((~) * signature (m ()), MonadIO m, IsNotification a) => MethodInfo * NotificationCloseMethodInfo a signature Source # | |
Arguments
| :: (HasCallStack, MonadIO m, IsNotification a) | |
| => a |
|
| -> m () |
Closes the notification.
Since: 2.8
getBody
data NotificationGetBodyMethodInfo Source #
Instances
| ((~) * signature (m Text), MonadIO m, IsNotification a) => MethodInfo * NotificationGetBodyMethodInfo a signature Source # | |
Arguments
| :: (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 #
Instances
| ((~) * signature (m Word64), MonadIO m, IsNotification a) => MethodInfo * NotificationGetIdMethodInfo a signature Source # | |
Arguments
| :: (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
data NotificationGetTagMethodInfo Source #
Instances
| ((~) * signature (m (Maybe Text)), MonadIO m, IsNotification a) => MethodInfo * NotificationGetTagMethodInfo a signature Source # | |
Arguments
| :: (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
data NotificationGetTitleMethodInfo Source #
Instances
| ((~) * signature (m Text), MonadIO m, IsNotification a) => MethodInfo * NotificationGetTitleMethodInfo a signature Source # | |
Arguments
| :: (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 #
Instances
getNotificationBody :: (MonadIO m, IsNotification o) => o -> m Text Source #
notificationBody :: AttrLabelProxy "body" Source #
id
data NotificationIdPropertyInfo Source #
Instances
getNotificationId :: (MonadIO m, IsNotification o) => o -> m Word64 Source #
notificationId :: AttrLabelProxy "id" Source #
tag
data NotificationTagPropertyInfo Source #
Instances
getNotificationTag :: (MonadIO m, IsNotification o) => o -> m (Maybe Text) Source #
notificationTag :: AttrLabelProxy "tag" Source #
title
data NotificationTitlePropertyInfo Source #
Instances
getNotificationTitle :: (MonadIO m, IsNotification o) => o -> m Text Source #
notificationTitle :: AttrLabelProxy "title" 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 #