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 (ForeignPtr Notification)
- class GObject o => NotificationK o
- toNotification :: NotificationK o => o -> IO Notification
- noNotification :: Maybe Notification
- notificationClose :: (MonadIO m, NotificationK a) => a -> m ()
- notificationGetBody :: (MonadIO m, NotificationK a) => a -> m Text
- notificationGetId :: (MonadIO m, NotificationK a) => a -> m Word64
- notificationGetTitle :: (MonadIO m, NotificationK a) => a -> m Text
- data NotificationBodyPropertyInfo
- getNotificationBody :: (MonadIO m, NotificationK o) => o -> m Text
- data NotificationIdPropertyInfo
- getNotificationId :: (MonadIO m, NotificationK o) => o -> m Word64
- data NotificationTitlePropertyInfo
- getNotificationTitle :: (MonadIO m, NotificationK o) => o -> m Text
- 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
class GObject o => NotificationK o Source
(GObject o, IsDescendantOf Notification o) => NotificationK o |
toNotification :: NotificationK o => o -> IO Notification Source
Methods
notificationClose
notificationClose :: (MonadIO m, NotificationK a) => a -> m () Source
notificationGetBody
notificationGetBody :: (MonadIO m, NotificationK a) => a -> m Text Source
notificationGetId
notificationGetId :: (MonadIO m, NotificationK a) => a -> m Word64 Source
notificationGetTitle
notificationGetTitle :: (MonadIO m, NotificationK a) => a -> m Text Source
Properties
Body
data NotificationBodyPropertyInfo Source
AttrInfo NotificationBodyPropertyInfo | |
type AttrLabel NotificationBodyPropertyInfo = "Notification::body" | |
type AttrGetType NotificationBodyPropertyInfo = Text | |
type AttrBaseTypeConstraint NotificationBodyPropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationBodyPropertyInfo = * ~ () | |
type AttrAllowedOps NotificationBodyPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getNotificationBody :: (MonadIO m, NotificationK o) => o -> m Text Source
Id
data NotificationIdPropertyInfo Source
AttrInfo NotificationIdPropertyInfo | |
type AttrLabel NotificationIdPropertyInfo = "Notification::id" | |
type AttrGetType NotificationIdPropertyInfo = Word64 | |
type AttrBaseTypeConstraint NotificationIdPropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationIdPropertyInfo = * ~ () | |
type AttrAllowedOps NotificationIdPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getNotificationId :: (MonadIO m, NotificationK o) => o -> m Word64 Source
Title
data NotificationTitlePropertyInfo Source
AttrInfo NotificationTitlePropertyInfo | |
type AttrLabel NotificationTitlePropertyInfo = "Notification::title" | |
type AttrGetType NotificationTitlePropertyInfo = Text | |
type AttrBaseTypeConstraint NotificationTitlePropertyInfo = NotificationK | |
type AttrSetTypeConstraint NotificationTitlePropertyInfo = * ~ () | |
type AttrAllowedOps NotificationTitlePropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) |
getNotificationTitle :: (MonadIO m, NotificationK o) => o -> m Text 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