儲存庫 vbox 的更動 46367
圖例:
- 未更動
- 新增
- 刪除
-
trunk/include/VBox/settings.h
r46349 r46367 267 267 com::Utf8Str strDefaultAdditionsISO; 268 268 com::Utf8Str strDefaultFrontend; 269 com::Utf8Str strLoggingLevel; 269 270 uint32_t ulLogHistoryCount; 270 271 }; -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r46348 r46367 8475 8475 name="ISystemProperties" 8476 8476 extends="$unknown" 8477 uuid=" 413ea94c-efd9-491e-81fc-5df0c4d864bb"8477 uuid="55699910-cc50-11e2-8b8b-0800200c9a66" 8478 8478 wsmap="managed" 8479 8479 > … … 8565 8565 <link to="IVirtualBox::openMachine"/> 8566 8566 </see> 8567 </desc> 8568 </attribute> 8569 8570 <attribute name="loggingLevel" type="wstring"> 8571 <desc> 8572 Specifies the logging level in current use by VirtualBox. 8567 8573 </desc> 8568 8574 </attribute> -
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r44948 r46367 70 70 STDMETHOD(COMGETTER(ParallelPortCount))(ULONG *count); 71 71 STDMETHOD(COMGETTER(MaxBootPosition))(ULONG *aMaxBootPosition); 72 STDMETHOD(COMGETTER(LoggingLevel))(BSTR *aLoggingLevel); 73 STDMETHOD(COMSETTER(LoggingLevel))(IN_BSTR aLoggingLevel); 72 74 STDMETHOD(COMGETTER(DefaultMachineFolder))(BSTR *aDefaultMachineFolder); 73 75 STDMETHOD(COMSETTER(DefaultMachineFolder))(IN_BSTR aDefaultMachineFolder); … … 125 127 HRESULT getUserHomeDirectory(Utf8Str &strPath); 126 128 HRESULT setDefaultMachineFolder(const Utf8Str &aPath); 129 HRESULT setLoggingLevel(const Utf8Str &aLoggingLevel); 127 130 HRESULT setDefaultHardDiskFormat(const Utf8Str &aFormat); 128 131 -
trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp
r45518 r46367 91 91 92 92 setDefaultMachineFolder(Utf8Str::Empty); 93 setLoggingLevel(Utf8Str::Empty); 93 94 setDefaultHardDiskFormat(Utf8Str::Empty); 94 95 … … 609 610 { 610 611 // VirtualBox::saveSettings() needs vbox write lock 612 AutoWriteLock vboxLock(mParent COMMA_LOCKVAL_SRC_POS); 613 rc = mParent->saveSettings(); 614 } 615 616 return rc; 617 } 618 619 STDMETHODIMP SystemProperties::COMGETTER(LoggingLevel)(BSTR *aLoggingLevel) 620 { 621 CheckComArgOutPointerValid(aLoggingLevel); 622 623 AutoCaller autoCaller(this); 624 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 625 626 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 627 628 m->strLoggingLevel.cloneTo(aLoggingLevel); 629 630 return S_OK; 631 } 632 633 634 STDMETHODIMP SystemProperties::COMSETTER(LoggingLevel)(IN_BSTR aLoggingLevel) 635 { 636 AutoCaller autoCaller(this); 637 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 638 639 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 640 HRESULT rc = setLoggingLevel(aLoggingLevel); 641 alock.release(); 642 643 if (SUCCEEDED(rc)) 644 { 611 645 AutoWriteLock vboxLock(mParent COMMA_LOCKVAL_SRC_POS); 612 646 rc = mParent->saveSettings(); … … 1041 1075 if (FAILED(rc)) return rc; 1042 1076 1077 rc = setLoggingLevel(data.strLoggingLevel); 1078 if (FAILED(rc)) return rc; 1079 1043 1080 rc = setDefaultHardDiskFormat(data.strDefaultHardDiskFormat); 1044 1081 if (FAILED(rc)) return rc; … … 1206 1243 m->strDefaultMachineFolder = path; 1207 1244 1245 return S_OK; 1246 } 1247 1248 HRESULT SystemProperties::setLoggingLevel(const Utf8Str &aLoggingLevel) 1249 { 1250 m->strLoggingLevel = aLoggingLevel; 1208 1251 return S_OK; 1209 1252 } -
trunk/src/VBox/Main/xml/Settings.cpp
r46351 r46367 1387 1387 { 1388 1388 pelmGlobalChild->getAttributeValue("defaultMachineFolder", systemProperties.strDefaultMachineFolder); 1389 pelmGlobalChild->getAttributeValue("LoggingLevel", systemProperties.strLoggingLevel); 1389 1390 pelmGlobalChild->getAttributeValue("defaultHardDiskFormat", systemProperties.strDefaultHardDiskFormat); 1390 1391 if (!pelmGlobalChild->getAttributeValue("VRDEAuthLibrary", systemProperties.strVRDEAuthLibrary)) … … 1532 1533 if (systemProperties.strDefaultMachineFolder.length()) 1533 1534 pelmSysProps->setAttribute("defaultMachineFolder", systemProperties.strDefaultMachineFolder); 1535 if (systemProperties.strLoggingLevel.length()) 1536 pelmSysProps->setAttribute("LoggingLevel", systemProperties.strLoggingLevel); 1534 1537 if (systemProperties.strDefaultHardDiskFormat.length()) 1535 1538 pelmSysProps->setAttribute("defaultHardDiskFormat", systemProperties.strDefaultHardDiskFormat);
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器