Ejemplo n.º 1
0
void QuteMessenger::createNewTab(const QBtAddress & address)
{
    QChatWidget* tmpChat;
    tmpChat = new QChatWidgetServer(this);
    tmpChat->SetName(address.toString());

    ((QChatWidgetServer*) tmpChat)->SetDiscoverer(devDisc);

    ((QChatWidgetServer*) tmpChat)->SetServer(rfcommServer);
    connect(tmpChat, SIGNAL(tabNameChanged(QString, QChatWidget*)), this,
            SLOT(tabNameChangedReport(QString, QChatWidget*)));

    ui.tabWidget->addTab(tmpChat, "Chat");
    chatTabs.append(tmpChat);
}
Ejemplo n.º 2
0
bool QBtAddress::operator< (const QBtAddress & other )
{
	return (this->toString() < other.toString());
}
Ejemplo n.º 3
0
bool QBtAddress::operator!= (const QBtAddress & other )
{
  int result = _address.compare(other.toString(),Qt::CaseInsensitive);
  
  return ((result == 0) ? false : true);
}