Ejemplo n.º 1
0
// Constructor
Arc::Arc()
{
    STANDARD_CONSTRUCTOR()
    startAngle = 0.0;
    arcLength = 90.0;
    setIsConnected(false);
}
Ejemplo n.º 2
0
void DomainHandler::clearConnectionInfo() {
    _uuid = QUuid();

    _icePeer = NetworkPeer();

    if (requiresICE()) {
        // if we connected to this domain with ICE, re-set the socket so we reconnect through the ice-server
        _sockAddr.clear();
    }

    setIsConnected(false);
}
Ejemplo n.º 3
0
void DomainHandler::disconnect() {
    // if we're currently connected to a domain, send a disconnect packet on our way out
    if (_isConnected) {
        sendDisconnectPacket();
    }
    
    // clear member variables that hold the connection state to a domain
    _uuid = QUuid();
    _connectionToken = QUuid();
    
    _icePeer.reset();

    if (requiresICE()) {
        // if we connected to this domain with ICE, re-set the socket so we reconnect through the ice-server
        _sockAddr.clear();
    }

    setIsConnected(false);
}
Ejemplo n.º 4
0
bool Arc::setSlotIsConnected(const Basic::Number* const x)
{
    bool ok = false;
    if (x != nullptr) ok = setIsConnected(x->getBoolean());
    return ok;
}