| 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.Notify.Objects.Notification
Contents
- Exported types
- Methods
- notificationAddAction
- notificationClearActions
- notificationClearHints
- notificationClose
- notificationGetClosedReason
- notificationNew
- notificationSetAppName
- notificationSetCategory
- notificationSetHint
- notificationSetHintByte
- notificationSetHintByteArray
- notificationSetHintDouble
- notificationSetHintInt32
- notificationSetHintString
- notificationSetHintUint32
- notificationSetIconFromPixbuf
- notificationSetImageFromPixbuf
- notificationSetTimeout
- notificationSetUrgency
- notificationShow
- notificationUpdate
- Properties
- Signals
Description
- newtype Notification = Notification (ForeignPtr Notification)
- class GObject o => NotificationK o
- toNotification :: NotificationK o => o -> IO Notification
- noNotification :: Maybe Notification
- notificationAddAction :: (MonadIO m, NotificationK a) => a -> Text -> Text -> ActionCallback -> m ()
- notificationClearActions :: (MonadIO m, NotificationK a) => a -> m ()
- notificationClearHints :: (MonadIO m, NotificationK a) => a -> m ()
- notificationClose :: (MonadIO m, NotificationK a) => a -> m ()
- notificationGetClosedReason :: (MonadIO m, NotificationK a) => a -> m Int32
- notificationNew :: MonadIO m => Text -> Maybe Text -> Maybe Text -> m Notification
- notificationSetAppName :: (MonadIO m, NotificationK a) => a -> Text -> m ()
- notificationSetCategory :: (MonadIO m, NotificationK a) => a -> Text -> m ()
- notificationSetHint :: (MonadIO m, NotificationK a) => a -> Text -> Maybe GVariant -> m ()
- notificationSetHintByte :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> m ()
- notificationSetHintByteArray :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> Word64 -> m ()
- notificationSetHintDouble :: (MonadIO m, NotificationK a) => a -> Text -> Double -> m ()
- notificationSetHintInt32 :: (MonadIO m, NotificationK a) => a -> Text -> Int32 -> m ()
- notificationSetHintString :: (MonadIO m, NotificationK a) => a -> Text -> Text -> m ()
- notificationSetHintUint32 :: (MonadIO m, NotificationK a) => a -> Text -> Word32 -> m ()
- notificationSetIconFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m ()
- notificationSetImageFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m ()
- notificationSetTimeout :: (MonadIO m, NotificationK a) => a -> Int32 -> m ()
- notificationSetUrgency :: (MonadIO m, NotificationK a) => a -> Urgency -> m ()
- notificationShow :: (MonadIO m, NotificationK a) => a -> m ()
- notificationUpdate :: (MonadIO m, NotificationK a) => a -> Text -> Maybe Text -> Maybe Text -> m Bool
- data NotificationAppNamePropertyInfo
- constructNotificationAppName :: Text -> IO ([Char], GValue)
- getNotificationAppName :: (MonadIO m, NotificationK o) => o -> m Text
- setNotificationAppName :: (MonadIO m, NotificationK o) => o -> Text -> m ()
- data NotificationBodyPropertyInfo
- constructNotificationBody :: Text -> IO ([Char], GValue)
- getNotificationBody :: (MonadIO m, NotificationK o) => o -> m Text
- setNotificationBody :: (MonadIO m, NotificationK o) => o -> Text -> m ()
- data NotificationClosedReasonPropertyInfo
- getNotificationClosedReason :: (MonadIO m, NotificationK o) => o -> m Int32
- data NotificationIconNamePropertyInfo
- constructNotificationIconName :: Text -> IO ([Char], GValue)
- getNotificationIconName :: (MonadIO m, NotificationK o) => o -> m Text
- setNotificationIconName :: (MonadIO m, NotificationK o) => o -> Text -> m ()
- data NotificationIdPropertyInfo
- constructNotificationId :: Int32 -> IO ([Char], GValue)
- getNotificationId :: (MonadIO m, NotificationK o) => o -> m Int32
- setNotificationId :: (MonadIO m, NotificationK o) => o -> Int32 -> m ()
- data NotificationSummaryPropertyInfo
- constructNotificationSummary :: Text -> IO ([Char], GValue)
- getNotificationSummary :: (MonadIO m, NotificationK o) => o -> m Text
- setNotificationSummary :: (MonadIO m, NotificationK o) => o -> Text -> m ()
- type NotificationClosedCallback = IO ()
- type NotificationClosedCallbackC = Ptr () -> Ptr () -> IO ()
- data NotificationClosedSignalInfo
- afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
- mkNotificationClosedCallback :: NotificationClosedCallbackC -> IO (FunPtr NotificationClosedCallbackC)
- noNotificationClosedCallback :: Maybe NotificationClosedCallback
- notificationClosedCallbackWrapper :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO ()
- notificationClosedClosure :: NotificationClosedCallback -> IO Closure
- onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId
Exported types
class GObject o => NotificationK o Source
Instances
| (GObject o, IsDescendantOf Notification o) => NotificationK o |
toNotification :: NotificationK o => o -> IO Notification Source
Methods
notificationAddAction
notificationAddAction :: (MonadIO m, NotificationK a) => a -> Text -> Text -> ActionCallback -> m () Source
notificationClearActions
notificationClearActions :: (MonadIO m, NotificationK a) => a -> m () Source
notificationClearHints
notificationClearHints :: (MonadIO m, NotificationK a) => a -> m () Source
notificationClose
notificationClose :: (MonadIO m, NotificationK a) => a -> m () Source
notificationGetClosedReason
notificationGetClosedReason :: (MonadIO m, NotificationK a) => a -> m Int32 Source
notificationNew
notificationNew :: MonadIO m => Text -> Maybe Text -> Maybe Text -> m Notification Source
notificationSetAppName
notificationSetAppName :: (MonadIO m, NotificationK a) => a -> Text -> m () Source
notificationSetCategory
notificationSetCategory :: (MonadIO m, NotificationK a) => a -> Text -> m () Source
notificationSetHint
notificationSetHint :: (MonadIO m, NotificationK a) => a -> Text -> Maybe GVariant -> m () Source
notificationSetHintByte
notificationSetHintByte :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintByteArray
notificationSetHintByteArray :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> Word64 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintDouble
notificationSetHintDouble :: (MonadIO m, NotificationK a) => a -> Text -> Double -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintInt32
notificationSetHintInt32 :: (MonadIO m, NotificationK a) => a -> Text -> Int32 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintString
notificationSetHintString :: (MonadIO m, NotificationK a) => a -> Text -> Text -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintUint32
notificationSetHintUint32 :: (MonadIO m, NotificationK a) => a -> Text -> Word32 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetIconFromPixbuf
notificationSetIconFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m () Source
Deprecated: use notify_notification_set_image_from_pixbuf() instead.
notificationSetImageFromPixbuf
notificationSetImageFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m () Source
notificationSetTimeout
notificationSetTimeout :: (MonadIO m, NotificationK a) => a -> Int32 -> m () Source
notificationSetUrgency
notificationSetUrgency :: (MonadIO m, NotificationK a) => a -> Urgency -> m () Source
notificationShow
notificationShow :: (MonadIO m, NotificationK a) => a -> m () Source
notificationUpdate
notificationUpdate :: (MonadIO m, NotificationK a) => a -> Text -> Maybe Text -> Maybe Text -> m Bool Source
Properties
AppName
data NotificationAppNamePropertyInfo Source
Instances
| AttrInfo NotificationAppNamePropertyInfo | |
| type AttrLabel NotificationAppNamePropertyInfo = "Notification::app-name" | |
| type AttrGetType NotificationAppNamePropertyInfo = Text | |
| type AttrBaseTypeConstraint NotificationAppNamePropertyInfo = NotificationK | |
| type AttrSetTypeConstraint NotificationAppNamePropertyInfo = * ~ Text | |
| type AttrAllowedOps NotificationAppNamePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getNotificationAppName :: (MonadIO m, NotificationK o) => o -> m Text Source
setNotificationAppName :: (MonadIO m, NotificationK o) => o -> Text -> m () Source
Body
data NotificationBodyPropertyInfo Source
Instances
| AttrInfo NotificationBodyPropertyInfo | |
| type AttrLabel NotificationBodyPropertyInfo = "Notification::body" | |
| type AttrGetType NotificationBodyPropertyInfo = Text | |
| type AttrBaseTypeConstraint NotificationBodyPropertyInfo = NotificationK | |
| type AttrSetTypeConstraint NotificationBodyPropertyInfo = * ~ Text | |
| type AttrAllowedOps NotificationBodyPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getNotificationBody :: (MonadIO m, NotificationK o) => o -> m Text Source
setNotificationBody :: (MonadIO m, NotificationK o) => o -> Text -> m () Source
ClosedReason
data NotificationClosedReasonPropertyInfo Source
Instances
| AttrInfo NotificationClosedReasonPropertyInfo | |
| type AttrLabel NotificationClosedReasonPropertyInfo = "Notification::closed-reason" | |
| type AttrGetType NotificationClosedReasonPropertyInfo = Int32 | |
| type AttrBaseTypeConstraint NotificationClosedReasonPropertyInfo = NotificationK | |
| type AttrSetTypeConstraint NotificationClosedReasonPropertyInfo = * ~ () | |
| type AttrAllowedOps NotificationClosedReasonPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getNotificationClosedReason :: (MonadIO m, NotificationK o) => o -> m Int32 Source
IconName
data NotificationIconNamePropertyInfo Source
Instances
| AttrInfo NotificationIconNamePropertyInfo | |
| type AttrLabel NotificationIconNamePropertyInfo = "Notification::icon-name" | |
| type AttrGetType NotificationIconNamePropertyInfo = Text | |
| type AttrBaseTypeConstraint NotificationIconNamePropertyInfo = NotificationK | |
| type AttrSetTypeConstraint NotificationIconNamePropertyInfo = * ~ Text | |
| type AttrAllowedOps NotificationIconNamePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getNotificationIconName :: (MonadIO m, NotificationK o) => o -> m Text Source
setNotificationIconName :: (MonadIO m, NotificationK o) => o -> Text -> m () Source
Id
data NotificationIdPropertyInfo Source
Instances
| AttrInfo NotificationIdPropertyInfo | |
| type AttrLabel NotificationIdPropertyInfo = "Notification::id" | |
| type AttrGetType NotificationIdPropertyInfo = Int32 | |
| type AttrBaseTypeConstraint NotificationIdPropertyInfo = NotificationK | |
| type AttrSetTypeConstraint NotificationIdPropertyInfo = * ~ Int32 | |
| type AttrAllowedOps NotificationIdPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getNotificationId :: (MonadIO m, NotificationK o) => o -> m Int32 Source
setNotificationId :: (MonadIO m, NotificationK o) => o -> Int32 -> m () Source
Summary
data NotificationSummaryPropertyInfo Source
Instances
| AttrInfo NotificationSummaryPropertyInfo | |
| type AttrLabel NotificationSummaryPropertyInfo = "Notification::summary" | |
| type AttrGetType NotificationSummaryPropertyInfo = Text | |
| type AttrBaseTypeConstraint NotificationSummaryPropertyInfo = NotificationK | |
| type AttrSetTypeConstraint NotificationSummaryPropertyInfo = * ~ Text | |
| type AttrAllowedOps NotificationSummaryPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) |
getNotificationSummary :: (MonadIO m, NotificationK o) => o -> m Text Source
setNotificationSummary :: (MonadIO m, NotificationK o) => o -> Text -> m () Source
Signals
Closed
type NotificationClosedCallback = IO () Source
type NotificationClosedCallbackC = Ptr () -> Ptr () -> IO () Source
afterNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source
mkNotificationClosedCallback :: NotificationClosedCallbackC -> IO (FunPtr NotificationClosedCallbackC) Source
notificationClosedCallbackWrapper :: NotificationClosedCallback -> Ptr () -> Ptr () -> IO () Source
onNotificationClosed :: (GObject a, MonadIO m) => a -> NotificationClosedCallback -> m SignalHandlerId Source