# DKProxy documentation

niels.grewe@halbordnung.de
2010 Free Software Foundation, Inc.
Software documentation for the DKDBus class
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.
The isDisconnected flag is set by a bus object that experiences a bus failure and tries to reconnect to the bus.
busWithBusType:
type
Returns a reference to the org.freedesktop.DBus service on the bus specified by type.
sessionBus
Returns a reference to the org.freedesktop.DBus service on the session message bus.
systemBus
Returns a reference to the org.freedesktop.DBus service on the system message bus.
Software documentation for the DKProxy class
DBusKit/DKProxy.h
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.
proxyWithPort:
aPort
path:
aPath
Description forthcoming.
proxyWithService:
aService
path:
aPath
bus:
type
Description forthcoming.
hasSameScopeAs:
aProxy
Checks whether the to proxies are attached to the same D-Bus service.
initWithEndpoint:
anEndpoint
andService:
aService
andPath:
aPath
Description forthcoming.
initWithPort:
aPort
path:
aPath
Description forthcoming.
initWithService:
aService
path:
aPath
bus:
type
Description forthcoming.
setPrimaryDBusInterface:
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: .