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 |
The DBusObject
type is the base type for D-Bus objects on both
the service side (see DBusObjectSkeleton
) and the client side
(see DBusObjectProxy
). It is essentially just a container of
interfaces.
- newtype DBusObject = DBusObject (ManagedPtr DBusObject)
- noDBusObject :: Maybe DBusObject
- class GObject o => IsDBusObject o
- toDBusObject :: IsDBusObject o => o -> IO DBusObject
- data DBusObjectGetInterfaceMethodInfo
- dBusObjectGetInterface :: (HasCallStack, MonadIO m, IsDBusObject a) => a -> Text -> m DBusInterface
- data DBusObjectGetInterfacesMethodInfo
- dBusObjectGetInterfaces :: (HasCallStack, MonadIO m, IsDBusObject a) => a -> m [DBusInterface]
- data DBusObjectGetObjectPathMethodInfo
- dBusObjectGetObjectPath :: (HasCallStack, MonadIO m, IsDBusObject a) => a -> m Text
- type C_DBusObjectInterfaceAddedCallback = Ptr () -> Ptr DBusInterface -> Ptr () -> IO ()
- type DBusObjectInterfaceAddedCallback = DBusInterface -> IO ()
- data DBusObjectInterfaceAddedSignalInfo
- afterDBusObjectInterfaceAdded :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceAddedCallback -> m SignalHandlerId
- genClosure_DBusObjectInterfaceAdded :: DBusObjectInterfaceAddedCallback -> IO Closure
- mk_DBusObjectInterfaceAddedCallback :: C_DBusObjectInterfaceAddedCallback -> IO (FunPtr C_DBusObjectInterfaceAddedCallback)
- noDBusObjectInterfaceAddedCallback :: Maybe DBusObjectInterfaceAddedCallback
- onDBusObjectInterfaceAdded :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceAddedCallback -> m SignalHandlerId
- wrap_DBusObjectInterfaceAddedCallback :: DBusObjectInterfaceAddedCallback -> Ptr () -> Ptr DBusInterface -> Ptr () -> IO ()
- type C_DBusObjectInterfaceRemovedCallback = Ptr () -> Ptr DBusInterface -> Ptr () -> IO ()
- type DBusObjectInterfaceRemovedCallback = DBusInterface -> IO ()
- data DBusObjectInterfaceRemovedSignalInfo
- afterDBusObjectInterfaceRemoved :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceRemovedCallback -> m SignalHandlerId
- genClosure_DBusObjectInterfaceRemoved :: DBusObjectInterfaceRemovedCallback -> IO Closure
- mk_DBusObjectInterfaceRemovedCallback :: C_DBusObjectInterfaceRemovedCallback -> IO (FunPtr C_DBusObjectInterfaceRemovedCallback)
- noDBusObjectInterfaceRemovedCallback :: Maybe DBusObjectInterfaceRemovedCallback
- onDBusObjectInterfaceRemoved :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceRemovedCallback -> m SignalHandlerId
- wrap_DBusObjectInterfaceRemovedCallback :: DBusObjectInterfaceRemovedCallback -> Ptr () -> Ptr DBusInterface -> Ptr () -> IO ()
Exported types
newtype DBusObject Source #
GObject DBusObject Source # | |
IsObject DBusObject Source # | |
IsDBusObject DBusObject Source # | |
((~) * info (ResolveDBusObjectMethod t DBusObject), MethodInfo * info DBusObject p) => IsLabel t (DBusObject -> p) Source # | |
((~) * info (ResolveDBusObjectMethod t DBusObject), MethodInfo * info DBusObject p) => IsLabelProxy t (DBusObject -> p) Source # | |
HasAttributeList * DBusObject Source # | |
type AttributeList DBusObject Source # | |
type SignalList DBusObject Source # | |
class GObject o => IsDBusObject o Source #
toDBusObject :: IsDBusObject o => o -> IO DBusObject Source #
Methods
getInterface
data DBusObjectGetInterfaceMethodInfo Source #
((~) * signature (Text -> m DBusInterface), MonadIO m, IsDBusObject a) => MethodInfo * DBusObjectGetInterfaceMethodInfo a signature Source # | |
dBusObjectGetInterface Source #
:: (HasCallStack, MonadIO m, IsDBusObject a) | |
=> a |
|
-> Text |
|
-> m DBusInterface | Returns: |
Gets the D-Bus interface with name interfaceName
associated with
object
, if any.
Since: 2.30
getInterfaces
data DBusObjectGetInterfacesMethodInfo Source #
((~) * signature (m [DBusInterface]), MonadIO m, IsDBusObject a) => MethodInfo * DBusObjectGetInterfacesMethodInfo a signature Source # | |
dBusObjectGetInterfaces Source #
:: (HasCallStack, MonadIO m, IsDBusObject a) | |
=> a |
|
-> m [DBusInterface] | Returns: A list of |
Gets the D-Bus interfaces associated with object
.
Since: 2.30
getObjectPath
data DBusObjectGetObjectPathMethodInfo Source #
((~) * signature (m Text), MonadIO m, IsDBusObject a) => MethodInfo * DBusObjectGetObjectPathMethodInfo a signature Source # | |
dBusObjectGetObjectPath Source #
:: (HasCallStack, MonadIO m, IsDBusObject a) | |
=> a |
|
-> m Text | Returns: A string owned by |
Gets the object path for object
.
Since: 2.30
Signals
interfaceAdded
type C_DBusObjectInterfaceAddedCallback = Ptr () -> Ptr DBusInterface -> Ptr () -> IO () Source #
type DBusObjectInterfaceAddedCallback = DBusInterface -> IO () Source #
afterDBusObjectInterfaceAdded :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceAddedCallback -> m SignalHandlerId Source #
mk_DBusObjectInterfaceAddedCallback :: C_DBusObjectInterfaceAddedCallback -> IO (FunPtr C_DBusObjectInterfaceAddedCallback) Source #
onDBusObjectInterfaceAdded :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceAddedCallback -> m SignalHandlerId Source #
wrap_DBusObjectInterfaceAddedCallback :: DBusObjectInterfaceAddedCallback -> Ptr () -> Ptr DBusInterface -> Ptr () -> IO () Source #
interfaceRemoved
type C_DBusObjectInterfaceRemovedCallback = Ptr () -> Ptr DBusInterface -> Ptr () -> IO () Source #
type DBusObjectInterfaceRemovedCallback = DBusInterface -> IO () Source #
afterDBusObjectInterfaceRemoved :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceRemovedCallback -> m SignalHandlerId Source #
mk_DBusObjectInterfaceRemovedCallback :: C_DBusObjectInterfaceRemovedCallback -> IO (FunPtr C_DBusObjectInterfaceRemovedCallback) Source #
onDBusObjectInterfaceRemoved :: (IsDBusObject a, MonadIO m) => a -> DBusObjectInterfaceRemovedCallback -> m SignalHandlerId Source #
wrap_DBusObjectInterfaceRemovedCallback :: DBusObjectInterfaceRemovedCallback -> Ptr () -> Ptr DBusInterface -> Ptr () -> IO () Source #