stec-platform
ADI::AutoQTcpDistribution Class Reference

The AutoQTcpDistribution class. More...

#include <autoqtcpdistribution.h>

Inheritance diagram for ADI::AutoQTcpDistribution:
Collaboration diagram for ADI::AutoQTcpDistribution:

Public Types

enum  SUBORIGIN { Originals , OnLooker }
 

Public Slots

void ClientConnected (QString)
 ClientConnected.
 
void ClientDisconnected (QString)
 ClientDisconnected.
 
void DaemonConnected (QString)
 DaemonConnected.
 
void DaemonDisconnected (QString)
 DaemonDisconnected.
 
void DataReadyDaemon (QString key, QVariantList message)
 DataReadyDaemon. More...
 
void DataReadyClient (QString key, QVariantList message)
 DataReadyClient. More...
 

Signals

void NewGlobalName (QString)
 NewGlobalName.
 
void LostGlobalName (QString)
 LostGlobalName.
 
void NewLocalName (QString)
 NewLocalName.
 
void LostLocalName (QString)
 LostLocalName.
 
void SignalNewRemotePublication (int, QString)
 SignalNewRemotePublication.
 
void SignalLostRemotePublication (int, QString)
 SignalLostRemotePublication.
 

Public Member Functions

 AutoQTcpDistribution (QString interface, QString netmask="255.255.255.205", int servicePort=4892, SUBORIGIN author=Originals, QObject *parent=nullptr)
 AutoQTcpDistribution. More...
 
virtual ~AutoQTcpDistribution ()
 destructor
 
virtual SubscriptionGetSubscription (QString name)
 GetSubscription. More...
 
bool GetAllowServer (void)
 GetAllowServer. More...
 
bool IsThisGlobal (QString name)
 IsThisGlobal. More...
 
QStringList GetAllGlobalNames (void)
 GetAllGlobalNames. More...
 
QStringList GetAllLocalNames (void)
 GetAllLocalNames. More...
 
bool HaveLocal (QString name)
 HaveLocal. More...
 
void WriteAsDaemon (QString Key, QVariantList &vl)
 WriteAsDaemon. More...
 
void WriteAsClient (QString Key, QVariantList &vl)
 WriteAsClient. More...
 
void RemoteNameFound (int, QString name)
 RemoteNameFound. More...
 
void RemoteNameLost (int, QString name)
 RemoteNameLost. More...
 
QVariant getOurUniqueId (void)
 getOurUniqueId More...
 

Detailed Description

The AutoQTcpDistribution class.

This provides layer 2 of the communication model =Layer 3 and 4 are contained withint the AutoTcpSubDaemon and AutoTcpSubClinet as as QVariant streams take care of the placement between systems. Essentially Layer3 and 4 are objects..

Member Enumeration Documentation

◆ SUBORIGIN

enum type OnLooker is for SVoryager and others where there is no intention to author subscription, only to monitor them.

Constructor & Destructor Documentation

◆ AutoQTcpDistribution()

ADI::AutoQTcpDistribution::AutoQTcpDistribution ( QString  interface,
QString  netmask = "255.255.255.205",
int  servicePort = 4892,
SUBORIGIN  author = Originals,
QObject parent = nullptr 
)
explicit

AutoQTcpDistribution.

Parameters
interface
netmask
servicePort
author
parent

server hits client here

Member Function Documentation

◆ DataReadyClient

void ADI::AutoQTcpDistribution::DataReadyClient ( QString  key,
QVariantList  message 
)
slot

DataReadyClient.

Parameters
key
message

◆ DataReadyDaemon

void ADI::AutoQTcpDistribution::DataReadyDaemon ( QString  key,
QVariantList  message 
)
slot

DataReadyDaemon.

Parameters
key
message

◆ GetAllGlobalNames()

QStringList ADI::AutoQTcpDistribution::GetAllGlobalNames ( void  )

GetAllGlobalNames.

Returns

◆ GetAllLocalNames()

QStringList ADI::AutoQTcpDistribution::GetAllLocalNames ( void  )

GetAllLocalNames.

Returns

◆ GetAllowServer()

bool ADI::AutoQTcpDistribution::GetAllowServer ( void  )
inline

GetAllowServer.

Returns

◆ getOurUniqueId()

QVariant ADI::AutoQTcpDistribution::getOurUniqueId ( void  )
inline

getOurUniqueId

Returns

◆ GetSubscription()

Subscription * ADI::AutoQTcpDistribution::GetSubscription ( QString  name)
virtual

GetSubscription.

Parameters
name
Returns

◆ HaveLocal()

bool ADI::AutoQTcpDistribution::HaveLocal ( QString  name)
inline

HaveLocal.

Parameters
name
Returns

◆ IsThisGlobal()

bool ADI::AutoQTcpDistribution::IsThisGlobal ( QString  name)
inline

IsThisGlobal.

Parameters
name
Returns

◆ RemoteNameFound()

void ADI::AutoQTcpDistribution::RemoteNameFound ( int  id,
QString  name 
)

RemoteNameFound.

Parameters
name

◆ RemoteNameLost()

void ADI::AutoQTcpDistribution::RemoteNameLost ( int  id,
QString  name 
)

RemoteNameLost.

Parameters
name

◆ WriteAsClient()

void ADI::AutoQTcpDistribution::WriteAsClient ( QString  Key,
QVariantList &  vl 
)

WriteAsClient.

Parameters
Key
vl

◆ WriteAsDaemon()

void ADI::AutoQTcpDistribution::WriteAsDaemon ( QString  Key,
QVariantList &  vl 
)

WriteAsDaemon.

Parameters
Key
vl

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