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 |
- 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
- newtype Notification = Notification (ForeignPtr Notification)
- class GObject o => NotificationK o
- toNotification :: NotificationK o => o -> IO Notification
- noNotification :: Maybe Notification
- data NotificationAddActionMethodInfo
- notificationAddAction :: (MonadIO m, NotificationK a) => a -> Text -> Text -> ActionCallback -> m ()
- data NotificationClearActionsMethodInfo
- notificationClearActions :: (MonadIO m, NotificationK a) => a -> m ()
- data NotificationClearHintsMethodInfo
- notificationClearHints :: (MonadIO m, NotificationK a) => a -> m ()
- data NotificationCloseMethodInfo
- notificationClose :: (MonadIO m, NotificationK a) => a -> m ()
- data NotificationGetClosedReasonMethodInfo
- notificationGetClosedReason :: (MonadIO m, NotificationK a) => a -> m Int32
- notificationNew :: MonadIO m => Text -> Maybe Text -> Maybe Text -> m Notification
- data NotificationSetAppNameMethodInfo
- notificationSetAppName :: (MonadIO m, NotificationK a) => a -> Text -> m ()
- data NotificationSetCategoryMethodInfo
- notificationSetCategory :: (MonadIO m, NotificationK a) => a -> Text -> m ()
- data NotificationSetHintMethodInfo
- notificationSetHint :: (MonadIO m, NotificationK a) => a -> Text -> Maybe GVariant -> m ()
- data NotificationSetHintByteMethodInfo
- notificationSetHintByte :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> m ()
- data NotificationSetHintByteArrayMethodInfo
- notificationSetHintByteArray :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> Word64 -> m ()
- data NotificationSetHintDoubleMethodInfo
- notificationSetHintDouble :: (MonadIO m, NotificationK a) => a -> Text -> Double -> m ()
- data NotificationSetHintInt32MethodInfo
- notificationSetHintInt32 :: (MonadIO m, NotificationK a) => a -> Text -> Int32 -> m ()
- data NotificationSetHintStringMethodInfo
- notificationSetHintString :: (MonadIO m, NotificationK a) => a -> Text -> Text -> m ()
- data NotificationSetHintUint32MethodInfo
- notificationSetHintUint32 :: (MonadIO m, NotificationK a) => a -> Text -> Word32 -> m ()
- data NotificationSetIconFromPixbufMethodInfo
- notificationSetIconFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m ()
- data NotificationSetImageFromPixbufMethodInfo
- notificationSetImageFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m ()
- data NotificationSetTimeoutMethodInfo
- notificationSetTimeout :: (MonadIO m, NotificationK a) => a -> Int32 -> m ()
- data NotificationSetUrgencyMethodInfo
- notificationSetUrgency :: (MonadIO m, NotificationK a) => a -> Urgency -> m ()
- data NotificationShowMethodInfo
- notificationShow :: (MonadIO m, NotificationK a) => a -> m ()
- data NotificationUpdateMethodInfo
- 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 (Maybe Text)
- notificationAppName :: AttrLabelProxy "appName"
- setNotificationAppName :: (MonadIO m, NotificationK o) => o -> Text -> m ()
- data NotificationBodyPropertyInfo
- clearNotificationBody :: (MonadIO m, NotificationK o) => o -> m ()
- constructNotificationBody :: Text -> IO ([Char], GValue)
- getNotificationBody :: (MonadIO m, NotificationK o) => o -> m (Maybe Text)
- notificationBody :: AttrLabelProxy "body"
- setNotificationBody :: (MonadIO m, NotificationK o) => o -> Text -> m ()
- data NotificationClosedReasonPropertyInfo
- getNotificationClosedReason :: (MonadIO m, NotificationK o) => o -> m Int32
- notificationClosedReason :: AttrLabelProxy "closedReason"
- data NotificationIconNamePropertyInfo
- clearNotificationIconName :: (MonadIO m, NotificationK o) => o -> m ()
- constructNotificationIconName :: Text -> IO ([Char], GValue)
- getNotificationIconName :: (MonadIO m, NotificationK o) => o -> m (Maybe Text)
- notificationIconName :: AttrLabelProxy "iconName"
- setNotificationIconName :: (MonadIO m, NotificationK o) => o -> Text -> m ()
- data NotificationIdPropertyInfo
- constructNotificationId :: Int32 -> IO ([Char], GValue)
- getNotificationId :: (MonadIO m, NotificationK o) => o -> m Int32
- notificationId :: AttrLabelProxy "id"
- setNotificationId :: (MonadIO m, NotificationK o) => o -> Int32 -> m ()
- data NotificationSummaryPropertyInfo
- clearNotificationSummary :: (MonadIO m, NotificationK o) => o -> m ()
- constructNotificationSummary :: Text -> IO ([Char], GValue)
- getNotificationSummary :: (MonadIO m, NotificationK o) => o -> m (Maybe Text)
- notificationSummary :: AttrLabelProxy "summary"
- 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
newtype Notification Source
GObject Notification | |
((~) * info (ResolveNotificationMethod t Notification), MethodInfo * info Notification p) => IsLabelProxy t (Notification -> p) | |
type ParentTypes Notification | |
type AttributeList Notification | |
type SignalList Notification |
class GObject o => NotificationK o Source
(GObject o, IsDescendantOf Notification o) => NotificationK o |
toNotification :: NotificationK o => o -> IO Notification Source
Methods
notificationAddAction
data NotificationAddActionMethodInfo Source
((~) * signature (Text -> Text -> ActionCallback -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationAddActionMethodInfo a signature |
notificationAddAction :: (MonadIO m, NotificationK a) => a -> Text -> Text -> ActionCallback -> m () Source
notificationClearActions
data NotificationClearActionsMethodInfo Source
((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationClearActionsMethodInfo a signature |
notificationClearActions :: (MonadIO m, NotificationK a) => a -> m () Source
notificationClearHints
data NotificationClearHintsMethodInfo Source
((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationClearHintsMethodInfo a signature |
notificationClearHints :: (MonadIO m, NotificationK a) => a -> m () Source
notificationClose
data NotificationCloseMethodInfo Source
((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationCloseMethodInfo a signature |
notificationClose :: (MonadIO m, NotificationK a) => a -> m () Source
notificationGetClosedReason
data NotificationGetClosedReasonMethodInfo Source
((~) * signature (m Int32), MonadIO m, NotificationK a) => MethodInfo * NotificationGetClosedReasonMethodInfo a signature |
notificationGetClosedReason :: (MonadIO m, NotificationK a) => a -> m Int32 Source
notificationNew
notificationNew :: MonadIO m => Text -> Maybe Text -> Maybe Text -> m Notification Source
notificationSetAppName
data NotificationSetAppNameMethodInfo Source
((~) * signature (Text -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetAppNameMethodInfo a signature |
notificationSetAppName :: (MonadIO m, NotificationK a) => a -> Text -> m () Source
notificationSetCategory
data NotificationSetCategoryMethodInfo Source
((~) * signature (Text -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetCategoryMethodInfo a signature |
notificationSetCategory :: (MonadIO m, NotificationK a) => a -> Text -> m () Source
notificationSetHint
data NotificationSetHintMethodInfo Source
((~) * signature (Text -> Maybe GVariant -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintMethodInfo a signature |
notificationSetHint :: (MonadIO m, NotificationK a) => a -> Text -> Maybe GVariant -> m () Source
notificationSetHintByte
data NotificationSetHintByteMethodInfo Source
((~) * signature (Text -> Word8 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintByteMethodInfo a signature |
notificationSetHintByte :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintByteArray
data NotificationSetHintByteArrayMethodInfo Source
((~) * signature (Text -> Word8 -> Word64 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintByteArrayMethodInfo a signature |
notificationSetHintByteArray :: (MonadIO m, NotificationK a) => a -> Text -> Word8 -> Word64 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintDouble
data NotificationSetHintDoubleMethodInfo Source
((~) * signature (Text -> Double -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintDoubleMethodInfo a signature |
notificationSetHintDouble :: (MonadIO m, NotificationK a) => a -> Text -> Double -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintInt32
data NotificationSetHintInt32MethodInfo Source
((~) * signature (Text -> Int32 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintInt32MethodInfo a signature |
notificationSetHintInt32 :: (MonadIO m, NotificationK a) => a -> Text -> Int32 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintString
data NotificationSetHintStringMethodInfo Source
((~) * signature (Text -> Text -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintStringMethodInfo a signature |
notificationSetHintString :: (MonadIO m, NotificationK a) => a -> Text -> Text -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetHintUint32
data NotificationSetHintUint32MethodInfo Source
((~) * signature (Text -> Word32 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintUint32MethodInfo a signature |
notificationSetHintUint32 :: (MonadIO m, NotificationK a) => a -> Text -> Word32 -> m () Source
Deprecated: (Since version 0.6.)Use notify_notification_set_hint() instead
notificationSetIconFromPixbuf
data NotificationSetIconFromPixbufMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, NotificationK a, PixbufK b) => MethodInfo * NotificationSetIconFromPixbufMethodInfo a signature |
notificationSetIconFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m () Source
Deprecated: use notify_notification_set_image_from_pixbuf() instead.
notificationSetImageFromPixbuf
data NotificationSetImageFromPixbufMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, NotificationK a, PixbufK b) => MethodInfo * NotificationSetImageFromPixbufMethodInfo a signature |
notificationSetImageFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m () Source
notificationSetTimeout
data NotificationSetTimeoutMethodInfo Source
((~) * signature (Int32 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetTimeoutMethodInfo a signature |
notificationSetTimeout :: (MonadIO m, NotificationK a) => a -> Int32 -> m () Source
notificationSetUrgency
data NotificationSetUrgencyMethodInfo Source
((~) * signature (Urgency -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetUrgencyMethodInfo a signature |
notificationSetUrgency :: (MonadIO m, NotificationK a) => a -> Urgency -> m () Source
notificationShow
data NotificationShowMethodInfo Source
((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationShowMethodInfo a signature |
notificationShow :: (MonadIO m, NotificationK a) => a -> m () Source
notificationUpdate
data NotificationUpdateMethodInfo Source
((~) * signature (Text -> Maybe Text -> Maybe Text -> m Bool), MonadIO m, NotificationK a) => MethodInfo * NotificationUpdateMethodInfo a signature |
notificationUpdate :: (MonadIO m, NotificationK a) => a -> Text -> Maybe Text -> Maybe Text -> m Bool Source
Properties
AppName
data NotificationAppNamePropertyInfo Source
AttrInfo NotificationAppNamePropertyInfo | |
type AttrLabel NotificationAppNamePropertyInfo = "app-name" | |
type AttrGetType NotificationAppNamePropertyInfo = Maybe 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 (Maybe Text) Source
notificationAppName :: AttrLabelProxy "appName" Source
setNotificationAppName :: (MonadIO m, NotificationK o) => o -> Text -> m () Source
Body
data NotificationBodyPropertyInfo Source
AttrInfo NotificationBodyPropertyInfo | |
type AttrLabel NotificationBodyPropertyInfo = "body" | |
type AttrGetType NotificationBodyPropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint NotificationBodyPropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationBodyPropertyInfo = * ~ Text | |
type AttrAllowedOps NotificationBodyPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearNotificationBody :: (MonadIO m, NotificationK o) => o -> m () Source
getNotificationBody :: (MonadIO m, NotificationK o) => o -> m (Maybe Text) Source
notificationBody :: AttrLabelProxy "body" Source
setNotificationBody :: (MonadIO m, NotificationK o) => o -> Text -> m () Source
ClosedReason
data NotificationClosedReasonPropertyInfo Source
getNotificationClosedReason :: (MonadIO m, NotificationK o) => o -> m Int32 Source
notificationClosedReason :: AttrLabelProxy "closedReason" Source
IconName
data NotificationIconNamePropertyInfo Source
AttrInfo NotificationIconNamePropertyInfo | |
type AttrLabel NotificationIconNamePropertyInfo = "icon-name" | |
type AttrGetType NotificationIconNamePropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint NotificationIconNamePropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationIconNamePropertyInfo = * ~ Text | |
type AttrAllowedOps NotificationIconNamePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearNotificationIconName :: (MonadIO m, NotificationK o) => o -> m () Source
getNotificationIconName :: (MonadIO m, NotificationK o) => o -> m (Maybe Text) Source
notificationIconName :: AttrLabelProxy "iconName" Source
setNotificationIconName :: (MonadIO m, NotificationK o) => o -> Text -> m () Source
Id
data NotificationIdPropertyInfo Source
AttrInfo NotificationIdPropertyInfo | |
type AttrLabel NotificationIdPropertyInfo = "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
notificationId :: AttrLabelProxy "id" Source
setNotificationId :: (MonadIO m, NotificationK o) => o -> Int32 -> m () Source
Summary
data NotificationSummaryPropertyInfo Source
AttrInfo NotificationSummaryPropertyInfo | |
type AttrLabel NotificationSummaryPropertyInfo = "summary" | |
type AttrGetType NotificationSummaryPropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint NotificationSummaryPropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationSummaryPropertyInfo = * ~ Text | |
type AttrAllowedOps NotificationSummaryPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) |
clearNotificationSummary :: (MonadIO m, NotificationK o) => o -> m () Source
getNotificationSummary :: (MonadIO m, NotificationK o) => o -> m (Maybe Text) Source
notificationSummary :: AttrLabelProxy "summary" 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