AttrList USBAddr::getAttrList() const { AttrList attrs; if ( !bus->text().isEmpty() ) attrs.insert("bus", bus->text()); if ( !port->text().isEmpty() ) attrs.insert("port", port->text()); return attrs; }
AttrList CCIDAddr::getAttrList() const { AttrList attrs; if ( !bus->text().isEmpty() ) attrs.insert("bus", bus->text()); if ( !slot->text().isEmpty() ) attrs.insert("slot", slot->text()); return attrs; }
AttrList CCWAddr::getAttrList() const { AttrList attrs; if ( !machine->text().isEmpty() ) attrs.insert("machine", machine->text()); if ( !cssid->text().isEmpty() ) attrs.insert("cssid", cssid->text()); attrs.insert("ssid", ssid->text()); if ( !devno->text().isEmpty() ) attrs.insert("devno", devno->text()); return attrs; }