Authors
- Niels Grewe (
niels.grewe@halbordnung.de
)
-
Date: Generated at 2025-05-09 09:10:33 -0600
Copyright: (C) 2010 Free Software Foundation, Inc.
- Declared in:
- DBusKit/DKPort.h
DKPort is used by the Distributed Objects system to
communicate with D-Bus. Unless you have special
needs, don't create DKPort instances yourself, but use
the interfaces provided by NSConnection instead. The
default +port
message will return a port connected to the session
bus.
+ (void)
enableWorkerThread;
This method should be called by an application that
wants to make use of the multithreaded features of
DBusKit. After this method has been called, it is
no longer safe to call into DBusKit from
+initialize
methods, which might result in deadlock from the
Objective-C runtime.
+ (id)
portForBusType: (
DKDBusBusType)type;
Returns a port to the specified message bus without
any specified remote side.
+ (id)
sessionBusPort;
Returns a port to the session message bus.
+ (id)
systemBusPort;
Returns a port to the system message bus.
- (id)
initWithRemote: (NSString*)remote;
Return a DKPort instance connected to the specified
D-Bus peer on the session message bus.
- (id)
initWithRemote: (NSString*)remote
onBus: (
DKDBusBusType)bus;
Return a DKPort instance connected to the specified
D-Bus peer on the specified message bus.