| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.IBus.Objects.Service
Description
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 Methods toManagedPtr :: Service -> ManagedPtr Service | |
| TypedObject Service Source # | |
Defined in GI.IBus.Objects.Service Methods glibType :: IO GType | |
| IsGValue Service Source # | Convert |
Defined in GI.IBus.Objects.Service | |
| HasParentTypes Service Source # | |
Defined in GI.IBus.Objects.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
Overloaded methods
emitSignal
Arguments
| :: (HasCallStack, MonadIO m, IsService a) | |
| => a | |
| -> Text | |
| -> Text | |
| -> Text | |
| -> GVariant | |
| -> m () | (Can throw |
No description available in the introspection data.
getConnection
Arguments
| :: (HasCallStack, MonadIO m, IsService a) | |
| => a |
|
| -> m DBusConnection | Returns: A |
Gets a connections.
getObjectPath
Arguments
| :: (HasCallStack, MonadIO m, IsService a) | |
| => a |
|
| -> m Text | Returns: The object path of |
Gets the object path of an IBusService.
new
Arguments
| :: (HasCallStack, MonadIO m, IsDBusConnection a) | |
| => a |
|
| -> Text |
|
| -> m Service | Returns: A newly allocated |
Creantes a new Service.
register
Arguments
| :: (HasCallStack, MonadIO m, IsService a, IsDBusConnection b) | |
| => a |
|
| -> b |
|
| -> m () | (Can throw |
Registers service to a connection.
unregister
Arguments
| :: (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