| 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
- 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
Constructors
| Notification (ForeignPtr Notification) |
Instances
| GObject Notification Source | |
| ((~) * info (ResolveNotificationMethod t Notification), MethodInfo * info Notification p) => IsLabelProxy t (Notification -> p) Source | |
| type ParentTypes Notification Source | |
| type AttributeList Notification Source | |
| type SignalList Notification Source |
class GObject o => NotificationK o Source
Instances
| (GObject o, IsDescendantOf Notification o) => NotificationK o Source |
toNotification :: NotificationK o => o -> IO Notification Source
Methods
notificationAddAction
data NotificationAddActionMethodInfo Source
Instances
| ((~) * signature (Text -> Text -> ActionCallback -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationAddActionMethodInfo a signature Source |
notificationAddAction :: (MonadIO m, NotificationK a) => a -> Text -> Text -> ActionCallback -> m () Source
notificationClearActions
data NotificationClearActionsMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationClearActionsMethodInfo a signature Source |
notificationClearActions :: (MonadIO m, NotificationK a) => a -> m () Source
notificationClearHints
data NotificationClearHintsMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationClearHintsMethodInfo a signature Source |
notificationClearHints :: (MonadIO m, NotificationK a) => a -> m () Source
notificationClose
data NotificationCloseMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationCloseMethodInfo a signature Source |
notificationClose :: (MonadIO m, NotificationK a) => a -> m () Source
notificationGetClosedReason
data NotificationGetClosedReasonMethodInfo Source
Instances
| ((~) * signature (m Int32), MonadIO m, NotificationK a) => MethodInfo * NotificationGetClosedReasonMethodInfo a signature Source |
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
Instances
| ((~) * signature (Text -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetAppNameMethodInfo a signature Source |
notificationSetAppName :: (MonadIO m, NotificationK a) => a -> Text -> m () Source
notificationSetCategory
data NotificationSetCategoryMethodInfo Source
Instances
| ((~) * signature (Text -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetCategoryMethodInfo a signature Source |
notificationSetCategory :: (MonadIO m, NotificationK a) => a -> Text -> m () Source
notificationSetHint
data NotificationSetHintMethodInfo Source
Instances
| ((~) * signature (Text -> Maybe GVariant -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintMethodInfo a signature Source |
notificationSetHint :: (MonadIO m, NotificationK a) => a -> Text -> Maybe GVariant -> m () Source
notificationSetHintByte
data NotificationSetHintByteMethodInfo Source
Instances
| ((~) * signature (Text -> Word8 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintByteMethodInfo a signature Source |
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
Instances
| ((~) * signature (Text -> Word8 -> Word64 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintByteArrayMethodInfo a signature Source |
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
Instances
| ((~) * signature (Text -> Double -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintDoubleMethodInfo a signature Source |
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
Instances
| ((~) * signature (Text -> Int32 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintInt32MethodInfo a signature Source |
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
Instances
| ((~) * signature (Text -> Text -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintStringMethodInfo a signature Source |
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
Instances
| ((~) * signature (Text -> Word32 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetHintUint32MethodInfo a signature Source |
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
Instances
| ((~) * signature (b -> m ()), MonadIO m, NotificationK a, PixbufK b) => MethodInfo * NotificationSetIconFromPixbufMethodInfo a signature Source |
notificationSetIconFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m () Source
Deprecated: use notify_notification_set_image_from_pixbuf() instead.
notificationSetImageFromPixbuf
data NotificationSetImageFromPixbufMethodInfo Source
Instances
| ((~) * signature (b -> m ()), MonadIO m, NotificationK a, PixbufK b) => MethodInfo * NotificationSetImageFromPixbufMethodInfo a signature Source |
notificationSetImageFromPixbuf :: (MonadIO m, NotificationK a, PixbufK b) => a -> b -> m () Source
notificationSetTimeout
data NotificationSetTimeoutMethodInfo Source
Instances
| ((~) * signature (Int32 -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetTimeoutMethodInfo a signature Source |
notificationSetTimeout :: (MonadIO m, NotificationK a) => a -> Int32 -> m () Source
notificationSetUrgency
data NotificationSetUrgencyMethodInfo Source
Instances
| ((~) * signature (Urgency -> m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationSetUrgencyMethodInfo a signature Source |
notificationSetUrgency :: (MonadIO m, NotificationK a) => a -> Urgency -> m () Source
notificationShow
data NotificationShowMethodInfo Source
Instances
| ((~) * signature (m ()), MonadIO m, NotificationK a) => MethodInfo * NotificationShowMethodInfo a signature Source |
notificationShow :: (MonadIO m, NotificationK a) => a -> m () Source
notificationUpdate
data NotificationUpdateMethodInfo Source
Instances
| ((~) * signature (Text -> Maybe Text -> Maybe Text -> m Bool), MonadIO m, NotificationK a) => MethodInfo * NotificationUpdateMethodInfo a signature Source |
notificationUpdate :: (MonadIO m, NotificationK a) => a -> Text -> Maybe Text -> Maybe Text -> m Bool Source
Properties
AppName
data NotificationAppNamePropertyInfo Source
Instances
| AttrInfo NotificationAppNamePropertyInfo Source | |
| type AttrLabel NotificationAppNamePropertyInfo = "app-name" Source | |
| type AttrGetType NotificationAppNamePropertyInfo = Maybe Text Source | |
| type AttrBaseTypeConstraint NotificationAppNamePropertyInfo = NotificationK Source | |
| type AttrSetTypeConstraint NotificationAppNamePropertyInfo = * ~ Text Source | |
| type AttrAllowedOps NotificationAppNamePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
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
Instances
| AttrInfo NotificationBodyPropertyInfo Source | |
| type AttrLabel NotificationBodyPropertyInfo = "body" Source | |
| type AttrGetType NotificationBodyPropertyInfo = Maybe Text Source | |
| type AttrBaseTypeConstraint NotificationBodyPropertyInfo = NotificationK Source | |
| type AttrSetTypeConstraint NotificationBodyPropertyInfo = * ~ Text Source | |
| type AttrAllowedOps NotificationBodyPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) Source |
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
Instances
getNotificationClosedReason :: (MonadIO m, NotificationK o) => o -> m Int32 Source
notificationClosedReason :: AttrLabelProxy "closedReason" Source
IconName
data NotificationIconNamePropertyInfo Source
Instances
| AttrInfo NotificationIconNamePropertyInfo Source | |
| type AttrLabel NotificationIconNamePropertyInfo = "icon-name" Source | |
| type AttrGetType NotificationIconNamePropertyInfo = Maybe Text Source | |
| type AttrBaseTypeConstraint NotificationIconNamePropertyInfo = NotificationK Source | |
| type AttrSetTypeConstraint NotificationIconNamePropertyInfo = * ~ Text Source | |
| type AttrAllowedOps NotificationIconNamePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) Source |
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
Instances
| AttrInfo NotificationIdPropertyInfo Source | |
| type AttrLabel NotificationIdPropertyInfo = "id" Source | |
| type AttrGetType NotificationIdPropertyInfo = Int32 Source | |
| type AttrBaseTypeConstraint NotificationIdPropertyInfo = NotificationK Source | |
| type AttrSetTypeConstraint NotificationIdPropertyInfo = * ~ Int32 Source | |
| type AttrAllowedOps NotificationIdPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
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
Instances
| AttrInfo NotificationSummaryPropertyInfo Source | |
| type AttrLabel NotificationSummaryPropertyInfo = "summary" Source | |
| type AttrGetType NotificationSummaryPropertyInfo = Maybe Text Source | |
| type AttrBaseTypeConstraint NotificationSummaryPropertyInfo = NotificationK Source | |
| type AttrSetTypeConstraint NotificationSummaryPropertyInfo = * ~ Text Source | |
| type AttrAllowedOps NotificationSummaryPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag)))) Source |
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