Changeset 103481 in vbox
- Timestamp:
- Feb 20, 2024 4:37:38 PM (11 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.cpp
r103085 r103481 717 717 } 718 718 719 QString summarizeGenericProperties(const CNetworkAdapter &comAdapter)720 {721 QVector<QString> names;722 QVector<QString> props;723 props = comAdapter.GetProperties(QString(), names);724 QString strResult;725 for (int i = 0; i < names.size(); ++i)726 {727 strResult += names[i] + "=" + props[i];728 if (i < names.size() - 1)729 strResult += ", ";730 }731 return strResult;732 }733 734 719 UITextTable UIDetailsGenerator::generateMachineInformationNetwork(CMachine &comMachine, 735 720 const UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork &fOptions) … … 1559 1544 strInfo += e_strTableRow2.arg(UICommon::tr("Processors", "details report"), QString::number(cCpuCount)); 1560 1545 } 1546 1547 QString UIDetailsGenerator::summarizeGenericProperties(const CNetworkAdapter &comAdapter) 1548 { 1549 QVector<QString> names; 1550 QVector<QString> props; 1551 props = comAdapter.GetProperties(QString(), names); 1552 QString strResult; 1553 for (int i = 0; i < names.size(); ++i) 1554 { 1555 strResult += names[i] + "=" + props[i]; 1556 if (i < names.size() - 1) 1557 strResult += ", "; 1558 } 1559 return strResult; 1560 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDetailsGenerator.h
r98490 r103481 45 45 class CGuest; 46 46 class CMachine; 47 class CNetworkAdapter; 47 48 48 49 /** Details generation namespace. */ … … 119 120 KParavirtProvider enmProvider); 120 121 122 SHARED_LIBRARY_STUFF QString summarizeGenericProperties(const CNetworkAdapter &comAdapter); 123 121 124 /** Holds the table row format 1. */ 122 125 extern const QString e_strTableRow1; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.h
r98103 r103481 392 392 void run(); 393 393 394 /** Summarizes generic properties. */395 static QString summarizeGenericProperties(const CNetworkAdapter &adapter);396 397 394 /** Holds the options. */ 398 395 UIExtraDataMetaDefs::DetailsElementOptionTypeNetwork m_fOptions; -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp
r102597 r103481 51 51 #include "UICursor.h" 52 52 #include "UIDesktopWidgetWatchdog.h" 53 #include "UIDetailsGenerator.h" 53 54 #include "UIIconPool.h" 54 55 #include "UIGuestOSType.h" … … 1992 1993 case KNetworkAttachmentType_Generic: 1993 1994 { 1994 QString strGenericDriverProperties( summarizeGenericProperties(comAdapter));1995 QString strGenericDriverProperties(UIDetailsGenerator::summarizeGenericProperties(comAdapter)); 1995 1996 strInfo = strInfo.arg( strGenericDriverProperties.isNull() 1996 1997 ? strInfo.arg(QApplication::translate("UIDetails", "Generic Driver, '%1'", "details (network)") … … 2106 2107 } 2107 2108 2108 /* static */2109 QString UISnapshotDetailsWidget::summarizeGenericProperties(const CNetworkAdapter &comNetwork)2110 {2111 QVector<QString> names;2112 QVector<QString> props;2113 props = comNetwork.GetProperties(QString(), names);2114 QString strResult;2115 for (int i = 0; i < names.size(); ++i)2116 {2117 strResult += names[i] + "=" + props[i];2118 if (i < names.size() - 1)2119 strResult += ", ";2120 }2121 return strResult;2122 }2123 2124 2109 #include "UISnapshotDetailsWidget.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.h
r98103 r103481 211 211 static QString empReport(const QString &strValue, bool fIgnore); 212 212 213 /** Summarizes generic properties. */214 static QString summarizeGenericProperties(const CNetworkAdapter &adapter);215 216 213 /** Holds the machine object to load data from. */ 217 214 CMachine m_comMachine;
Note:
See TracChangeset
for help on using the changeset viewer.