void bird::setChangeAnimation() { changeAnimation = true; can_up = true; emit adjustTimer(); disconnect(animation, SIGNAL(finished()), this, SLOT(setChangeAnimation())); }
///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(); } }
//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 :) }
void IRCQueue::enqueue(const QString& line) { m_pending.append(IRCMessage(line)); if (!m_timer->isActive()) adjustTimer(); }