Changeset 75361 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 9, 2018 12:56:40 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r75345 r75361 961 961 if (fRecordEnabled) 962 962 { 963 ComPtr<IRecord Settings> RecordSettings;964 CHECK_ERROR_BREAK(machine, COMGETTER(Record Settings)(RecordSettings.asOutParam()));965 CHECK_ERROR_BREAK( RecordSettings, COMSETTER(Enabled)(TRUE));966 967 SafeIfaceArray <IRecord ScreenSettings> saRecordScreenScreens;968 CHECK_ERROR_BREAK( RecordSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saRecordScreenScreens)));963 ComPtr<IRecordingSettings> recordingSettings; 964 CHECK_ERROR_BREAK(machine, COMGETTER(RecordingSettings)(recordingSettings.asOutParam())); 965 CHECK_ERROR_BREAK(recordingSettings, COMSETTER(Enabled)(TRUE)); 966 967 SafeIfaceArray <IRecordingScreenSettings> saRecordScreenScreens; 968 CHECK_ERROR_BREAK(recordingSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saRecordScreenScreens))); 969 969 970 970 /* Note: For now all screens have the same configuration. */ … … 1232 1232 if (!machine.isNull()) 1233 1233 { 1234 ComPtr<IRecord Settings> RecordSettings;1235 CHECK_ERROR_BREAK(machine, COMGETTER(Record Settings)(RecordSettings.asOutParam()));1236 CHECK_ERROR_BREAK( RecordSettings, COMSETTER(Enabled)(FALSE));1234 ComPtr<IRecordingSettings> recordingSettings; 1235 CHECK_ERROR_BREAK(machine, COMGETTER(RecordingSettings)(recordingSettings.asOutParam())); 1236 CHECK_ERROR_BREAK(recordingSettings, COMSETTER(Enabled)(FALSE)); 1237 1237 } 1238 1238 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r75345 r75361 1864 1864 } 1865 1865 1866 ComPtr<IRecord Settings> RecordSettings;1867 CHECK_ERROR_BREAK(machine, COMGETTER(Record Settings)(RecordSettings.asOutParam()));1868 1869 SafeIfaceArray <IRecord ScreenSettings> saRecordScreenScreens;1870 CHECK_ERROR_BREAK( RecordSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saRecordScreenScreens)));1866 ComPtr<IRecordingSettings> recordingSettings; 1867 CHECK_ERROR_BREAK(machine, COMGETTER(RecordingSettings)(recordingSettings.asOutParam())); 1868 1869 SafeIfaceArray <IRecordingScreenSettings> saRecordingScreenScreens; 1870 CHECK_ERROR_BREAK(recordingSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saRecordingScreenScreens))); 1871 1871 1872 1872 /* Note: For now all screens have the same configuration. */ … … 1878 1878 if (!strcmp(a->argv[2], "on")) 1879 1879 { 1880 CHECK_ERROR_RET( RecordSettings, COMSETTER(Enabled)(TRUE), RTEXITCODE_FAILURE);1880 CHECK_ERROR_RET(recordingSettings, COMSETTER(Enabled)(TRUE), RTEXITCODE_FAILURE); 1881 1881 } 1882 1882 else if (!strcmp(a->argv[2], "off")) 1883 1883 { 1884 CHECK_ERROR_RET( RecordSettings, COMSETTER(Enabled)(FALSE), RTEXITCODE_FAILURE);1884 CHECK_ERROR_RET(recordingSettings, COMSETTER(Enabled)(FALSE), RTEXITCODE_FAILURE); 1885 1885 } 1886 1886 else if (!strcmp(a->argv[2], "screens")) … … 1930 1930 } 1931 1931 1932 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)1933 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(Enabled)(saScreens[i]));1932 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 1933 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(Enabled)(saScreens[i])); 1934 1934 } 1935 1935 else if (!strcmp(a->argv[2], "filename")) … … 1942 1942 } 1943 1943 1944 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)1945 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(FileName)(Bstr(a->argv[2]).raw()));1944 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 1945 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(FileName)(Bstr(a->argv[2]).raw())); 1946 1946 } 1947 1947 else if ( !strcmp(a->argv[2], "videores") … … 1972 1972 } 1973 1973 1974 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)1975 { 1976 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(VideoWidth)(uVal));1977 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(VideoHeight)(uVal));1974 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 1975 { 1976 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoWidth)(uVal)); 1977 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoHeight)(uVal)); 1978 1978 } 1979 1979 } … … 1996 1996 } 1997 1997 1998 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)1999 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(VideoRate)(uVal));1998 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 1999 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoRate)(uVal)); 2000 2000 } 2001 2001 else if (!strcmp(a->argv[2], "videofps")) … … 2017 2017 } 2018 2018 2019 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)2020 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(VideoFPS)(uVal));2019 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 2020 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoFPS)(uVal)); 2021 2021 } 2022 2022 else if (!strcmp(a->argv[2], "maxtime")) … … 2038 2038 } 2039 2039 2040 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)2041 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(MaxTime)(uVal));2040 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 2041 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxTime)(uVal)); 2042 2042 } 2043 2043 else if (!strcmp(a->argv[2], "maxfilesize")) … … 2059 2059 } 2060 2060 2061 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)2062 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(MaxFileSize)(uVal));2061 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 2062 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxFileSize)(uVal)); 2063 2063 } 2064 2064 else if (!strcmp(a->argv[2], "opts")) … … 2071 2071 } 2072 2072 2073 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)2074 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(Options)(Bstr(a->argv[3]).raw()));2073 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 2074 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(Options)(Bstr(a->argv[3]).raw())); 2075 2075 } 2076 2076 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r75345 r75361 2379 2379 # endif 2380 2380 2381 ComPtr<IRecord Settings> RecordSettings;2382 CHECK_ERROR_RET(machine, COMGETTER(Record Settings)(RecordSettings.asOutParam()), rc);2383 2384 SafeIfaceArray <IRecord ScreenSettings> saCaptureScreenScreens;2385 CHECK_ERROR_RET( RecordSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saCaptureScreenScreens)), rc);2381 ComPtr<IRecordingSettings> recordingSettings; 2382 CHECK_ERROR_RET(machine, COMGETTER(RecordingSettings)(recordingSettings.asOutParam()), rc); 2383 2384 SafeIfaceArray <IRecordingScreenSettings> saRecordingScreenScreens; 2385 CHECK_ERROR_RET(recordingSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saRecordingScreenScreens)), rc); 2386 2386 2387 2387 /* For now all screens have the same configuration; so take screen 0 and work with that. */ 2388 2388 ULONG fFeatures; 2389 CHECK_ERROR_RET(sa CaptureScreenScreens[0], COMGETTER(Features)(&fFeatures), rc);2389 CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(Features)(&fFeatures), rc); 2390 2390 ULONG Width; 2391 CHECK_ERROR_RET(sa CaptureScreenScreens[0], COMGETTER(VideoWidth)(&Width), rc);2391 CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoWidth)(&Width), rc); 2392 2392 ULONG Height; 2393 CHECK_ERROR_RET(sa CaptureScreenScreens[0], COMGETTER(VideoHeight)(&Height), rc);2393 CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoHeight)(&Height), rc); 2394 2394 ULONG Rate; 2395 CHECK_ERROR_RET(sa CaptureScreenScreens[0], COMGETTER(VideoRate)(&Rate), rc);2395 CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoRate)(&Rate), rc); 2396 2396 ULONG Fps; 2397 CHECK_ERROR_RET(sa CaptureScreenScreens[0], COMGETTER(VideoFPS)(&Fps), rc);2397 CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoFPS)(&Fps), rc); 2398 2398 Bstr bstrFile; 2399 CHECK_ERROR_RET(sa CaptureScreenScreens[0], COMGETTER(FileName)(bstrFile.asOutParam()), rc);2399 CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(FileName)(bstrFile.asOutParam()), rc); 2400 2400 Bstr bstrOptions; 2401 CHECK_ERROR_RET(sa CaptureScreenScreens[0], COMGETTER(Options)(bstrOptions.asOutParam()), rc);2401 CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(Options)(bstrOptions.asOutParam()), rc); 2402 2402 2403 2403 Utf8Str strOptions(bstrOptions); … … 2423 2423 # endif 2424 2424 szValue[0] = '\0'; 2425 for (size_t i = 0, off = 0; i < sa CaptureScreenScreens.size(); i++)2425 for (size_t i = 0, off = 0; i < saRecordingScreenScreens.size(); i++) 2426 2426 { 2427 2427 BOOL fEnabled; 2428 CHECK_ERROR_RET(sa CaptureScreenScreens[i], COMGETTER(Enabled)(&fEnabled), rc);2428 CHECK_ERROR_RET(saRecordingScreenScreens[i], COMGETTER(Enabled)(&fEnabled), rc); 2429 2429 if (fEnabled && off < sizeof(szValue) - 3) 2430 2430 off += RTStrPrintf(&szValue[off], sizeof(szValue) - off, off ? ",%zu" : "%zu", i); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r75345 r75361 2950 2950 case MODIFYVM_RECORD_OPTIONS: 2951 2951 { 2952 ComPtr<IRecord Settings> RecordSettings;2953 CHECK_ERROR_BREAK(machine, COMGETTER(Record Settings)(RecordSettings.asOutParam()));2954 SafeIfaceArray <IRecord ScreenSettings> saRecordScreenScreens;2955 CHECK_ERROR_BREAK( RecordSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saRecordScreenScreens)));2952 ComPtr<IRecordingSettings> recordingSettings; 2953 CHECK_ERROR_BREAK(machine, COMGETTER(RecordingSettings)(recordingSettings.asOutParam())); 2954 SafeIfaceArray <IRecordingScreenSettings> saRecordingScreenScreens; 2955 CHECK_ERROR_BREAK(recordingSettings, COMGETTER(Screens)(ComSafeArrayAsOutParam(saRecordingScreenScreens))); 2956 2956 2957 2957 switch (c) … … 2959 2959 case MODIFYVM_RECORD: 2960 2960 { 2961 CHECK_ERROR( RecordSettings, COMSETTER(Enabled)(ValueUnion.f));2961 CHECK_ERROR(recordingSettings, COMSETTER(Enabled)(ValueUnion.f)); 2962 2962 break; 2963 2963 } … … 2974 2974 } 2975 2975 2976 if (cMonitors > saRecord ScreenScreens.size()) /* Paranoia. */2977 cMonitors = (ULONG)saRecord ScreenScreens.size();2976 if (cMonitors > saRecordingScreenScreens.size()) /* Paranoia. */ 2977 cMonitors = (ULONG)saRecordingScreenScreens.size(); 2978 2978 2979 2979 for (size_t i = 0; i < cMonitors; ++i) 2980 CHECK_ERROR_BREAK(saRecord ScreenScreens[i], COMSETTER(Enabled)(screens[i]));2980 CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(Enabled)(screens[i])); 2981 2981 break; 2982 2982 } … … 2998 2998 } 2999 2999 3000 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3001 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(FileName)(bstr.raw()));3000 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3001 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(FileName)(bstr.raw())); 3002 3002 break; 3003 3003 } 3004 3004 case MODIFYVM_RECORD_VIDEO_WIDTH: 3005 3005 { 3006 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3007 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(VideoWidth)(ValueUnion.u32));3006 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3007 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoWidth)(ValueUnion.u32)); 3008 3008 break; 3009 3009 } 3010 3010 case MODIFYVM_RECORD_VIDEO_HEIGHT: 3011 3011 { 3012 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3013 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(VideoHeight)(ValueUnion.u32));3012 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3013 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoHeight)(ValueUnion.u32)); 3014 3014 break; 3015 3015 } … … 3034 3034 } 3035 3035 3036 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3036 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3037 3037 { 3038 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(VideoWidth)(uWidth));3039 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(VideoHeight)(uHeight));3038 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoWidth)(uWidth)); 3039 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoHeight)(uHeight)); 3040 3040 } 3041 3041 break; … … 3043 3043 case MODIFYVM_RECORD_VIDEO_RATE: 3044 3044 { 3045 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3046 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(VideoRate)(ValueUnion.u32));3045 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3046 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoRate)(ValueUnion.u32)); 3047 3047 break; 3048 3048 } 3049 3049 case MODIFYVM_RECORD_VIDEO_FPS: 3050 3050 { 3051 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3052 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(VideoFPS)(ValueUnion.u32));3051 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3052 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoFPS)(ValueUnion.u32)); 3053 3053 break; 3054 3054 } 3055 3055 case MODIFYVM_RECORD_MAXTIME: 3056 3056 { 3057 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3058 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(MaxTime)(ValueUnion.u32));3057 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3058 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(MaxTime)(ValueUnion.u32)); 3059 3059 break; 3060 3060 } 3061 3061 case MODIFYVM_RECORD_MAXSIZE: 3062 3062 { 3063 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3064 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(MaxFileSize)(ValueUnion.u32));3063 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3064 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(MaxFileSize)(ValueUnion.u32)); 3065 3065 break; 3066 3066 } … … 3068 3068 { 3069 3069 Bstr bstr(ValueUnion.psz); 3070 for (size_t i = 0; i < saRecord ScreenScreens.size(); ++i)3071 CHECK_ERROR(saRecord ScreenScreens[i], COMSETTER(Options)(bstr.raw()));3070 for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i) 3071 CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(Options)(bstr.raw())); 3072 3072 break; 3073 3073 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp
r75341 r75361 375 375 break; 376 376 } 377 case KVBoxEventType_OnRecord Changed:377 case KVBoxEventType_OnRecordingChanged: 378 378 { 379 379 emit sigRecordingChange(); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp
r75341 r75361 44 44 # include "CMediumAttachment.h" 45 45 # include "CAudioAdapter.h" 46 # include "CRecord Settings.h"47 # include "CRecord ScreenSettings.h"46 # include "CRecordingSettings.h" 47 # include "CRecordingScreenSettings.h" 48 48 # include "CNetworkAdapter.h" 49 49 # include "CSerialPort.h" … … 450 450 451 451 /* Recording info: */ 452 CRecord Settings comRecordingSettings = machine.GetRecordSettings();452 CRecordingSettings comRecordingSettings = machine.GetRecordingSettings(); 453 453 if (comRecordingSettings.GetEnabled()) 454 454 { 455 455 /* For now all screens have the same config: */ 456 CRecord ScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);456 CRecordingScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 457 457 458 458 /** @todo r=andy Refine these texts (wrt audio and/or video). */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp
r75341 r75361 188 188 << KVBoxEventType_OnVRDEServerChanged 189 189 << KVBoxEventType_OnVRDEServerInfoChanged 190 << KVBoxEventType_OnRecord Changed190 << KVBoxEventType_OnRecordingChanged 191 191 << KVBoxEventType_OnUSBControllerChanged 192 192 << KVBoxEventType_OnUSBDeviceStateChanged -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r75341 r75361 43 43 /* COM includes: */ 44 44 # include "CAudioAdapter.h" 45 # include "CRecord Settings.h"46 # include "CRecord ScreenSettings.h"45 # include "CRecordingSettings.h" 46 # include "CRecordingScreenSettings.h" 47 47 # include "CConsole.h" 48 48 # include "CMachine.h" … … 884 884 885 885 /* Update indicator state early: */ 886 CRecord Settings comRecordingSettings = comMachine.GetRecordSettings();886 CRecordingSettings comRecordingSettings = comMachine.GetRecordingSettings(); 887 887 Assert(comRecordingSettings.isOk()); 888 888 if (!comRecordingSettings.GetEnabled()) … … 918 918 919 919 /* For now all screens have the same config: */ 920 CRecord ScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);920 CRecordingScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 921 921 Assert(comRecordingScreen0Settings.isOk()); 922 922 … … 955 955 return; 956 956 957 CRecord Settings comRecordingSettings = comMachine.GetRecordSettings();957 CRecordingSettings comRecordingSettings = comMachine.GetRecordingSettings(); 958 958 /* For now all screens have the same config: */ 959 CRecord ScreenSettings recordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);960 if (recordingScreen0Settings.IsFeatureEnabled(KRecord Feature_Video))959 CRecordingScreenSettings recordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 960 if (recordingScreen0Settings.IsFeatureEnabled(KRecordingFeature_Video)) 961 961 m_enmRecordingMode = (UIIndicatorStateRecordingMode)((int)m_enmRecordingMode | (int)UIIndicatorStateRecordingMode_Video); 962 962 963 if (recordingScreen0Settings.IsFeatureEnabled(KRecord Feature_Audio))963 if (recordingScreen0Settings.IsFeatureEnabled(KRecordingFeature_Audio)) 964 964 m_enmRecordingMode = (UIIndicatorStateRecordingMode)((int)m_enmRecordingMode | (int)UIIndicatorStateRecordingMode_Audio); 965 965 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r75341 r75361 77 77 /* COM includes: */ 78 78 # include "CAudioAdapter.h" 79 # include "CRecord Settings.h"79 # include "CRecordingSettings.h" 80 80 # include "CVirtualBoxErrorInfo.h" 81 81 # include "CMachineDebugger.h" … … 2104 2104 2105 2105 /* Make sure something had changed: */ 2106 CRecord Settings comRecordingSettings = machine().GetRecordSettings();2106 CRecordingSettings comRecordingSettings = machine().GetRecordingSettings(); 2107 2107 if (comRecordingSettings.GetEnabled() == static_cast<BOOL>(fEnabled)) 2108 2108 return; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r75341 r75361 60 60 /* COM includes: */ 61 61 # include "CAudioAdapter.h" 62 # include "CRecord Settings.h"62 # include "CRecordingSettings.h" 63 63 # include "CSystemProperties.h" 64 64 # include "CStorageController.h" … … 724 724 void UISession::sltRecordingChange() 725 725 { 726 CRecord Settings comRecordingSettings = machine().GetRecordSettings();726 CRecordingSettings comRecordingSettings = machine().GetRecordingSettings(); 727 727 728 728 /* Check/Uncheck Capture action depending on feature status: */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r75341 r75361 31 31 32 32 /* COM includes: */ 33 # include "CRecord Settings.h"34 # include "CRecord ScreenSettings.h"33 # include "CRecordingSettings.h" 34 # include "CRecordingScreenSettings.h" 35 35 # include "CExtPack.h" 36 36 # include "CExtPackManager.h" … … 383 383 384 384 /* Gather old 'Recording' data: */ 385 CRecord Settings recordingSettings = m_machine.GetRecordSettings();385 CRecordingSettings recordingSettings = m_machine.GetRecordingSettings(); 386 386 Assert(recordingSettings.isNotNull()); 387 387 oldDisplayData.m_fRecordingEnabled = recordingSettings.GetEnabled(); 388 388 389 389 /* For now we're using the same settings for all screens; so get settings from screen 0 and work with that. */ 390 CRecord ScreenSettings recordingScreen0Settings = recordingSettings.GetScreenSettings(0);390 CRecordingScreenSettings recordingScreen0Settings = recordingSettings.GetScreenSettings(0); 391 391 if (!recordingScreen0Settings.isNull()) 392 392 { … … 400 400 } 401 401 402 CRecord ScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();402 CRecordingScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens(); 403 403 oldDisplayData.m_vecRecordingScreens.resize(recordingScreenSettingsVector.size()); 404 404 for (int iScreenIndex = 0; iScreenIndex < recordingScreenSettingsVector.size(); ++iScreenIndex) 405 405 { 406 CRecord ScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);406 CRecordingScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex); 407 407 if (!recordingScreenSettings.isNull()) 408 408 oldDisplayData.m_vecRecordingScreens[iScreenIndex] = recordingScreenSettings.GetEnabled(); … … 1511 1511 const UIDataSettingsMachineDisplay &newDisplayData = m_pCache->data(); 1512 1512 1513 CRecord Settings recordingSettings = m_machine.GetRecordSettings();1513 CRecordingSettings recordingSettings = m_machine.GetRecordingSettings(); 1514 1514 Assert(recordingSettings.isNotNull()); 1515 1515 … … 1533 1533 if (fSuccess) 1534 1534 { 1535 CRecord ScreenSettingsVector RecordScreenSettingsVector = recordingSettings.GetScreens();1535 CRecordingScreenSettingsVector RecordScreenSettingsVector = recordingSettings.GetScreens(); 1536 1536 for (int iScreenIndex = 0; fSuccess && iScreenIndex < RecordScreenSettingsVector.size(); ++iScreenIndex) 1537 1537 { … … 1539 1539 continue; 1540 1540 1541 CRecord ScreenSettings recordingScreenSettings = RecordScreenSettingsVector.at(iScreenIndex);1541 CRecordingScreenSettings recordingScreenSettings = RecordScreenSettingsVector.at(iScreenIndex); 1542 1542 recordingScreenSettings.SetEnabled(newDisplayData.m_vecRecordingScreens[iScreenIndex]); 1543 1543 fSuccess = recordingScreenSettings.isOk(); … … 1548 1548 else 1549 1549 { 1550 CRecord ScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();1550 CRecordingScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens(); 1551 1551 for (int iScreenIndex = 0; fSuccess && iScreenIndex < recordingScreenSettingsVector.size(); ++iScreenIndex) 1552 1552 { … … 1554 1554 continue; 1555 1555 1556 CRecord ScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);1556 CRecordingScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex); 1557 1557 1558 1558 // We should save all the options *before* 'Recording' activation. … … 1623 1623 else 1624 1624 { 1625 CRecord ScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();1625 CRecordingScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens(); 1626 1626 for (int iScreenIndex = 0; fSuccess && iScreenIndex < recordingScreenSettingsVector.size(); ++iScreenIndex) 1627 1627 { … … 1629 1629 continue; 1630 1630 1631 CRecord ScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);1631 CRecordingScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex); 1632 1632 1633 1633 /* Save recording file path: */ -
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp
r75341 r75361 48 48 /* COM includes: */ 49 49 # include "CAudioAdapter.h" 50 # include "CRecord Settings.h"51 # include "CRecord ScreenSettings.h"50 # include "CRecordingSettings.h" 51 # include "CRecordingScreenSettings.h" 52 52 # include "CMachine.h" 53 53 # include "CMedium.h" … … 1748 1748 QStringList aReport; 1749 1749 /* Acquire recording status: */ 1750 CRecord Settings comRecordingSettings = comMachine.GetRecordSettings();1750 CRecordingSettings comRecordingSettings = comMachine.GetRecordingSettings(); 1751 1751 /* For now all screens have the same config: */ 1752 CRecord ScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);1752 CRecordingScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0); 1753 1753 if (comRecordingScreen0Settings.GetEnabled()) 1754 1754 {
Note:
See TracChangeset
for help on using the changeset viewer.