Subversion Repositories OpenInventory

Rev

Rev 250 | Rev 254 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 250 Rev 251
Line 1649... Line 1649...
1649
1649
1650
1650
1651
1651
1652
1652
1653
TWmiVideoCard vCard;
1653
TWmiVideoCard vCard;
1654
-
 
1655
-
 
-
 
1654
TWmiMatherBoard mBoard;
-
 
1655
TWmiProcessor processor;
1656
1656
1657
vCard = MainWindow::getWmiVideoGard(IP_str, user_name_str, password_str);
1657
vCard = MainWindow::getWmiVideoGard(IP_str, user_name_str, password_str);
1658
1658
1659
if (!vCard.name.isEmpty()) {
1659
if (!vCard.name.isEmpty()) {
1660
    QTreeWidgetItem * itm_video;
1660
    QTreeWidgetItem * itm_video;
Line 1690... Line 1690...
1690
1690
1691
1691
1692
                            }
1692
                            }
1693
1693
1694
1694
-
 
1695
mBoard = MainWindow::getWmiMatherBoard(IP_str, user_name_str, password_str);
-
 
1696
if (!mBoard.manufacturer.isEmpty()) {
-
 
1697
    QTreeWidgetItem * itm_maherBoard;
-
 
1698
    QTreeWidgetItem * itm_maherBoard_model;
-
 
1699
    QTreeWidgetItem * itm_maherBoard_manufacturer;
-
 
1700
    QString tmp_str;
-
 
1701
    tmp_str = tr("Ìàòåðèíñêàÿ ïëàòà: ");
-
 
1702
    tmp_str.append(mBoard.manufacturer);
-
 
1703
    tmp_str.append( tr(" "));
-
 
1704
    tmp_str.append(mBoard.model);
-
 
1705
    itm_maherBoard = new QTreeWidgetItem(itm_tmp);
-
 
1706
    itm_maherBoard->setText(0, tmp_str);
-
 
1707
-
 
1708
    tmp_str = tr("Ïðîèçâîäèòåëü: ");
-
 
1709
    tmp_str.append(mBoard.manufacturer);
-
 
1710
-
 
1711
    itm_maherBoard_manufacturer = new QTreeWidgetItem(itm_maherBoard);
-
 
1712
    itm_maherBoard_manufacturer->setText(0, tmp_str);
-
 
1713
-
 
1714
    itm_maherBoard_model = new QTreeWidgetItem(itm_maherBoard);
-
 
1715
-
 
1716
    tmp_str = tr("Ìîäåëü: ");
-
 
1717
    tmp_str.append(mBoard.model);
-
 
1718
-
 
1719
    itm_maherBoard_model->setText(0, tmp_str);
-
 
1720
-
 
1721
-
 
1722
                            }
-
 
1723
-
 
1724
processor = MainWindow::getWmiProcessor(IP_str, user_name_str, password_str);
-
 
1725
if (!processor.manufacturer.isEmpty()){
-
 
1726
-
 
1727
        QTreeWidgetItem * itm_processor;
-
 
1728
        QTreeWidgetItem * itm_processor_manufacturer;
-
 
1729
        QTreeWidgetItem * itm_processor_clockSpeed;
-
 
1730
        QTreeWidgetItem * itm_processor_socket;
-
 
1731
-
 
1732
-
 
1733
        QString tmp_str;
-
 
1734
        tmp_str = tr("Ïðîöåññîð: ");
-
 
1735
        tmp_str.append(processor.name);
-
 
1736
-
 
1737
        itm_processor = new QTreeWidgetItem(itm_tmp);
-
 
1738
        itm_processor->setText(0, tmp_str);
-
 
1739
-
 
1740
        tmp_str = tr("Ïðîèçâîäèòåëü: ");
-
 
1741
        tmp_str.append(processor.manufacturer);
-
 
1742
        itm_processor_manufacturer = new QTreeWidgetItem(itm_processor);
-
 
1743
        itm_processor_manufacturer->setText(0,  tmp_str);
-
 
1744
-
 
1745
        tmp_str = tr("×àñòîòà: ");
-
 
1746
        tmp_str.append(QVariant(processor.clockSpeed).asString());
-
 
1747
        tmp_str.append(tr(" ÌÃö"));
-
 
1748
        itm_processor_clockSpeed = new QTreeWidgetItem(itm_processor);
-
 
1749
        itm_processor_clockSpeed->setText(0,  tmp_str);
-
 
1750
-
 
1751
-
 
1752
        tmp_str = tr("Ñîêåò: ");
-
 
1753
        tmp_str.append(processor.socket);
-
 
1754
        itm_processor_socket = new QTreeWidgetItem(itm_processor);
-
 
1755
        itm_processor_socket->setText(0,  tmp_str);
-
 
1756
-
 
1757
                            }
-
 
1758
1695
1759
1696
int i;
1760
int i;
1697
i++;
1761
i++;
1698
1762
1699
}
1763
}
1700
1764
1701
1765
1702
1766
1703
1767
-
 
1768
-
 
1769
-
 
1770
1704
}
1771
}