Changeset 30950 in vbox
- Timestamp:
- Jul 21, 2010 11:36:18 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63838
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r30934 r30950 43 43 44 44 SystemProperties::SystemProperties() 45 : mParent(NULL) 45 : mParent(NULL), 46 m(new settings::SystemProperties) 46 47 { 47 48 } … … 49 50 SystemProperties::~SystemProperties() 50 51 { 52 delete m; 51 53 } 52 54 … … 88 90 setRemoteDisplayAuthLibrary(Utf8Str::Null); 89 91 90 m LogHistoryCount = 3;92 m->ulLogHistoryCount = 3; 91 93 92 94 HRESULT rc = S_OK; … … 112 114 if (FAILED(rc)) break; 113 115 114 m MediumFormats.push_back(hdf);116 m_llMediumFormats.push_back(hdf); 115 117 } 116 118 } … … 577 579 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 578 580 579 SafeIfaceArray<IMediumFormat> mediumFormats(m MediumFormats);581 SafeIfaceArray<IMediumFormat> mediumFormats(m_llMediumFormats); 580 582 mediumFormats.detachTo(ComSafeArrayOutArg(aMediumFormats)); 581 583 … … 592 594 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 593 595 594 m _strDefaultHardDiskFormat.cloneTo(aDefaultHardDiskFormat);596 m->strDefaultHardDiskFormat.cloneTo(aDefaultHardDiskFormat); 595 597 596 598 return S_OK; … … 673 675 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 674 676 675 m _strRemoteDisplayAuthLibrary.cloneTo(aRemoteDisplayAuthLibrary);677 m->strRemoteDisplayAuthLibrary.cloneTo(aRemoteDisplayAuthLibrary); 676 678 677 679 return S_OK; … … 706 708 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 707 709 708 m _strWebServiceAuthLibrary.cloneTo(aWebServiceAuthLibrary);710 m->strWebServiceAuthLibrary.cloneTo(aWebServiceAuthLibrary); 709 711 710 712 return S_OK; … … 739 741 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 740 742 741 *count = m LogHistoryCount;743 *count = m->ulLogHistoryCount; 742 744 743 745 return S_OK; … … 750 752 751 753 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 752 m LogHistoryCount = count;754 m->ulLogHistoryCount = count; 753 755 alock.release(); 754 756 … … 801 803 if (FAILED(rc)) return rc; 802 804 803 m LogHistoryCount = data.ulLogHistoryCount;805 m->ulLogHistoryCount = data.ulLogHistoryCount; 804 806 805 807 return S_OK; … … 813 815 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 814 816 815 data.strDefaultMachineFolder = m_strDefaultMachineFolder; 816 data.strDefaultHardDiskFolder = m_strDefaultHardDiskFolder; 817 data.strDefaultHardDiskFormat = m_strDefaultHardDiskFormat; 818 data.strRemoteDisplayAuthLibrary = m_strRemoteDisplayAuthLibrary; 819 data.strWebServiceAuthLibrary = m_strWebServiceAuthLibrary; 820 data.ulLogHistoryCount = mLogHistoryCount; 817 data = *m; 821 818 822 819 return S_OK; … … 840 837 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 841 838 842 for (MediumFormatList::const_iterator it = mMediumFormats.begin(); 843 it != mMediumFormats.end(); ++ it) 839 for (MediumFormatList::const_iterator it = m_llMediumFormats.begin(); 840 it != m_llMediumFormats.end(); 841 ++ it) 844 842 { 845 843 /* MediumFormat is all const, no need to lock */ … … 873 871 vrc); 874 872 875 m _strDefaultMachineFolder = path;873 m->strDefaultMachineFolder = path; 876 874 m_strDefaultMachineFolderFull = folder; 877 875 … … 894 892 vrc); 895 893 896 m _strDefaultHardDiskFolder = path;894 m->strDefaultHardDiskFolder = path; 897 895 m_strDefaultHardDiskFolderFull = folder; 898 896 … … 903 901 { 904 902 if (!aFormat.isEmpty()) 905 m _strDefaultHardDiskFormat = aFormat;903 m->strDefaultHardDiskFormat = aFormat; 906 904 else 907 m _strDefaultHardDiskFormat = "VDI";905 m->strDefaultHardDiskFormat = "VDI"; 908 906 909 907 return S_OK; … … 913 911 { 914 912 if (!aPath.isEmpty()) 915 m _strRemoteDisplayAuthLibrary = aPath;913 m->strRemoteDisplayAuthLibrary = aPath; 916 914 else 917 m _strRemoteDisplayAuthLibrary = "VRDPAuth";915 m->strRemoteDisplayAuthLibrary = "VRDPAuth"; 918 916 919 917 return S_OK; … … 923 921 { 924 922 if (!aPath.isEmpty()) 925 m _strWebServiceAuthLibrary = aPath;923 m->strWebServiceAuthLibrary = aPath; 926 924 else 927 m _strWebServiceAuthLibrary = "VRDPAuth";928 929 return S_OK; 930 } 931 925 m->strWebServiceAuthLibrary = "VRDPAuth"; 926 927 return S_OK; 928 } 929 -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r30938 r30950 3202 3202 { 3203 3203 AutoReadLock propsLock(m->pSystemProperties COMMA_LOCKVAL_SRC_POS); 3204 return m->pSystemProperties->m _strDefaultMachineFolder;3204 return m->pSystemProperties->m->strDefaultMachineFolder; 3205 3205 } 3206 3206 … … 3213 3213 { 3214 3214 AutoReadLock propsLock(m->pSystemProperties COMMA_LOCKVAL_SRC_POS); 3215 return m->pSystemProperties->m _strDefaultHardDiskFolder;3215 return m->pSystemProperties->m->strDefaultHardDiskFolder; 3216 3216 } 3217 3217 … … 3224 3224 { 3225 3225 AutoReadLock propsLock(m->pSystemProperties COMMA_LOCKVAL_SRC_POS); 3226 return m->pSystemProperties->m _strDefaultHardDiskFormat;3226 return m->pSystemProperties->m->strDefaultHardDiskFormat; 3227 3227 } 3228 3228 -
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r30934 r30950 125 125 VirtualBox * const mParent; 126 126 127 Utf8Str m_strDefaultMachineFolder; 127 settings::SystemProperties *m; 128 128 129 Utf8Str m_strDefaultMachineFolderFull; 129 Utf8Str m_strDefaultHardDiskFolder;130 130 Utf8Str m_strDefaultHardDiskFolderFull; 131 Utf8Str m_strDefaultHardDiskFormat;132 131 133 MediumFormatList mMediumFormats; 134 135 Utf8Str m_strRemoteDisplayAuthLibrary; 136 Utf8Str m_strWebServiceAuthLibrary; 137 ULONG mLogHistoryCount; 132 MediumFormatList m_llMediumFormats; 138 133 139 134 friend class VirtualBox;
Note:
See TracChangeset
for help on using the changeset viewer.