tdebluez
|
#include <obexobjectmanagerImpl.h>
Public Member Functions | |
ObexObjectManagerImpl (const TQString &service, const TQString &path, TQObject *parent=0, const char *name=0) | |
virtual | ~ObexObjectManagerImpl () |
bool | isConnectedToDBUS () |
TQT_DBusConnection * | getConnection () |
bool | close () |
org::bluez::obex::AgentManager1Proxy * | getAgentManager () |
org::bluez::obex::Client1Proxy * | getClient () |
![]() | |
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 () |
Private Member Functions | |
bool | initDBUS () |
void | slotInterfacesAdded (const TQT_DBusObjectPath &object, const TQT_DBusDataMap< TQString > &interfaces) |
void | slotInterfacesRemoved (const TQT_DBusObjectPath &object, const TQStringList &interfaces) |
Private Attributes | |
TQT_DBusConnection | dBusConn |
org::bluez::obex::AgentManager1Proxy * | mAgentManager |
org::bluez::obex::Client1Proxy * | mClient |
org::bluez::obex::Session1Proxy * | mSession |
org::bluez::obex::FileTransfer1Proxy * | mFileTransfer |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
virtual void | slotHandleDBusSignal (const TQT_DBusMessage &message) |
virtual void | slotHandleDBusSignal (const TQT_DBusMessage &message) |
![]() | |
TQT_DBusProxy * | m_baseProxy |
Definition at line 44 of file obexobjectmanagerImpl.h.
TDEObex::ObexObjectManagerImpl::ObexObjectManagerImpl | ( | const TQString & | service, |
const TQString & | path, | ||
TQObject * | parent = 0 , |
||
const char * | name = 0 |
||
) |
Definition at line 47 of file obexobjectmanagerImpl.cpp.
References initDBUS().
|
virtual |
Definition at line 55 of file obexobjectmanagerImpl.cpp.
References close().
bool TDEObex::ObexObjectManagerImpl::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 105 of file obexobjectmanagerImpl.cpp.
References DBUS_CONN_NAME, dBusConn, mClient, mFileTransfer, and mSession.
org::bluez::obex::AgentManager1Proxy * TDEObex::ObexObjectManagerImpl::getAgentManager | ( | ) |
This function initialise the connection to the D-Bus daemon.
Definition at line 168 of file obexobjectmanagerImpl.cpp.
References mAgentManager.
org::bluez::obex::Client1Proxy * TDEObex::ObexObjectManagerImpl::getClient | ( | ) |
This function initialise the connection to the D-Bus daemon.
Definition at line 178 of file obexobjectmanagerImpl.cpp.
References mClient.
TQT_DBusConnection * TDEObex::ObexObjectManagerImpl::getConnection | ( | ) |
pointer to the D-Bus connection
This function returns pointer to connection of the DBUS.
TQT_DBusConnection* |
Definition at line 93 of file obexobjectmanagerImpl.cpp.
References dBusConn.
|
private |
This function initialise the connection to the D-Bus daemon.
true | if successful initialised D-Bus connection |
false | if unsuccessful |
Definition at line 126 of file obexobjectmanagerImpl.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 TDEObex::ObexObjectManagerImpl::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 82 of file obexobjectmanagerImpl.cpp.
References dBusConn.
|
privateslot |
This function try a reconnect to D-Bus.
true | if successful reconnected to D-Bus |
false | if unsuccessful |
Definition at line 67 of file obexobjectmanagerImpl.cpp.
References close(), and initDBUS().
|
private |
Definition at line 184 of file obexobjectmanagerImpl.cpp.
References dBusConn, mAgentManager, mClient, mFileTransfer, mSession, org::bluez::obex::AgentManager1Proxy::setConnection(), org::bluez::obex::Client1Proxy::setConnection(), org::bluez::obex::FileTransfer1Proxy::setConnection(), and org::bluez::obex::Session1Proxy::setConnection().
|
private |
Definition at line 251 of file obexobjectmanagerImpl.cpp.
|
private |
TQt connection to D-Bus.
Definition at line 77 of file obexobjectmanagerImpl.h.
|
private |
Definition at line 78 of file obexobjectmanagerImpl.h.
|
private |
Definition at line 79 of file obexobjectmanagerImpl.h.
|
private |
Definition at line 81 of file obexobjectmanagerImpl.h.
|
private |
Definition at line 80 of file obexobjectmanagerImpl.h.