示例#1
0
// renyang - 當掛斷電話時, 或是對方掛斷電話時
void CallTab::stopCall()
{
	callButton->setEnabled(TRUE);
	callButton->setText("&Call");
	callButton->setAccel( QKeySequence( tr( "Alt+C" ) ) );
	stopButton->setEnabled(FALSE);
	stopButton->setText("&Hang up");
	hostEdit->setEnabled(TRUE);
	hostname->setEnabled(TRUE);
	ringButton->setEnabled(FALSE);
	tx->setEnabled(FALSE);
	rx->setEnabled(FALSE);
	QToolTip::add( txPixmap, QString::null);
	QToolTip::add( rxPixmap, QString::null);
	if (ringButton->isOn())
		ringButton->setOn(FALSE);
	ledEnable(FALSE, FALSE);
	trafficLabel->setEnabled(FALSE);
	received = false;
	talking = false;

	// renyang-modify - 清掉hostList
	hostList->clear();
	// renyang-modify - 不能要求對方的影像啦
	video_check->setEnabled(false);
	// renyang-modify - 結束通話, 清除video_check勾選
	video_check->setChecked(false);
	// renyang-modify - 清除video_label的所有資料
	clearVideoLabel();
	// renyang-modify - end
}
示例#2
0
void CallTab::receivedCall(QString ip)
{
#ifdef REN_DEBUG
	qWarning(QString("CallTab::receivedCall(QString %1)").arg(ip));
#endif
	hostEdit->setCurrentText(ip);
	hostEdit->setEnabled(FALSE);
	callButton->setText( tr("&Answer") );
	callButton->setAccel( QKeySequence( tr( "Alt+A" ) ) );
	callButton->setEnabled(TRUE);
	stopButton->setText( tr("&Refuse") );
	stopButton->setEnabled(TRUE);
	tx->setEnabled(TRUE);
	rx->setEnabled(TRUE);
	ledEnable(TRUE, TRUE);
	received = true;
}
static void testMode() {
   // In case disabled by boot-loader
   __enable_irq();

   initPorts();
   initTimers();
   bdm_interfaceOff();
   initUSB();
   ledEnable();
   testEnable();
   bootInputEnable();
   for(;;) {
      WAIT_MS(100);
      ledToggle();
      testToggle();
      if (bootInputActive() == 0) {
         reboot();
      }
   }
}
示例#4
0
void Transmitter::ledOn(bool on)
{
	if (working)
		emit ledEnable(on);
}