Patronum
Patronum::LocalSocket Class Reference

The LocalSocket class this socket work only with locale data. More...

#include <localsocket.h>

Inheritance diagram for Patronum::LocalSocket:
Inheritance graph
Collaboration diagram for Patronum::LocalSocket:
Collaboration graph

Signals

void sigReceve (QByteArray data)
 
void sigStateChanged (State state)
 

Public Member Functions

 LocalSocket (const QString &target)
 LocalSocket. More...
 
bool send (const QByteArray &data)
 send - send data to service More...
 
bool isValid () const
 isValid - check validation of socket More...
 
bool reconnect ()
 reconnect More...
 
- Public Member Functions inherited from Patronum::ISocketWraper
 ISocketWraper ()
 
virtual void sigReceve (QByteArray data)=0
 sigReceve - this method is a prototype of received data signal More...
 
virtual void sigStateChanged (State state)=0
 sigStateChanged - this method is a prototype of chnage state signal More...
 
State state () const
 

Additional Inherited Members

- Protected Attributes inherited from Patronum::ISocketWraper
State m_state = State::Disconeccted
 

Detailed Description

The LocalSocket class this socket work only with locale data.

Definition at line 15 of file localsocket.h.

Constructor & Destructor Documentation

◆ LocalSocket()

Patronum::LocalSocket::LocalSocket ( const QString &  target)

LocalSocket.

Parameters
target- target it is localSocket name or ip:port

Definition at line 6 of file localsocket.cpp.

Member Function Documentation

◆ isValid()

bool Patronum::LocalSocket::isValid ( ) const
virtual

isValid - check validation of socket

Implements Patronum::ISocketWraper.

Definition at line 26 of file localsocket.cpp.

Here is the caller graph for this function:

◆ reconnect()

bool Patronum::LocalSocket::reconnect ( )
virtual

reconnect

Returns
true if socket connected to host;

Implements Patronum::ISocketWraper.

Definition at line 30 of file localsocket.cpp.

Here is the call graph for this function:

◆ send()

bool Patronum::LocalSocket::send ( const QByteArray &  data)
virtual

send - send data to service

Parameters
data
Returns
true if operation finished seccussful

Implements Patronum::ISocketWraper.

Definition at line 18 of file localsocket.cpp.

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

◆ sigReceve

void Patronum::LocalSocket::sigReceve ( QByteArray  data)
signal
Here is the caller graph for this function:

◆ sigStateChanged

void Patronum::LocalSocket::sigStateChanged ( State  state)
signal
Here is the caller graph for this function:

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