3 #ifndef __hds_messenger_ls_hpp
4 #define __hds_messenger_ls_hpp
7 #include <QLocalServer>
8 #include <QLocalSocket>
10 #include <hds_batch/defines.hpp>
11 #include <hds_batch/errors.hpp>
12 #include <hds_batch/hds_messenger.hpp>
42 int connection_time_out = 0,
43 QObject *parent = 0x0 );
54 int connection_time_out = 0 );
68 const QString&
socketName()
const {
return m_socket_name;}
75 {m_connection_wait_time_out = dt;}
88 virtual void socket_connection_error(QLocalSocket::LocalSocketError socketError);
89 virtual void socket_connected();
90 virtual void socket_disconnected();
101 QString m_socket_name;
107 int m_connection_wait_time_out;
114 void debug_to_file(
const QString &fname,
const QByteArray &array)
const;
State m_state
Definition: hds_messenger_ls.hpp:104
MessengerLS(QObject *parent=0x0)
int waitConnectionTimeOut() const
Definition: hds_messenger_ls.hpp:71
virtual hds::Messenger::Message getMsg() const
QLocalServer m_server
Definition: hds_messenger_ls.hpp:95
State init(const QString &sock_name, State state=CLIENT, int connection_time_out=0)
Definition: hds_messenger_ls.hpp:30
Definition: hds_messenger_ls.hpp:29
Definition: hds_messenger_ls.hpp:28
Definition: hds_messenger.hpp:16
State
Definition: hds_messenger_ls.hpp:26
const QString & socketName() const
Definition: hds_messenger_ls.hpp:68
virtual void sendMsg(const hds::Messenger::Message &msg) const
Definition: hds_messenger_ls.hpp:19
void setConnectionTimeOut(int dt)
Definition: hds_messenger_ls.hpp:74
State state() const
Definition: hds_messenger_ls.hpp:78
QLocalSocket m_socket
Definition: hds_messenger_ls.hpp:98
Definition: hds_messenger.hpp:38