예제 #1
0
void QApplicationStatus::start()
{
#ifdef QT_DEBUG
    DEBUG_TAG(1, "status", "start")
#endif
    updateState(Connecting);

    if (connectSockets())
    {
        subscribe();
    }
}
예제 #2
0
void QApplicationLauncher::start()
{
#ifdef QT_DEBUG
   DEBUG_TAG(1, m_commandIdentity, "start")
#endif
    m_commandSocketState = Service::Trying;
    updateState(Service::Connecting);

    if (connectSockets())
    {
        subscribe("launcher");
        startCommandHeartbeat();
        sendCommandMessage(pb::MT_PING);
    }
}
void QApplicationCommand::start()
{
#ifdef QT_DEBUG
   DEBUG_TAG(1, "command", "start")
#endif
    m_commandSocketState = Trying;
    updateState(Connecting);


    if (connectSockets())
    {
        startCommandHeartbeat();
        sendCommandMessage(pb::MT_PING);
    }
}