Authors
- Niels Grewe (
niels.grewe@halbordnung.de
)
-
Date: Generated at 2025-01-28 08:17:04 +0000
Copyright: (C) 2010 Free Software Foundation, Inc.
- Declared in:
- DBusKit/DKProxy.h
The DKDBus class exposes the D-Bus objects specifically
(i.e. the "org.freedesktop.DBus" service). The
instances returned by this class are shared
objects: Calling
-setPrimaryDBusInterface:
on them has no effect. DKDBus instances also emit
notifications about the state of the bus they
represent. An application can watch for a
DKBusDisconnectedNotification
and
DKBusReconnectedNotification
to be
notified about state changes for the bus.
Instance Variables
Method summary
+ (id)
busWithBusType: (
DKDBusBusType)type;
Returns a reference to the org.freedesktop.DBus
service on the bus specified by type.
+ (id)
sessionBus;
Returns a reference to the org.freedesktop.DBus
service on the session message bus.
+ (id)
systemBus;
Returns a reference to the org.freedesktop.DBus
service on the system message bus.
Instance Variables for DKDBus Class
@protected BOOL isDisconnected;
The isDisconnected flag is set by a bus object that
experiences a bus failure and tries to
reconnect to the bus.
- Declared in:
- DBusKit/DKProxy.h
- Conforms to:
- NSCoding
The DKProxy class is used to send messages to D-Bus
objects. Usually, you don't create them yourself but
by using the DKPort and NSConnection classes.
Method summary
+ (id)
proxyWithPort: (
DKPort*)aPort
path: (
NSString*)aPath;
Description forthcoming.
- (BOOL)
hasSameScopeAs: (
DKProxy*)aProxy;
Checks whether the to proxies are attached to the
same D-Bus service.
- (id)
initWithEndpoint: (DKEndpoint*)anEndpoint
andService: (
NSString*)aService
andPath: (
NSString*)aPath;
Description forthcoming.
- (id)
initWithPort: (
DKPort*)aPort
path: (
NSString*)aPath;
Description forthcoming.
- (void)
setPrimaryDBusInterface: (
NSString*)anInterface;
D-Bus allows identically named methods to appear in
multiple interfaces. By default and in accordance
with the D-Bus specification, DKProxy will call the
first available implementation unless you specify the
interface. If you usually call methods from a
specific interface, you can designate the
interface as the primary one by calling
-setPrimaryDBusInterface:
.