void AMCPDevice::setDisconnected() { this->connected = false; this->command = AMCPDevice::CONNECTIONSTATE; sendNotification(); QTimer::singleShot(5000, this, SLOT(reconnectDevice())); }
void AMCPDevice::reconnectDevice() { if (this->connected || !this->reconnect) return; this->connectDevice(); QTimer::singleShot(5000, this, SLOT(reconnectDevice())); }
void AMCPDevice::reconnectDevice() { if (this->connected) return; this->connectDevice(this->address, this->port); QTimer::singleShot(5000, this, SLOT(reconnectDevice())); }