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); }
bool QBtAddress::operator< (const QBtAddress & other ) { return (this->toString() < other.toString()); }
bool QBtAddress::operator!= (const QBtAddress & other ) { int result = _address.compare(other.toString(),Qt::CaseInsensitive); return ((result == 0) ? false : true); }