ITS
App2Fac Class Reference

#include <App2Fac.h>

Inheritance diagram for App2Fac:
[legend]
Collaboration diagram for App2Fac:
[legend]

Public Slots

void sendMessageToDENBasicService ()
 
void clientConnected ()
 
void clientDisconnected ()
 

Signals

void newBTSocket (QBluetoothSocket *bt)
 

Public Member Functions

 App2Fac (QBluetoothServer *server, QBluetoothSocket *bt, ParameterDENM *denm)
 
void denmTriggerResult (bool success, ActionID_t actionID)
 

Private Attributes

QUdpSocket * udpSocket
 
QBluetoothServer * rfcommServer
 
QBluetoothSocket * btSocket
 
quint16 port
 
quint16 indicationPort
 
QHostAddress indicationAddress
 

Detailed Description

Definition at line 14 of file App2Fac.h.

Constructor & Destructor Documentation

◆ App2Fac()

App2Fac::App2Fac ( QBluetoothServer *  server,
QBluetoothSocket *  bt,
ParameterDENM denm 
)

Definition at line 3 of file App2Fac.cpp.

References btSocket, clientConnected(), rfcommServer, and udpSocket.

Here is the call graph for this function:

Member Function Documentation

◆ clientConnected

void App2Fac::clientConnected ( )
slot

Definition at line 61 of file App2Fac.cpp.

References btSocket, clientDisconnected(), newBTSocket(), rfcommServer, and sendMessageToDENBasicService().

Referenced by App2Fac().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clientDisconnected

void App2Fac::clientDisconnected ( )
slot

Definition at line 79 of file App2Fac.cpp.

References btSocket.

Referenced by clientConnected().

Here is the caller graph for this function:

◆ denmTriggerResult()

void App2Fac::denmTriggerResult ( bool  success,
ActionID_t  actionID 
)

Definition at line 95 of file App2Fac.cpp.

References indicationAddress, indicationPort, ActionID::originatingStationID, ActionID::sequenceNumber, and udpSocket.

Referenced by sendMessageToDENBasicService().

Here is the caller graph for this function:

◆ newBTSocket

void App2Fac::newBTSocket ( QBluetoothSocket *  bt)
signal

Referenced by clientConnected().

Here is the caller graph for this function:

◆ sendMessageToDENBasicService

void App2Fac::sendMessageToDENBasicService ( )
slot

Definition at line 18 of file App2Fac.cpp.

References AppDenmResultData::actionID(), denmTriggerResult(), AppDenmResultData::failureNotification(), MSG_LENGTH, ActionID::originatingStationID, port, ActionID::sequenceNumber, and udpSocket.

Referenced by clientConnected().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ btSocket

QBluetoothSocket* App2Fac::btSocket
private

Definition at line 34 of file App2Fac.h.

Referenced by App2Fac(), clientConnected(), and clientDisconnected().

◆ indicationAddress

QHostAddress App2Fac::indicationAddress
private

Definition at line 37 of file App2Fac.h.

Referenced by denmTriggerResult().

◆ indicationPort

quint16 App2Fac::indicationPort
private

Definition at line 36 of file App2Fac.h.

Referenced by denmTriggerResult().

◆ port

quint16 App2Fac::port
private

Definition at line 35 of file App2Fac.h.

Referenced by sendMessageToDENBasicService().

◆ rfcommServer

QBluetoothServer* App2Fac::rfcommServer
private

Definition at line 33 of file App2Fac.h.

Referenced by App2Fac(), and clientConnected().

◆ udpSocket

QUdpSocket* App2Fac::udpSocket
private

Definition at line 32 of file App2Fac.h.

Referenced by App2Fac(), denmTriggerResult(), and sendMessageToDENBasicService().


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