Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
An IBusService is a base class for services.
Synopsis
- newtype Service = Service (ManagedPtr Service)
- class (GObject o, IsDescendantOf Service o) => IsService o
- toService :: (MonadIO m, IsService o) => o -> m Service
- serviceEmitSignal :: (HasCallStack, MonadIO m, IsService a) => a -> Text -> Text -> Text -> GVariant -> m ()
- serviceGetConnection :: (HasCallStack, MonadIO m, IsService a) => a -> m DBusConnection
- serviceGetObjectPath :: (HasCallStack, MonadIO m, IsService a) => a -> m Text
- serviceNew :: (HasCallStack, MonadIO m, IsDBusConnection a) => a -> Text -> m Service
- serviceRegister :: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) => a -> b -> m ()
- serviceUnregister :: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) => a -> b -> m ()
- constructServiceConnection :: (IsService o, MonadIO m, IsDBusConnection a) => a -> m (GValueConstruct o)
- getServiceConnection :: (MonadIO m, IsService o) => o -> m DBusConnection
- constructServiceObjectPath :: (IsService o, MonadIO m) => Text -> m (GValueConstruct o)
- getServiceObjectPath :: (MonadIO m, IsService o) => o -> m Text
Exported types
Memory-managed wrapper type.
Instances
Eq Service Source # | |
GObject Service Source # | |
Defined in GI.IBus.Objects.Service | |
ManagedPtrNewtype Service Source # | |
Defined in GI.IBus.Objects.Service toManagedPtr :: Service -> ManagedPtr Service | |
TypedObject Service Source # | |
Defined in GI.IBus.Objects.Service | |
HasParentTypes Service Source # | |
Defined in GI.IBus.Objects.Service | |
IsGValue (Maybe Service) Source # | Convert |
Defined in GI.IBus.Objects.Service gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Service -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Service) | |
type ParentTypes Service Source # | |
Defined in GI.IBus.Objects.Service |
class (GObject o, IsDescendantOf Service o) => IsService o Source #
Instances
(GObject o, IsDescendantOf Service o) => IsService o Source # | |
Defined in GI.IBus.Objects.Service |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, destroy, emitSignal, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, register, runDispose, stealData, stealQdata, thawNotify, unref, unregister, watchClosure.
Getters
getConnection, getData, getObjectPath, getProperty, getQdata.
Setters
emitSignal
:: (HasCallStack, MonadIO m, IsService a) | |
=> a | |
-> Text | |
-> Text | |
-> Text | |
-> GVariant | |
-> m () | (Can throw |
No description available in the introspection data.
getConnection
:: (HasCallStack, MonadIO m, IsService a) | |
=> a |
|
-> m DBusConnection | Returns: A |
Gets a connections.
getObjectPath
:: (HasCallStack, MonadIO m, IsService a) | |
=> a |
|
-> m Text | Returns: The object path of |
Gets the object path of an IBusService.
new
:: (HasCallStack, MonadIO m, IsDBusConnection a) | |
=> a |
|
-> Text |
|
-> m Service | Returns: A newly allocated |
Creantes a new Service
.
register
:: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Registers service to a connection.
unregister
:: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) | |
=> a |
|
-> b |
|
-> m () |
Unregisters service from a connection.
Properties
connection
The connection of service object.
constructServiceConnection :: (IsService o, MonadIO m, IsDBusConnection a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “connection
” property. This is rarely needed directly, but it is used by new
.
getServiceConnection :: (MonadIO m, IsService o) => o -> m DBusConnection Source #
Get the value of the “connection
” property.
When overloading is enabled, this is equivalent to
get
service #connection
objectPath
The path of service object.
constructServiceObjectPath :: (IsService o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “object-path
” property. This is rarely needed directly, but it is used by new
.
getServiceObjectPath :: (MonadIO m, IsService o) => o -> m Text Source #
Get the value of the “object-path
” property.
When overloading is enabled, this is equivalent to
get
service #objectPath