Esempio n. 1
0
void bird::setChangeAnimation()
{
    changeAnimation = true;
    can_up = true;

    emit adjustTimer();
    disconnect(animation, SIGNAL(finished()), this, SLOT(setChangeAnimation()));
}
Esempio n. 2
0
///lets us know we should block output
void IRCQueue::serverOnline(bool on)
{
    if (m_blocked!=on)
        return;
    m_blocked=!on;
    if (m_blocked && m_timer->isActive())
        reset();
    else if (!m_blocked && !m_timer->isActive() && nextSize())
    {
        adjustTimer();
    }
}
Esempio n. 3
0
//called when the timer fires.
void  IRCQueue::sendNow()
{
    if (doSend())
        adjustTimer();
    //else //its a single-shot timer so if we don't adjust it, it won't run :)
}
Esempio n. 4
0
void IRCQueue::enqueue(const QString& line)
{
    m_pending.append(IRCMessage(line));
    if (!m_timer->isActive())
        adjustTimer();
}