| 30 | } |
| 31 | |
| 32 | void WizMobileFileReceiver::initSocket() |
| 33 | { |
| 34 | m_udpSocket = new QUdpSocket(); |
| 35 | m_udpSocket->bind(QHostAddress::Any, 18695); |
| 36 | |
| 37 | connect(m_xmlProcesser, SIGNAL(fileReceived(QString)), SIGNAL(fileReceived(QString))); |
| 38 | |
| 39 | connect(m_udpSocket, SIGNAL(readyRead()),this ,SLOT(readUdpPendingData()), Qt::DirectConnection); |
| 40 | connect(this, SIGNAL(connectToHost(QString, quint16)), m_tcpContainer, |
| 41 | SLOT(connectToHost(QString, quint16))); |
| 42 | |
| 43 | qDebug() << "Mobile file receiver ready."; |
| 44 | } |
| 45 | |
| 46 | void WizMobileFileReceiver::waitForDone() |
| 47 | { |