Changeset 27823 in vbox
- Timestamp:
- Mar 30, 2010 1:11:16 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r27481 r27823 625 625 626 626 uint32_t ulMemoryBalloonSize; 627 uint32_t ulStatisticsUpdateInterval;628 627 629 628 GuestPropertiesList llGuestProperties; -
trunk/src/VBox/Main/MachineImpl.cpp
r27822 r27823 159 159 mCPUHotPlugEnabled = false; 160 160 mMemoryBalloonSize = 0; 161 mStatisticsUpdateInterval = 0;162 161 mVRAMSize = 8; 163 162 mAccelerate3DEnabled = false; … … 1275 1274 return S_OK; 1276 1275 } 1277 1278 /** @todo this method should not be public */1279 STDMETHODIMP Machine::COMGETTER(StatisticsUpdateInterval)(ULONG *statisticsUpdateInterval)1280 {1281 if (!statisticsUpdateInterval)1282 return E_POINTER;1283 1284 AutoCaller autoCaller(this);1285 if (FAILED(autoCaller.rc())) return autoCaller.rc();1286 1287 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);1288 1289 *statisticsUpdateInterval = mHWData->mStatisticsUpdateInterval;1290 1291 return S_OK;1292 }1293 1294 /** @todo this method should not be public */1295 STDMETHODIMP Machine::COMSETTER(StatisticsUpdateInterval)(ULONG statisticsUpdateInterval)1296 {1297 AutoCaller autoCaller(this);1298 if (FAILED(autoCaller.rc())) return autoCaller.rc();1299 1300 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);1301 1302 HRESULT rc = checkStateDependency(MutableStateDep);1303 if (FAILED(rc)) return rc;1304 1305 setModified(IsModified_MachineData);1306 mHWData.backup();1307 mHWData->mStatisticsUpdateInterval = statisticsUpdateInterval;1308 1309 return S_OK;1310 }1311 1312 1276 1313 1277 STDMETHODIMP Machine::COMGETTER(Accelerate3DEnabled)(BOOL *enabled) … … 6687 6651 // guest settings 6688 6652 mHWData->mMemoryBalloonSize = data.ulMemoryBalloonSize; 6689 mHWData->mStatisticsUpdateInterval = data.ulStatisticsUpdateInterval;6690 6653 6691 6654 // IO settings … … 7726 7689 /* Guest */ 7727 7690 data.ulMemoryBalloonSize = mHWData->mMemoryBalloonSize; 7728 data.ulStatisticsUpdateInterval = mHWData->mStatisticsUpdateInterval;7729 7691 7730 7692 // IO settings -
trunk/src/VBox/Main/include/MachineImpl.h
r27818 r27823 273 273 ULONG mMemorySize; 274 274 ULONG mMemoryBalloonSize; 275 ULONG mStatisticsUpdateInterval;276 275 ULONG mVRAMSize; 277 276 ULONG mMonitorCount; … … 392 391 STDMETHOD(COMGETTER(MemoryBalloonSize))(ULONG *memoryBalloonSize); 393 392 STDMETHOD(COMSETTER(MemoryBalloonSize))(ULONG memoryBalloonSize); 394 STDMETHOD(COMGETTER(StatisticsUpdateInterval))(ULONG *statisticsUpdateInterval);395 STDMETHOD(COMSETTER(StatisticsUpdateInterval))(ULONG statisticsUpdateInterval);396 393 STDMETHOD(COMGETTER(VRAMSize))(ULONG *memorySize); 397 394 STDMETHOD(COMSETTER(VRAMSize))(ULONG memorySize); -
trunk/src/VBox/Main/xml/Settings.cpp
r27324 r27823 1477 1477 keyboardHidType(KeyboardHidType_PS2Keyboard), 1478 1478 clipboardMode(ClipboardMode_Bidirectional), 1479 ulMemoryBalloonSize(0), 1480 ulStatisticsUpdateInterval(0) 1479 ulMemoryBalloonSize(0) 1481 1480 { 1482 1481 mapBootOrder[0] = DeviceType_Floppy; … … 1534 1533 && (clipboardMode == h.clipboardMode) 1535 1534 && (ulMemoryBalloonSize == h.ulMemoryBalloonSize) 1536 && (ulStatisticsUpdateInterval == h.ulStatisticsUpdateInterval)1537 1535 && (llGuestProperties == h.llGuestProperties) 1538 1536 && (strNotificationPatterns == h.strNotificationPatterns) … … 2377 2375 if (!pelmHwChild->getAttributeValue("memoryBalloonSize", hw.ulMemoryBalloonSize)) 2378 2376 pelmHwChild->getAttributeValue("MemoryBalloonSize", hw.ulMemoryBalloonSize); // used before 1.3 2379 if (!pelmHwChild->getAttributeValue("statisticsUpdateInterval", hw.ulStatisticsUpdateInterval))2380 pelmHwChild->getAttributeValue("StatisticsUpdateInterval", hw.ulStatisticsUpdateInterval);2381 2377 } 2382 2378 else if (pelmHwChild->nameEquals("GuestProperties")) … … 3405 3401 xml::ElementNode *pelmGuest = pelmHardware->createChild("Guest"); 3406 3402 pelmGuest->setAttribute("memoryBalloonSize", hw.ulMemoryBalloonSize); 3407 pelmGuest->setAttribute("statisticsUpdateInterval", hw.ulStatisticsUpdateInterval);3408 3403 3409 3404 xml::ElementNode *pelmGuestProps = pelmHardware->createChild("GuestProperties");
Note:
See TracChangeset
for help on using the changeset viewer.