|
tdebluez
|
#include <objectmanagerImpl.h>
Inheritance diagram for TDEBluetooth::ObjectManagerImpl:Public Types | |
| typedef TQMap< TQString, org::freedesktop::DBus::PropertiesProxy * > | PropertiesMap |
| typedef TQValueList< TQString > | AdapterList |
| typedef TQValueList< TQString > | DeviceList |
| typedef TQValueList< TQString > | ConnectionList |
Signals | |
| void | adapterAdded (const TQString &) |
| void | adapterRemoved (const TQString &) |
| void | deviceAdded (const TQString &) |
| void | deviceRemoved (const TQString &) |
| void | mediaControlAdded (const TQString &) |
| void | mediaControlRemoved (const TQString &) |
| void | adapterNameChanged (const TQString &, const TQString &) |
| void | adapterAliasChanged (const TQString &, const TQString &) |
| void | adapterPowerOnChanged (const TQString &, bool state) |
| void | adapterClassChanged (const TQString &, TQ_UINT32 classvalue) |
| void | adapterDiscoverableTimeoutChanged (const TQString &, TQ_UINT32 timeout) |
| void | adapterDiscoverableChanged (const TQString &, bool state) |
| void | adapterDiscoveringChanged (const TQString &, bool state) |
| void | deviceAddressChanged (const TQString &, const TQString &) |
| void | deviceClassChanged (const TQString &, TQ_UINT32) |
| void | deviceNameChanged (const TQString &, const TQString &) |
| void | deviceAliasChanged (const TQString &, const TQString &) |
| void | deviceAppearanceChanged (const TQString &, TQ_UINT32) |
| void | deviceIconChanged (const TQString &, const TQString &) |
| void | devicePairedChanged (const TQString &, bool) |
| void | deviceTrustedChanged (const TQString &, bool) |
| void | deviceBlockedChanged (const TQString &, bool) |
| void | deviceLegacyPairingChanged (const TQString &, bool) |
| void | deviceRSSIChanged (const TQString &, TQ_INT16) |
| void | deviceConnectedChanged (const TQString &, bool) |
| void | deviceUUIDsChanged (const TQString &, TQStringList) |
| void | deviceAdapterChanged (const TQString &, const TQT_DBusObjectPath &) |
| void | deviceManufacturerDataChanged (const TQString &, TQT_DBusDataMap< TQ_UINT16 >) |
| void | deviceServiceDataChanged (const TQString &, TQT_DBusDataMap< TQString >) |
| void | deviceTxPowerChanged (const TQString &, TQ_INT16) |
| void | deviceServicesResolvedChanged (const TQString &, bool) |
| void | mediaControlConnectedChanged (const TQString &, bool state) |
| void | mediaControlPlayerChanged (const TQString &, const TQT_DBusObjectPath &) |
Signals inherited from org::freedesktop::DBus::ObjectManagerProxy | |
| void | InterfacesAdded (const TQT_DBusObjectPath &object, const TQT_DBusDataMap< TQString > &interfaces) |
| void | InterfacesRemoved (const TQT_DBusObjectPath &object, const TQStringList &interfaces) |
| void | InterfacesAdded (const TQT_DBusObjectPath &object, const TQT_DBusDataMap< TQString > &interfaces) |
| void | InterfacesRemoved (const TQT_DBusObjectPath &object, const TQStringList &interfaces) |
Public Member Functions | |
| ObjectManagerImpl (const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0) | |
| virtual | ~ObjectManagerImpl () |
| bool | isConnectedToDBUS () |
| TQT_DBusConnection * | getConnection () |
| bool | close () |
| AgentManager1Proxy * | getAgentManager () |
| ProfileManager1Proxy * | getProfileManager () |
| HealthManager1Proxy * | getHealthManager () |
| AdapterList | getAdapters () |
| DeviceList | getDevices () |
| ConnectionList | listConnections (const TQString &) |
| bool | registerAgent () |
| bool | unregisterAgent () |
| bool | requestDefaultAgent () |
| bool | isAgentRegistered () |
| bool | isAgentDefaultAgent () |
Public Member Functions inherited from org::freedesktop::DBus::ObjectManagerProxy | |
| ObjectManagerProxy (const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0) | |
| virtual | ~ObjectManagerProxy () |
| void | setConnection (const TQT_DBusConnection &connection) |
| virtual bool | GetManagedObjects (TQT_DBusDataMap< TQT_DBusObjectPath > &objects, TQT_DBusError &error) |
| ObjectManagerProxy (const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0) | |
| virtual | ~ObjectManagerProxy () |
| void | setConnection (const TQT_DBusConnection &connection) |
| virtual bool | GetManagedObjects (TQT_DBusDataMap< TQT_DBusObjectPath > &objects, TQT_DBusError &error) |
Private Slots | |
| bool | reconnect () |
| void | slotInterfacesAdded (const TQT_DBusObjectPath &object, const TQT_DBusDataMap< TQString > &interfaces) |
| void | slotInterfacesRemoved (const TQT_DBusObjectPath &object, const TQStringList &interfaces) |
| void | slotPropertiesChanged (const TQString &interface, const TQMap< TQString, TQT_DBusVariant > &changed_properties, const TQStringList &invalidated_properties) |
Private Member Functions | |
| bool | initDBUS () |
| void | adapterPropertiesChanged (TQString path, const TQMap< TQString, TQT_DBusVariant > &changed_properties) |
| void | devicePropertiesChanged (TQString path, const TQMap< TQString, TQT_DBusVariant > &changed_properties) |
| void | mediaControlPropertiesChanged (TQString path, const TQMap< TQString, TQT_DBusVariant > &changed_properties) |
Private Attributes | |
| TQT_DBusConnection | dBusConn |
| AgentManager1Proxy * | agentManager |
| ProfileManager1Proxy * | profileManager |
| HealthManager1Proxy * | healthManager |
| PropertiesMap | adapters |
| PropertiesMap | devices |
| bool | agentRegisteredStatus |
| bool | agentIsDefaultAgent |
Additional Inherited Members | |
Protected Slots inherited from org::freedesktop::DBus::ObjectManagerProxy | |
| virtual void | slotHandleDBusSignal (const TQT_DBusMessage &message) |
| virtual void | slotHandleDBusSignal (const TQT_DBusMessage &message) |
Protected Attributes inherited from org::freedesktop::DBus::ObjectManagerProxy | |
| TQT_DBusProxy * | m_baseProxy |
Definition at line 51 of file objectmanagerImpl.h.
| typedef TQValueList<TQString> TDEBluetooth::ObjectManagerImpl::AdapterList |
Definition at line 60 of file objectmanagerImpl.h.
| typedef TQValueList<TQString> TDEBluetooth::ObjectManagerImpl::ConnectionList |
Definition at line 62 of file objectmanagerImpl.h.
| typedef TQValueList<TQString> TDEBluetooth::ObjectManagerImpl::DeviceList |
Definition at line 61 of file objectmanagerImpl.h.
| typedef TQMap<TQString,org::freedesktop::DBus::PropertiesProxy*> TDEBluetooth::ObjectManagerImpl::PropertiesMap |
Definition at line 59 of file objectmanagerImpl.h.
| TDEBluetooth::ObjectManagerImpl::ObjectManagerImpl | ( | const TQString & | service, |
| const TQString & | path, | ||
| TQObject * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
Definition at line 41 of file objectmanagerImpl.cpp.
References agentIsDefaultAgent, agentManager, agentRegisteredStatus, healthManager, initDBUS(), and profileManager.
|
virtual |
Definition at line 53 of file objectmanagerImpl.cpp.
References agentManager, close(), healthManager, and profileManager.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
Definition at line 292 of file objectmanagerImpl.cpp.
References adapterAliasChanged(), adapterClassChanged(), adapterDiscoverableChanged(), adapterDiscoverableTimeoutChanged(), adapterDiscoveringChanged(), adapterNameChanged(), and adapterPowerOnChanged().
|
signal |
| bool TDEBluetooth::ObjectManagerImpl::close | ( | ) |
to close the connection to D-Bus
This function close the connection to manager over the D-Bus daemon.
| true | if successful closed the connection |
| false | if any problems |
Definition at line 107 of file objectmanagerImpl.cpp.
References adapters, DBUS_CONN_NAME, dBusConn, devices, org::freedesktop::DBus::ObjectManagerProxy::InterfacesAdded(), org::freedesktop::DBus::ObjectManagerProxy::InterfacesRemoved(), slotInterfacesAdded(), and slotInterfacesRemoved().
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
Definition at line 320 of file objectmanagerImpl.cpp.
References deviceAdapterChanged(), deviceAddressChanged(), deviceAliasChanged(), deviceAppearanceChanged(), deviceBlockedChanged(), deviceClassChanged(), deviceConnectedChanged(), deviceIconChanged(), deviceLegacyPairingChanged(), deviceManufacturerDataChanged(), deviceNameChanged(), devicePairedChanged(), deviceRSSIChanged(), deviceServiceDataChanged(), deviceServicesResolvedChanged(), deviceTrustedChanged(), deviceTxPowerChanged(), and deviceUUIDsChanged().
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| ObjectManagerImpl::AdapterList TDEBluetooth::ObjectManagerImpl::getAdapters | ( | ) |
This function returns a list of objectpaths
| TQValueList<TQString> |
Definition at line 169 of file objectmanagerImpl.cpp.
References adapters.
| AgentManager1Proxy * TDEBluetooth::ObjectManagerImpl::getAgentManager | ( | ) |
This function initializes the connection to the D-Bus daemon.
Definition at line 141 of file objectmanagerImpl.cpp.
References agentManager.
| TQT_DBusConnection * TDEBluetooth::ObjectManagerImpl::getConnection | ( | ) |
pointer to the D-Bus connection
This function returns pointer to connection of the DBUS.
| TQT_DBusConnection* |
Definition at line 96 of file objectmanagerImpl.cpp.
References dBusConn.
| ObjectManagerImpl::DeviceList TDEBluetooth::ObjectManagerImpl::getDevices | ( | ) |
This function returns a list of objectpaths
| TQValueList<TQString> |
Definition at line 179 of file objectmanagerImpl.cpp.
References devices.
| HealthManager1Proxy * TDEBluetooth::ObjectManagerImpl::getHealthManager | ( | ) |
This function initializes the connection to the D-Bus daemon.
Definition at line 159 of file objectmanagerImpl.cpp.
References healthManager.
| ProfileManager1Proxy * TDEBluetooth::ObjectManagerImpl::getProfileManager | ( | ) |
This function initializes the connection to the D-Bus daemon.
Definition at line 150 of file objectmanagerImpl.cpp.
References profileManager.
|
private |
This function initializes the connection to the D-Bus daemon.
| true | if successful initialized D-Bus connection |
| false | if unsuccessful |
Definition at line 256 of file objectmanagerImpl.cpp.
References DBUS_CONN_NAME, dBusConn, org::freedesktop::DBus::ObjectManagerProxy::GetManagedObjects(), org::freedesktop::DBus::ObjectManagerProxy::InterfacesAdded(), org::freedesktop::DBus::ObjectManagerProxy::InterfacesRemoved(), reconnect(), org::freedesktop::DBus::ObjectManagerProxy::setConnection(), slotInterfacesAdded(), and slotInterfacesRemoved().
| bool TDEBluetooth::ObjectManagerImpl::isAgentDefaultAgent | ( | ) |
Definition at line 245 of file objectmanagerImpl.cpp.
References agentIsDefaultAgent.
| bool TDEBluetooth::ObjectManagerImpl::isAgentRegistered | ( | ) |
Definition at line 240 of file objectmanagerImpl.cpp.
References agentRegisteredStatus.
| bool TDEBluetooth::ObjectManagerImpl::isConnectedToDBUS | ( | ) |
to get information if TDEBluez is connected to D-Bus
This function return information about connection status to the DBUS daemon.
| true | if connected |
| false | if disconnected |
Definition at line 86 of file objectmanagerImpl.cpp.
References dBusConn.
| ObjectManagerImpl::ConnectionList TDEBluetooth::ObjectManagerImpl::listConnections | ( | const TQString & | adapter | ) |
Definition at line 184 of file objectmanagerImpl.cpp.
|
signal |
|
signal |
|
signal |
|
private |
Definition at line 375 of file objectmanagerImpl.cpp.
References mediaControlConnectedChanged(), and mediaControlPlayerChanged().
|
signal |
|
privateslot |
This function try a reconnect to D-Bus.
| true | if successful reconnected to D-Bus |
| false | if unsuccessful |
Definition at line 72 of file objectmanagerImpl.cpp.
References close(), and initDBUS().
| bool TDEBluetooth::ObjectManagerImpl::registerAgent | ( | ) |
to register the agent to D-Bus
Definition at line 190 of file objectmanagerImpl.cpp.
References agentManager, agentRegisteredStatus, DBUS_AUTH_SERVICE_PATH, DEVICE_PIN_CAPABILITY, and org::bluez::AgentManager1Proxy::RegisterAgent().
| bool TDEBluetooth::ObjectManagerImpl::requestDefaultAgent | ( | ) |
to register the agent to D-Bus
Definition at line 226 of file objectmanagerImpl.cpp.
References agentIsDefaultAgent, agentManager, DBUS_AUTH_SERVICE_PATH, and org::bluez::AgentManager1Proxy::RequestDefaultAgent().
|
privateslot |
Definition at line 392 of file objectmanagerImpl.cpp.
References adapterAdded(), adapters, agentManager, dBusConn, deviceAdded(), devices, healthManager, profileManager, org::bluez::AgentManager1Proxy::setConnection(), org::bluez::HealthManager1Proxy::setConnection(), org::bluez::ProfileManager1Proxy::setConnection(), org::freedesktop::DBus::PropertiesProxy::setConnection(), and slotPropertiesChanged().
|
privateslot |
Definition at line 476 of file objectmanagerImpl.cpp.
References adapterRemoved(), adapters, deviceRemoved(), devices, and slotPropertiesChanged().
|
privateslot |
parse properties changed on any interface emit signal for the interface and property
Definition at line 547 of file objectmanagerImpl.cpp.
References adapterPropertiesChanged(), adapters, devicePropertiesChanged(), devices, and mediaControlPropertiesChanged().
| bool TDEBluetooth::ObjectManagerImpl::unregisterAgent | ( | ) |
to unregister the agent to D-Bus
Definition at line 207 of file objectmanagerImpl.cpp.
References agentIsDefaultAgent, agentRegisteredStatus, DBUS_AUTH_SERVICE_PATH, getAgentManager(), and org::bluez::AgentManager1Proxy::UnregisterAgent().
|
private |
Definition at line 106 of file objectmanagerImpl.h.
|
private |
Definition at line 109 of file objectmanagerImpl.h.
|
private |
Definition at line 103 of file objectmanagerImpl.h.
|
private |
Definition at line 108 of file objectmanagerImpl.h.
|
private |
TQt connection to D-Bus.
Definition at line 102 of file objectmanagerImpl.h.
|
private |
Definition at line 107 of file objectmanagerImpl.h.
|
private |
Definition at line 105 of file objectmanagerImpl.h.
|
private |
Definition at line 104 of file objectmanagerImpl.h.