Class: DBus::ASystemBus

Inherits:
Connection show all
Defined in:
lib/dbus/bus.rb

Overview

D-Bus system bus class

The system bus is a system-wide bus mostly used for global or system usages.

Use SystemBus, the non-singleton ASystemBus is for the test suite.

Direct Known Subclasses

SystemBus

Constant Summary

Constants inherited from Connection

Connection::DBUSXMLINTRO, Connection::MSG_BUF_SIZE, Connection::NAME_FLAG_ALLOW_REPLACEMENT, Connection::NAME_FLAG_DO_NOT_QUEUE, Connection::NAME_FLAG_REPLACE_EXISTING, Connection::REQUEST_NAME_REPLY_ALREADY_OWNER, Connection::REQUEST_NAME_REPLY_EXISTS, Connection::REQUEST_NAME_REPLY_IN_QUEUE, Connection::REQUEST_NAME_REPLY_PRIMARY_OWNER

Instance Attribute Summary

Attributes inherited from Connection

#main_message_queue, #main_thread, #queue_used_by_thread, #read_thread, #rescuemethod, #socket, #thread_waiting_for_message, #unique_name

Instance Method Summary collapse

Methods inherited from Connection

#add_match, #connect, #connect_to_tcp, #connect_to_unix, #emit, #glibize, #introspect, #introspect_data, #messages, #on_return, #poll_messages, #pop_message, #process, #proxy, #remove_match, #request_service, #send, #send_sync, #send_sync_or_async, #service, #start_read_thread, #update_buffer, #wait_for_message

Constructor Details

#initializeASystemBus

Get the default system bus.



823
824
825
826
827
# File 'lib/dbus/bus.rb', line 823

def initialize
  super(SystemSocketName, ENV["DBUS_THREADED_ACCESS"] || false)
  connect
  send_hello
end