コード例 #1
0
ファイル: AMCPDevice.cpp プロジェクト: Ivaho/Client
void AMCPDevice::setDisconnected()
{
    this->connected = false;
    this->command = AMCPDevice::CONNECTIONSTATE;
    sendNotification();

    QTimer::singleShot(5000, this, SLOT(reconnectDevice()));
}
コード例 #2
0
ファイル: AMCPDevice.cpp プロジェクト: Ivaho/Client
void AMCPDevice::reconnectDevice()
{
    if (this->connected || !this->reconnect)
        return;

    this->connectDevice();

    QTimer::singleShot(5000, this, SLOT(reconnectDevice()));
}
コード例 #3
0
ファイル: AMCPDevice.cpp プロジェクト: Mistobaan/CasparCG
void AMCPDevice::reconnectDevice()
{
    if (this->connected)
        return;

    this->connectDevice(this->address, this->port);

    QTimer::singleShot(5000, this, SLOT(reconnectDevice()));
}