tdebluez
TDEObex::ObexObjectManagerImpl Class Reference

#include <obexobjectmanagerImpl.h>

+ Inheritance diagram for TDEObex::ObexObjectManagerImpl:

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::AgentManager1ProxygetAgentManager ()
 
org::bluez::obex::Client1ProxygetClient ()
 
- 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 ()
 

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::AgentManager1ProxymAgentManager
 
org::bluez::obex::Client1ProxymClient
 
org::bluez::obex::Session1ProxymSession
 
org::bluez::obex::FileTransfer1ProxymFileTransfer
 

Additional Inherited Members

- 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)
 
- 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
 

Detailed Description

Definition at line 44 of file obexobjectmanagerImpl.h.

Constructor & Destructor Documentation

◆ ObexObjectManagerImpl()

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().

◆ ~ObexObjectManagerImpl()

TDEObex::ObexObjectManagerImpl::~ObexObjectManagerImpl ( )
virtual

Definition at line 55 of file obexobjectmanagerImpl.cpp.

References close().

Member Function Documentation

◆ close()

bool TDEObex::ObexObjectManagerImpl::close ( )

to close the connection to D-Bus

This function close the connection to manager over the D-Bus daemon.

Returns
boolean with the result of the operation
Return values
trueif successful closed the connection
falseif any problems

Definition at line 105 of file obexobjectmanagerImpl.cpp.

References DBUS_CONN_NAME, dBusConn, mClient, mFileTransfer, and mSession.

◆ getAgentManager()

org::bluez::obex::AgentManager1Proxy * TDEObex::ObexObjectManagerImpl::getAgentManager ( )

This function initialise the connection to the D-Bus daemon.

Returns
pointer to AgentManager1

Definition at line 168 of file obexobjectmanagerImpl.cpp.

References mAgentManager.

◆ getClient()

org::bluez::obex::Client1Proxy * TDEObex::ObexObjectManagerImpl::getClient ( )

This function initialise the connection to the D-Bus daemon.

Returns
pointer to AgentManager1

Definition at line 178 of file obexobjectmanagerImpl.cpp.

References mClient.

◆ getConnection()

TQT_DBusConnection * TDEObex::ObexObjectManagerImpl::getConnection ( )

pointer to the D-Bus connection

This function returns pointer to connection of the DBUS.

Returns
TQT_DBusConnection* of the connection to D-Bus
Return values
TQT_DBusConnection*

Definition at line 93 of file obexobjectmanagerImpl.cpp.

References dBusConn.

◆ initDBUS()

bool TDEObex::ObexObjectManagerImpl::initDBUS ( )
private

This function initialise the connection to the D-Bus daemon.

Returns
boolean with the result of the operation
Return values
trueif successful initialised D-Bus connection
falseif 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().

◆ isConnectedToDBUS()

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.

Returns
boolean with the state of the connection to D-Bus
Return values
trueif connected
falseif disconnected

Definition at line 82 of file obexobjectmanagerImpl.cpp.

References dBusConn.

◆ reconnect

bool TDEObex::ObexObjectManagerImpl::reconnect ( )
privateslot

This function try a reconnect to D-Bus.

Returns
boolean with the result of the operation
Return values
trueif successful reconnected to D-Bus
falseif unsuccessful

Definition at line 67 of file obexobjectmanagerImpl.cpp.

References close(), and initDBUS().

◆ slotInterfacesAdded()

void TDEObex::ObexObjectManagerImpl::slotInterfacesAdded ( const TQT_DBusObjectPath &  object,
const TQT_DBusDataMap< TQString > &  interfaces 
)
private

◆ slotInterfacesRemoved()

void TDEObex::ObexObjectManagerImpl::slotInterfacesRemoved ( const TQT_DBusObjectPath &  object,
const TQStringList &  interfaces 
)
private

Definition at line 251 of file obexobjectmanagerImpl.cpp.

Member Data Documentation

◆ dBusConn

TQT_DBusConnection TDEObex::ObexObjectManagerImpl::dBusConn
private

TQt connection to D-Bus.

Definition at line 77 of file obexobjectmanagerImpl.h.

◆ mAgentManager

org::bluez::obex::AgentManager1Proxy* TDEObex::ObexObjectManagerImpl::mAgentManager
private

Definition at line 78 of file obexobjectmanagerImpl.h.

◆ mClient

org::bluez::obex::Client1Proxy* TDEObex::ObexObjectManagerImpl::mClient
private

Definition at line 79 of file obexobjectmanagerImpl.h.

◆ mFileTransfer

org::bluez::obex::FileTransfer1Proxy* TDEObex::ObexObjectManagerImpl::mFileTransfer
private

Definition at line 81 of file obexobjectmanagerImpl.h.

◆ mSession

org::bluez::obex::Session1Proxy* TDEObex::ObexObjectManagerImpl::mSession
private

Definition at line 80 of file obexobjectmanagerImpl.h.


The documentation for this class was generated from the following files: