14 #define SOCKETLIST SocketList::socketList()
22 static SocketList *socketList(QObject *parent = NULL);
29 QTcpSocket *
socket(
int line);
36 void addLine(
int line,
const QString& hostname,
int port);
51 QHash<int, QTcpSocket *> m_line_socket;
52 QHash<int, QString> m_line_hostname;
53 QHash<int, int> m_line_port;
55 QThread *m_parentThread;
void addLine(int line, const QString &hostname, int port)
Adds new line to list.
QTcpSocket * socket(int line)
Returns socket associated with line.
void open(int line)
Opens socket for line.