Subversion Repositories OpenInventory

Compare Revisions

Ignore whitespace Rev 250 → Rev 251

/trunk/DBViewer/database.cpp
1651,9 → 1651,9
 
 
TWmiVideoCard vCard;
TWmiMatherBoard mBoard;
TWmiProcessor processor;
 
 
 
vCard = MainWindow::getWmiVideoGard(IP_str, user_name_str, password_str);
 
if (!vCard.name.isEmpty()) {
1692,7 → 1692,71
}
 
 
mBoard = MainWindow::getWmiMatherBoard(IP_str, user_name_str, password_str);
if (!mBoard.manufacturer.isEmpty()) {
QTreeWidgetItem * itm_maherBoard;
QTreeWidgetItem * itm_maherBoard_model;
QTreeWidgetItem * itm_maherBoard_manufacturer;
QString tmp_str;
tmp_str = tr("Ìàòåðèíñêàÿ ïëàòà: ");
tmp_str.append(mBoard.manufacturer);
tmp_str.append( tr(" "));
tmp_str.append(mBoard.model);
itm_maherBoard = new QTreeWidgetItem(itm_tmp);
itm_maherBoard->setText(0, tmp_str);
 
tmp_str = tr("Ïðîèçâîäèòåëü: ");
tmp_str.append(mBoard.manufacturer);
 
itm_maherBoard_manufacturer = new QTreeWidgetItem(itm_maherBoard);
itm_maherBoard_manufacturer->setText(0, tmp_str);
 
itm_maherBoard_model = new QTreeWidgetItem(itm_maherBoard);
 
tmp_str = tr("Ìîäåëü: ");
tmp_str.append(mBoard.model);
 
itm_maherBoard_model->setText(0, tmp_str);
 
 
}
 
processor = MainWindow::getWmiProcessor(IP_str, user_name_str, password_str);
if (!processor.manufacturer.isEmpty()){
 
QTreeWidgetItem * itm_processor;
QTreeWidgetItem * itm_processor_manufacturer;
QTreeWidgetItem * itm_processor_clockSpeed;
QTreeWidgetItem * itm_processor_socket;
 
 
QString tmp_str;
tmp_str = tr("Ïðîöåññîð: ");
tmp_str.append(processor.name);
 
itm_processor = new QTreeWidgetItem(itm_tmp);
itm_processor->setText(0, tmp_str);
 
tmp_str = tr("Ïðîèçâîäèòåëü: ");
tmp_str.append(processor.manufacturer);
itm_processor_manufacturer = new QTreeWidgetItem(itm_processor);
itm_processor_manufacturer->setText(0, tmp_str);
 
tmp_str = tr("×àñòîòà: ");
tmp_str.append(QVariant(processor.clockSpeed).asString());
tmp_str.append(tr(" ÌÃö"));
itm_processor_clockSpeed = new QTreeWidgetItem(itm_processor);
itm_processor_clockSpeed->setText(0, tmp_str);
 
 
tmp_str = tr("Ñîêåò: ");
tmp_str.append(processor.socket);
itm_processor_socket = new QTreeWidgetItem(itm_processor);
itm_processor_socket->setText(0, tmp_str);
 
}
 
 
int i;
i++;
 
1701,4 → 1765,7
 
 
 
 
 
 
}