Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 255 → Rev 256

/trunk/DBViewer/database.cpp
1655,6 → 1655,8
TWmiProcessor processor;
QList<TWmiMemoryModul> memory_moduls;
QList<TWmiHDD> hdd_list;
QList<TWmiCDROM> cdrom_list;
QList<TWmiNetCard> netcadr_list;
 
vCard = MainWindow::getWmiVideoGard(IP_str, user_name_str, password_str);
 
1865,19 → 1867,112
 
}
 
 
cdrom_list = MainWindow::getWmiCDROM(IP_str, user_name_str, password_str);
 
 
if (!cdrom_list.isEmpty()){
QTreeWidgetItem * itm_cdrom_list;
 
itm_cdrom_list = new QTreeWidgetItem(itm_tmp);
itm_cdrom_list->setText(0, tr("CD/DVD Ïðèâîäû:"));
 
 
for (int i = 0; i < cdrom_list.count(); i++){
 
QTreeWidgetItem * itm_cdrom;
QTreeWidgetItem * itm_cdrom_man;
QTreeWidgetItem * itm_cdrom_cap;
QString tmp_str;
tmp_str = tr("Ïðèâîä: ");
tmp_str.append(cdrom_list.at(i).name);
 
itm_cdrom = new QTreeWidgetItem(itm_cdrom_list);
itm_cdrom->setText(0, tmp_str);
 
tmp_str = tr("Ìîäåëü: ");
tmp_str.append(cdrom_list.at(i).name);
 
 
itm_cdrom_cap = new QTreeWidgetItem( itm_cdrom);
itm_cdrom_cap->setText(0, tmp_str);
 
 
tmp_str = tr("Ïðîèçâîäèòåëü: ");
tmp_str.append(cdrom_list.at(i).manufacturer);
itm_cdrom_man = new QTreeWidgetItem( itm_cdrom);
itm_cdrom_man->setText(0, tmp_str);
 
ui->treeWidget_3->expandItem( itm_cdrom_list);
 
}
 
 
 
}
 
 
netcadr_list = MainWindow::getWmiNetCard(IP_str, user_name_str, password_str);
 
 
if (!netcadr_list.isEmpty()){
QTreeWidgetItem * itm_netCard_list;
 
itm_netCard_list = new QTreeWidgetItem(itm_tmp);
itm_netCard_list->setText(0, tr("Ñåòåâûå êàðòû:"));
 
 
for (int i = 0; i < cdrom_list.count(); i++){
 
QTreeWidgetItem * itm_net_card;
QTreeWidgetItem * itm_net_card_mac;
QTreeWidgetItem * itm_net_card_cap;
QString tmp_str;
tmp_str = tr("Ñåòåâàÿ êàðòà: ");
tmp_str.append(netcadr_list.at(i).caption);
 
itm_net_card = new QTreeWidgetItem(itm_netCard_list);
itm_net_card->setText(0, tmp_str);
 
 
tmp_str = tr("Ìîäåëü: ");
tmp_str.append(netcadr_list.at(i).caption);
 
 
itm_net_card_cap = new QTreeWidgetItem(itm_net_card);
itm_net_card_cap->setText(0, tmp_str);
 
 
tmp_str = tr("MAC àäðåñ: ");
tmp_str.append(netcadr_list.at(i).MACAddress);
itm_net_card_mac = new QTreeWidgetItem(itm_net_card);
itm_net_card_mac->setText(0, tmp_str);
 
ui->treeWidget_3->expandItem( itm_netCard_list);
 
}
 
 
 
 
 
 
 
 
 
ui->treeWidget_3->expandItem(itm_tmp);
// itm_tmp->setChildIndicatorPolicy(QTreeWidget::
int i;
i++;
 
}
}
 
 
 
} //while
 
 
 
 
}