Subversion Repositories OpenInventory

Rev

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

Rev 251 Rev 254
Line 1651... Line 1651...
1651
1651
1652
1652
1653
TWmiVideoCard vCard;
1653
TWmiVideoCard vCard;
1654
TWmiMatherBoard mBoard;
1654
TWmiMatherBoard mBoard;
1655
TWmiProcessor processor;
1655
TWmiProcessor processor;
-
 
1656
QList<TWmiMemoryModul> memory_moduls;
1656
1657
1657
vCard = MainWindow::getWmiVideoGard(IP_str, user_name_str, password_str);
1658
vCard = MainWindow::getWmiVideoGard(IP_str, user_name_str, password_str);
1658
1659
1659
if (!vCard.name.isEmpty()) {
1660
if (!vCard.name.isEmpty()) {
1660
    QTreeWidgetItem * itm_video;
1661
    QTreeWidgetItem * itm_video;
Line 1755... Line 1756...
1755
        itm_processor_socket->setText(0,  tmp_str);
1756
        itm_processor_socket->setText(0,  tmp_str);
1756
1757
1757
                            }
1758
                            }
1758
1759
1759
1760
-
 
1761
memory_moduls = MainWindow::getWmiRAM(IP_str, user_name_str, password_str);
-
 
1762
-
 
1763
if (!memory_moduls.isEmpty()){
-
 
1764
    for (int i = 0; i < memory_moduls.count(); i++){
-
 
1765
-
 
1766
         QTreeWidgetItem * itm_ram_modul;
-
 
1767
         QTreeWidgetItem * itm_modul_bank;
-
 
1768
         QTreeWidgetItem * itm_modul_cap;  //   îáúåì ïàìÿòè
-
 
1769
-
 
1770
         QString tmp_str;
-
 
1771
         tmp_str = tr("Ìîäóëü ïàìÿòè: ");
-
 
1772
         tmp_str.append(QVariant(memory_moduls.at(i).capacity/1024/1024).asString());
-
 
1773
         tmp_str.append(tr(" ÌÁò"));
-
 
1774
         itm_ram_modul = new QTreeWidgetItem(itm_tmp);
-
 
1775
         itm_ram_modul->setText(0, tmp_str);
-
 
1776
-
 
1777
-
 
1778
    }
-
 
1779
-
 
1780
-
 
1781
-
 
1782
}
-
 
1783
-
 
1784
1760
int i;
1785
int i;
1761
i++;
1786
i++;
1762
1787
1763
}
1788
}
1764
1789
Line 1767... Line 1792...
1767
1792
1768
1793
1769
1794
1770
1795
1771
}
1796
}
-
 
1797
-
 
1798
-
 
1799
-
 
1800
-
 
1801