Changeset 75361 in vbox
- Timestamp:
- Nov 9, 2018 12:56:40 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 31 edited
- 4 moved
-
include/VBox/log.h (modified) (2 diffs)
-
include/VBox/settings.h (modified) (8 diffs)
-
src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp (modified) (10 diffs)
-
src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp (modified) (7 diffs)
-
src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp (modified) (1 diff)
-
src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp (modified) (1 diff)
-
src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp (modified) (4 diffs)
-
src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp (modified) (2 diffs)
-
src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp (modified) (10 diffs)
-
src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp (modified) (2 diffs)
-
src/VBox/Main/Makefile.kmk (modified) (1 diff)
-
src/VBox/Main/idl/VirtualBox.xidl (modified) (21 diffs)
-
src/VBox/Main/include/ConsoleImpl.h (modified) (2 diffs)
-
src/VBox/Main/include/DrvAudioRec.h (modified) (2 diffs)
-
src/VBox/Main/include/MachineImpl.h (modified) (5 diffs)
-
src/VBox/Main/include/Recording.h (modified) (5 diffs)
-
src/VBox/Main/include/RecordingScreenSettingsImpl.h (moved) (moved from trunk/src/VBox/Main/include/RecordScreenSettingsImpl.h ) (8 diffs)
-
src/VBox/Main/include/RecordingSettingsImpl.h (moved) (moved from trunk/src/VBox/Main/include/RecordSettingsImpl.h ) (4 diffs)
-
src/VBox/Main/include/RecordingStream.h (modified) (5 diffs)
-
src/VBox/Main/include/SessionImpl.h (modified) (1 diff)
-
src/VBox/Main/src-client/ConsoleImpl.cpp (modified) (12 diffs)
-
src/VBox/Main/src-client/DisplayImpl.cpp (modified) (2 diffs)
-
src/VBox/Main/src-client/DrvAudioRec.cpp (modified) (2 diffs)
-
src/VBox/Main/src-client/Recording.cpp (modified) (6 diffs)
-
src/VBox/Main/src-client/RecordingStream.cpp (modified) (16 diffs)
-
src/VBox/Main/src-client/SessionImpl.cpp (modified) (1 diff)
-
src/VBox/Main/src-server/MachineImpl.cpp (modified) (12 diffs)
-
src/VBox/Main/src-server/RecordingScreenSettingsImpl.cpp (moved) (moved from trunk/src/VBox/Main/src-server/RecordScreenSettingsImpl.cpp ) (51 diffs)
-
src/VBox/Main/src-server/RecordingSettingsImpl.cpp (moved) (moved from trunk/src/VBox/Main/src-server/RecordSettingsImpl.cpp ) (31 diffs)
-
src/VBox/Main/src-server/SnapshotImpl.cpp (modified) (2 diffs)
-
src/VBox/Main/xml/Settings.cpp (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/log.h
r75341 r75361 594 594 /** Main group, IProgressTaskCompletedEvent. */ 595 595 LOG_GROUP_MAIN_PROGRESSTASKCOMPLETEDEVENT, 596 /** Main group, IRecord ChangedEvent. */597 LOG_GROUP_MAIN_RECORD CHANGEDEVENT,598 /** Main group, IRecord Settings. */599 LOG_GROUP_MAIN_RECORD SETTINGS,600 /** Main group, IRecord ScreenSettings. */601 LOG_GROUP_MAIN_RECORD SCREENSETTINGS,596 /** Main group, IRecordingChangedEvent. */ 597 LOG_GROUP_MAIN_RECORDINGCHANGEDEVENT, 598 /** Main group, IRecordingSettings. */ 599 LOG_GROUP_MAIN_RECORDINGSETTINGS, 600 /** Main group, IRecordingScreenSettings. */ 601 LOG_GROUP_MAIN_RECORDINGSCREENSETTINGS, 602 602 /** Main group, IReusableEvent. */ 603 603 LOG_GROUP_MAIN_REUSABLEEVENT, … … 1124 1124 "MAIN_PROGRESSPERCENTAGECHANGEDEVENT", \ 1125 1125 "MAIN_PROGRESSTASKCOMPLETEDEVENT", \ 1126 "MAIN_RECORD CHANGEDEVENT", \1127 "MAIN_RECORD SETTINGS", \1128 "MAIN_RECORD SCREENSETTINGS", \1126 "MAIN_RECORDINGCHANGEDEVENT", \ 1127 "MAIN_RECORDINGSETTINGS", \ 1128 "MAIN_RECORDINGSCREENSETTINGS", \ 1129 1129 "MAIN_REUSABLEEVENT", \ 1130 1130 "MAIN_RUNTIMEERROREVENT", \ -
trunk/include/VBox/settings.h
r75341 r75361 482 482 483 483 /** List for keeping a recording feature list. */ 484 typedef std::map<Record Feature_T, bool> RecordFeatureMap;485 486 struct Record ScreenSettings487 { 488 Record ScreenSettings();489 490 virtual ~Record ScreenSettings();484 typedef std::map<RecordingFeature_T, bool> RecordingFeatureMap; 485 486 struct RecordingScreenSettings 487 { 488 RecordingScreenSettings(); 489 490 virtual ~RecordingScreenSettings(); 491 491 492 492 void applyDefaults(void); … … 494 494 bool areDefaultSettings(void) const; 495 495 496 bool isFeatureEnabled(Record Feature_T enmFeature) const;497 498 bool operator==(const Record ScreenSettings &d) const;499 500 bool fEnabled;// requires settings version 1.14 (VirtualBox 4.3)501 Record Destination_T enmDest;// new since VirtualBox 6.0.502 Record FeatureMap featureMap;// new since VirtualBox 6.0.503 uint32_t ulMaxTimeS;// requires settings version 1.14 (VirtualBox 4.3)504 com::Utf8Str strOptions;// new since VirtualBox 5.2.496 bool isFeatureEnabled(RecordingFeature_T enmFeature) const; 497 498 bool operator==(const RecordingScreenSettings &d) const; 499 500 bool fEnabled; // requires settings version 1.14 (VirtualBox 4.3) 501 RecordingDestination_T enmDest; // new since VirtualBox 6.0. 502 RecordingFeatureMap featureMap; // new since VirtualBox 6.0. 503 uint32_t ulMaxTimeS; // requires settings version 1.14 (VirtualBox 4.3) 504 com::Utf8Str strOptions; // new since VirtualBox 5.2. 505 505 506 506 struct Audio 507 507 { 508 508 Audio() 509 : enmAudioCodec(Record AudioCodec_Opus)509 : enmAudioCodec(RecordingAudioCodec_Opus) 510 510 , uHz(22050) 511 511 , cBits(16) … … 513 513 514 514 /** The audio codec type to use. */ 515 Record AudioCodec_T enmAudioCodec; // new since VirtualBox 6.0.515 RecordingAudioCodec_T enmAudioCodec; // new since VirtualBox 6.0. 516 516 /** Hz rate. */ 517 uint16_t uHz; // new since VirtualBox 6.0.517 uint16_t uHz; // new since VirtualBox 6.0. 518 518 /** Bits per sample. */ 519 uint8_t cBits; // new since VirtualBox 6.0.519 uint8_t cBits; // new since VirtualBox 6.0. 520 520 /** Number of audio channels. */ 521 uint8_t cChannels; // new since VirtualBox 6.0.521 uint8_t cChannels; // new since VirtualBox 6.0. 522 522 } Audio; 523 523 … … 525 525 { 526 526 Video() 527 : enmCodec(Record VideoCodec_VP8)527 : enmCodec(RecordingVideoCodec_VP8) 528 528 , ulWidth(1024) 529 529 , ulHeight(768) … … 531 531 , ulFPS(25) { } 532 532 533 Record VideoCodec_TenmCodec; // new since VirtualBox 6.0.534 uint32_t ulWidth; // requires settings version 1.14 (VirtualBox 4.3)535 uint32_t ulHeight; // requires settings version 1.14 (VirtualBox 4.3)536 uint32_t ulRate; // requires settings version 1.14 (VirtualBox 4.3)537 uint32_t ulFPS; // requires settings version 1.14 (VirtualBox 4.3)533 RecordingVideoCodec_T enmCodec; // new since VirtualBox 6.0. 534 uint32_t ulWidth; // requires settings version 1.14 (VirtualBox 4.3) 535 uint32_t ulHeight; // requires settings version 1.14 (VirtualBox 4.3) 536 uint32_t ulRate; // requires settings version 1.14 (VirtualBox 4.3) 537 uint32_t ulFPS; // requires settings version 1.14 (VirtualBox 4.3) 538 538 } Video; 539 539 … … 549 549 550 550 /** Map for keeping settings per virtual screen. */ 551 typedef std::map<uint32_t, Record ScreenSettings> RecordScreenMap;552 553 /** 554 * NOTE: If you add any fields in here, you must update a) the constructor and b) 555 * the operator== which is used by MachineConfigFile::operator==(), or otherwise 556 * your settings might never get saved. 557 */ 558 struct Record Settings559 { 560 Record Settings();551 typedef std::map<uint32_t, RecordingScreenSettings> RecordingScreenMap; 552 553 /** 554 * NOTE: If you add any fields in here, you must update a) the constructor and b) 555 * the operator== which is used by MachineConfigFile::operator==(), or otherwise 556 * your settings might never get saved. 557 */ 558 struct RecordingSettings 559 { 560 RecordingSettings(); 561 561 562 562 void applyDefaults(void); … … 564 564 bool areDefaultSettings(void) const; 565 565 566 bool operator==(const Record Settings &d) const;567 568 bool fEnabled; // requires settings version 1.14 (VirtualBox 4.3)569 Record ScreenMap mapScreens;566 bool operator==(const RecordingSettings &d) const; 567 568 bool fEnabled; // requires settings version 1.14 (VirtualBox 4.3) 569 RecordingScreenMap mapScreens; 570 570 }; 571 571 … … 1039 1039 1040 1040 BIOSSettings biosSettings; 1041 Record Settings recordSettings;1041 RecordingSettings recordingSettings; 1042 1042 USB usbSettings; 1043 1043 NetworkAdaptersList llNetworkAdapters; -
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 { -
trunk/src/VBox/Main/Makefile.kmk
r75345 r75361 457 457 src-server/BandwidthGroupImpl.cpp \ 458 458 src-server/BIOSSettingsImpl.cpp \ 459 src-server/Record SettingsImpl.cpp \460 src-server/Record ScreenSettingsImpl.cpp \459 src-server/RecordingSettingsImpl.cpp \ 460 src-server/RecordingScreenSettingsImpl.cpp \ 461 461 src-server/ClientWatcher.cpp \ 462 462 src-server/ClientToken.cpp \ -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r75341 r75361 4690 4690 4691 4691 <enum 4692 name="Record Destination"4693 uuid=" F52E217E-CA05-41BA-8851-0FA38B3BA38B"4692 name="RecordingDestination" 4693 uuid="11E3F06B-DEC1-48B9-BDC4-1E618D72893C" 4694 4694 > 4695 4695 <desc> … … 4706 4706 4707 4707 <enum 4708 name="Record Feature"4709 uuid=" 52AEC901-4EF5-4E04-8CA3-EF1478BB0930"4708 name="RecordingFeature" 4709 uuid="A7DDC6A5-DAA8-4485-B860-E9F2E98A7794" 4710 4710 > 4711 4711 <desc> … … 4725 4725 4726 4726 <enum 4727 name="Record AudioCodec"4728 uuid=" B72DD288-0D3F-4652-AE66-D6F621D2F275"4727 name="RecordingAudioCodec" 4728 uuid="0AEFF775-053A-42F8-9C00-E445107DBED8" 4729 4729 > 4730 4730 <desc> … … 4745 4745 4746 4746 <enum 4747 name="Record VideoCodec"4748 uuid=" 823F3AD4-151F-4BDB-AFF9-F7C998E46105"4747 name="RecordingVideoCodec" 4748 uuid="663BFC39-AFFF-49FA-98DD-322A857E877B" 4749 4749 > 4750 4750 <desc> … … 4767 4767 4768 4768 <enum 4769 name="Record VideoScalingMethod"4770 uuid=" 8D656085-BAE6-4F63-86F9-616776EB3773"4769 name="RecordingVideoScalingMethod" 4770 uuid="5576D890-48EE-449A-A81B-B776233598B7" 4771 4771 > 4772 4772 <desc> … … 4808 4808 4809 4809 <interface 4810 name="IRecord ScreenSettings" extends="$unknown"4811 uuid=" 7811A5C6-11DB-4F9A-8FAE-1CE238AB4B73"4810 name="IRecordingScreenSettings" extends="$unknown" 4811 uuid="41E56E39-C36D-440E-867B-FB80C4CE6FAA" 4812 4812 wsmap="managed" 4813 4813 > 4814 4814 4815 4815 <desc> 4816 The IRecord ScreenSettings interface represents recording settings of a4817 single virtual screen. This is used only in the <link to="IRecord Settings" />4816 The IRecordingScreenSettings interface represents recording settings of a 4817 single virtual screen. This is used only in the <link to="IRecordingSettings" /> 4818 4818 interface. 4819 4819 </desc> … … 4822 4822 <desc>Returns whether a particular recording feature is enabled for this 4823 4823 screen or not.</desc> 4824 <param name="feature" type="Record Feature" dir="in">4824 <param name="feature" type="RecordingFeature" dir="in"> 4825 4825 <desc>Feature to check for.</desc> 4826 4826 </param> … … 4847 4847 </attribute> 4848 4848 4849 <attribute name="destination" type="Record Destination">4849 <attribute name="destination" type="RecordingDestination"> 4850 4850 <desc>This setting determines the recording destination for this 4851 4851 screen.</desc> … … 4906 4906 </attribute> 4907 4907 4908 <attribute name="audioCodec" type="Record AudioCodec">4908 <attribute name="audioCodec" type="RecordingAudioCodec"> 4909 4909 <desc> 4910 4910 Determines the audio codec to use for encoding the … … 4937 4937 </attribute> 4938 4938 4939 <attribute name="videoCodec" type="Record VideoCodec">4939 <attribute name="videoCodec" type="RecordingVideoCodec"> 4940 4940 <desc> 4941 4941 Determines the video codec to use for encoding the recorded video data. … … 4982 4982 </attribute> 4983 4983 4984 <attribute name="videoScalingMethod" type="Record VideoScalingMethod">4984 <attribute name="videoScalingMethod" type="RecordingVideoScalingMethod"> 4985 4985 <desc> 4986 4986 Determines the video scaling method to use. … … 4992 4992 4993 4993 <interface 4994 name="IRecord Settings" extends="$unknown"4995 uuid=" 7202BACF-2BFE-46AA-AEF6-69B32FDDE236"4994 name="IRecordingSettings" extends="$unknown" 4995 uuid="D88F2A5A-47C7-4A3F-AAE1-1B516817DB41" 4996 4996 wsmap="managed" 4997 4997 > 4998 4998 4999 4999 <desc> 5000 The IRecord Settings interface represents recording settings of the virtual5000 The IRecordingSettings interface represents recording settings of the virtual 5001 5001 machine. This is used only in the <link to="IMachine::recordSettings" /> 5002 5002 attribute. … … 5008 5008 <desc>Screen ID to retrieve recording screen settings for.</desc> 5009 5009 </param> 5010 <param name="recordScreenSettings" type="IRecord ScreenSettings" dir="return">5010 <param name="recordScreenSettings" type="IRecordingScreenSettings" dir="return"> 5011 5011 <desc>Recording screen settings for the requested screen.</desc> 5012 5012 </param> … … 5019 5019 </attribute> 5020 5020 5021 <attribute name="screens" type="IRecord ScreenSettings" readonly="yes" safearray="yes">5021 <attribute name="screens" type="IRecordingScreenSettings" readonly="yes" safearray="yes"> 5022 5022 <desc> 5023 5023 This setting returns an array for recording settings of all configured … … 5221 5221 <interface 5222 5222 name="IMachine" extends="$unknown" 5223 uuid=" 7210DD84-2301-4C3B-8DB3-72DEBD3B91F9"5223 uuid="BD65ADC6-7F47-4F69-B881-96EA06CF9924" 5224 5224 wsmap="managed" 5225 5225 wrap-hint-server-addinterfaces="IInternalMachineControl" … … 5506 5506 </attribute> 5507 5507 5508 <attribute name="record Settings" type="IRecordSettings" readonly="yes">5508 <attribute name="recordingSettings" type="IRecordingSettings" readonly="yes"> 5509 5509 <desc>Object containing all recording settings.</desc> 5510 5510 </attribute> … … 20652 20652 <interface 20653 20653 name="IInternalSessionControl" extends="$unknown" 20654 uuid=" 5CEB7885-5DD5-48E4-96C1-EEF4F4FD9FAC"20654 uuid="DE773CFC-B679-4225-8EAE-938D294B73D2" 20655 20655 internal="yes" 20656 20656 wsmap="suppress" … … 20952 20952 </method> 20953 20953 20954 <method name="onRecord Change">20954 <method name="onRecordingChange"> 20955 20955 <desc> 20956 20956 Triggered when recording settings have changed. … … 22777 22777 <enum 22778 22778 name="VBoxEventType" 22779 uuid=" b2ddb312-2f9e-4e69-98df-7235e43b2149"22779 uuid="822087CA-4703-49E4-B20D-C6D794E67969" 22780 22780 > 22781 22781 … … 23136 23136 </desc> 23137 23137 </const> 23138 <const name="OnRecord Changed" value="91">23139 <desc> 23140 See <link to="IRecord ChangedEvent">IRecordChangeEvent</link>.23138 <const name="OnRecordingChanged" value="91"> 23139 <desc> 23140 See <link to="IRecordingChangedEvent">IRecordingChangeEvent</link>. 23141 23141 </desc> 23142 23142 </const> … … 24523 24523 24524 24524 <interface 24525 name="IRecord ChangedEvent" extends="IEvent"24526 uuid=" DA51AA0C-E642-4AA0-9DDD-B07E2911188B"24527 wsmap="managed" autogen="VBoxEvent" id="OnRecord Changed"24525 name="IRecordingChangedEvent" extends="IEvent" 24526 uuid="B5DDB370-08A7-4C8F-910D-47AABD67253A" 24527 wsmap="managed" autogen="VBoxEvent" id="OnRecordingChanged" 24528 24528 > 24529 24529 <desc> -
trunk/src/VBox/Main/include/ConsoleImpl.h
r75354 r75361 145 145 void i_recordingDestroy(void); 146 146 int i_recordingEnable(BOOL fEnable, util::AutoWriteLock *pAutoLock); 147 int i_recordingGetSettings(settings::Record Settings &Settings);147 int i_recordingGetSettings(settings::RecordingSettings &Settings); 148 148 int i_recordingStart(void); 149 149 int i_recordingStop(void); … … 179 179 HRESULT i_onDnDModeChange(DnDMode_T aDnDMode); 180 180 HRESULT i_onVRDEServerChange(BOOL aRestart); 181 HRESULT i_onRecord Change();181 HRESULT i_onRecordingChange(); 182 182 HRESULT i_onUSBControllerChange(); 183 183 HRESULT i_onSharedFolderChange(BOOL aGlobal); -
trunk/src/VBox/Main/include/DrvAudioRec.h
r75354 r75361 45 45 public: 46 46 47 int applyConfiguration(const settings::Record Settings &Settings);47 int applyConfiguration(const settings::RecordingSettings &Settings); 48 48 49 49 public: … … 61 61 struct DRVAUDIORECORDING *mpDrv; 62 62 /** Capturing configuration used for configuring the driver. */ 63 struct settings::Record Settings mVideoRecCfg;63 struct settings::RecordingSettings mVideoRecCfg; 64 64 }; 65 65 -
trunk/src/VBox/Main/include/MachineImpl.h
r75341 r75361 32 32 #include "ParallelPortImpl.h" 33 33 #include "BIOSSettingsImpl.h" 34 #include "Record SettingsImpl.h"34 #include "RecordingSettingsImpl.h" 35 35 #include "StorageControllerImpl.h" // required for MachineImpl.h to compile on Windows 36 36 #include "USBControllerImpl.h" // required for MachineImpl.h to compile on Windows … … 266 266 GraphicsControllerType_T mGraphicsControllerType; 267 267 ULONG mVRAMSize; 268 settings::Record Settings mRecordSettings;268 settings::RecordingSettings mRecordSettings; 269 269 ULONG mMonitorCount; 270 270 BOOL mHWVirtExEnabled; … … 777 777 const ComObjPtr<USBDeviceFilters> mUSBDeviceFilters; 778 778 const ComObjPtr<BIOSSettings> mBIOSSettings; 779 const ComObjPtr<Record Settings> mRecordSettings;779 const ComObjPtr<RecordingSettings> mRecordingSettings; 780 780 const ComObjPtr<BandwidthControl> mBandwidthControl; 781 781 … … 825 825 826 826 friend class Appliance; 827 friend class Record Settings;828 friend class Record ScreenSettings;827 friend class RecordingSettings; 828 friend class RecordingScreenSettings; 829 829 friend class SessionMachine; 830 830 friend class SnapshotMachine; … … 880 880 HRESULT setMonitorCount(ULONG aMonitorCount); 881 881 HRESULT getBIOSSettings(ComPtr<IBIOSSettings> &aBIOSSettings); 882 HRESULT getRecord Settings(ComPtr<IRecordSettings> &aRecordSettings);882 HRESULT getRecordingSettings(ComPtr<IRecordingSettings> &aRecordingSettings); 883 883 HRESULT getFirmwareType(FirmwareType_T *aFirmwareType); 884 884 HRESULT setFirmwareType(FirmwareType_T aFirmwareType); -
trunk/src/VBox/Main/include/Recording.h
r75354 r75361 41 41 RecordingContext(Console *pConsole); 42 42 43 RecordingContext(Console *pConsole, const settings::Record Settings &a_Settings);43 RecordingContext(Console *pConsole, const settings::RecordingSettings &a_Settings); 44 44 45 45 virtual ~RecordingContext(void); … … 47 47 public: 48 48 49 const settings::Record Settings &GetConfig(void) const;49 const settings::RecordingSettings &GetConfig(void) const; 50 50 RecordingStream *GetStream(unsigned uScreen) const; 51 51 size_t GetStreamCount(void) const; 52 52 53 int Create(const settings::Record Settings &a_Settings);53 int Create(const settings::RecordingSettings &a_Settings); 54 54 int Destroy(void); 55 55 … … 64 64 public: 65 65 66 bool IsFeatureEnabled(Record Feature_T enmFeature) const;66 bool IsFeatureEnabled(RecordingFeature_T enmFeature) const; 67 67 bool IsReady(void) const; 68 68 bool IsReady(uint32_t uScreen, uint64_t uTimeStampMs) const; … … 72 72 protected: 73 73 74 int createInternal(const settings::Record Settings &a_Settings);74 int createInternal(const settings::RecordingSettings &a_Settings); 75 75 int startInternal(void); 76 76 int stopInternal(void); … … 104 104 Console *pConsole; 105 105 /** Used recording configuration. */ 106 settings::Record Settings Settings;106 settings::RecordingSettings Settings; 107 107 /** The current state. */ 108 108 RECORDINGSTS enmState; -
trunk/src/VBox/Main/include/RecordingScreenSettingsImpl.h
r75360 r75361 3 3 /** @file 4 4 * 5 * VirtualBox COM class implementation - Capturesettings of one virtual screen.5 * VirtualBox COM class implementation - Recording settings of one virtual screen. 6 6 */ 7 7 … … 18 18 */ 19 19 20 #ifndef ____H_Record ScreenSettings21 #define ____H_Record ScreenSettings20 #ifndef ____H_RecordingScreenSettings 21 #define ____H_RecordingScreenSettings 22 22 23 #include "Record ScreenSettingsWrap.h"23 #include "RecordingScreenSettingsWrap.h" 24 24 25 class Record Settings;25 class RecordingSettings; 26 26 27 27 namespace settings 28 28 { 29 struct Record ScreenSettings;29 struct RecordingScreenSettings; 30 30 } 31 31 32 class ATL_NO_VTABLE Record ScreenSettings :33 public Record ScreenSettingsWrap32 class ATL_NO_VTABLE RecordingScreenSettings : 33 public RecordingScreenSettingsWrap 34 34 { 35 35 public: 36 36 37 DECLARE_EMPTY_CTOR_DTOR(Record ScreenSettings)37 DECLARE_EMPTY_CTOR_DTOR(RecordingScreenSettings) 38 38 39 39 HRESULT FinalConstruct(); … … 41 41 42 42 // public initializer/uninitializer for internal purposes only 43 HRESULT init(Record Settings *aParent, uint32_t uScreenId, const settings::RecordScreenSettings& data);44 HRESULT init(Record Settings *aParent, RecordScreenSettings *that);45 HRESULT initCopy(Record Settings *aParent, RecordScreenSettings *that);43 HRESULT init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& data); 44 HRESULT init(RecordingSettings *aParent, RecordingScreenSettings *that); 45 HRESULT initCopy(RecordingSettings *aParent, RecordingScreenSettings *that); 46 46 void uninit(); 47 47 48 48 // public methods only for internal purposes 49 HRESULT i_loadSettings(const settings::Record ScreenSettings &data);50 HRESULT i_saveSettings(settings::Record ScreenSettings &data);49 HRESULT i_loadSettings(const settings::RecordingScreenSettings &data); 50 HRESULT i_saveSettings(settings::RecordingScreenSettings &data); 51 51 52 52 void i_rollback(); 53 53 void i_commit(); 54 void i_copyFrom(Record ScreenSettings *aThat);54 void i_copyFrom(RecordingScreenSettings *aThat); 55 55 void i_applyDefaults(); 56 56 57 57 private: 58 58 59 // wrapped IRecord ScreenSettings methods60 HRESULT isFeatureEnabled(Record Feature_T aFeature, BOOL *aEnabled);59 // wrapped IRecordingScreenSettings methods 60 HRESULT isFeatureEnabled(RecordingFeature_T aFeature, BOOL *aEnabled); 61 61 62 // wrapped IRecord ScreenSettings properties62 // wrapped IRecordingScreenSettings properties 63 63 HRESULT getId(ULONG *id); 64 64 HRESULT getEnabled(BOOL *enabled); … … 66 66 HRESULT getFeatures(ULONG *aFeatures); 67 67 HRESULT setFeatures(ULONG aFeatures); 68 HRESULT getDestination(Record Destination_T *aDestination);69 HRESULT setDestination(Record Destination_T aDestination);68 HRESULT getDestination(RecordingDestination_T *aDestination); 69 HRESULT setDestination(RecordingDestination_T aDestination); 70 70 71 71 HRESULT getFileName(com::Utf8Str &aFileName); … … 78 78 HRESULT setOptions(const com::Utf8Str &aOptions); 79 79 80 HRESULT getAudioCodec(Record AudioCodec_T *aCodec);81 HRESULT setAudioCodec(Record AudioCodec_T aCodec);80 HRESULT getAudioCodec(RecordingAudioCodec_T *aCodec); 81 HRESULT setAudioCodec(RecordingAudioCodec_T aCodec); 82 82 HRESULT getAudioHz(ULONG *aHz); 83 83 HRESULT setAudioHz(ULONG aHz); … … 87 87 HRESULT setAudioChannels(ULONG aChannels); 88 88 89 HRESULT getVideoCodec(Record VideoCodec_T *aCodec);90 HRESULT setVideoCodec(Record VideoCodec_T aCodec);89 HRESULT getVideoCodec(RecordingVideoCodec_T *aCodec); 90 HRESULT setVideoCodec(RecordingVideoCodec_T aCodec); 91 91 HRESULT getVideoWidth(ULONG *aVideoWidth); 92 92 HRESULT setVideoWidth(ULONG aVideoWidth); … … 99 99 HRESULT getVideoFPS(ULONG *aVideoFPS); 100 100 HRESULT setVideoFPS(ULONG aVideoFPS); 101 HRESULT getVideoScalingMethod(Record VideoScalingMethod_T *aMode);102 HRESULT setVideoScalingMethod(Record VideoScalingMethod_T aMode);101 HRESULT getVideoScalingMethod(RecordingVideoScalingMethod_T *aMode); 102 HRESULT setVideoScalingMethod(RecordingVideoScalingMethod_T aMode); 103 103 104 104 private: … … 113 113 }; 114 114 115 #endif // ____H_Record ScreenSettings115 #endif // ____H_RecordingScreenSettings 116 116 -
trunk/src/VBox/Main/include/RecordingSettingsImpl.h
r75360 r75361 21 21 #define ____H_RecordSettings 22 22 23 #include "Record SettingsWrap.h"23 #include "RecordingSettingsWrap.h" 24 24 25 25 namespace settings 26 26 { 27 struct Record Settings;28 struct Record ScreenSettings;27 struct RecordingSettings; 28 struct RecordingScreenSettings; 29 29 } 30 30 31 class Record ScreenSettings;31 class RecordingScreenSettings; 32 32 33 class ATL_NO_VTABLE Record Settings :34 public Record SettingsWrap33 class ATL_NO_VTABLE RecordingSettings : 34 public RecordingSettingsWrap 35 35 { 36 36 public: 37 37 38 DECLARE_EMPTY_CTOR_DTOR(Record Settings)38 DECLARE_EMPTY_CTOR_DTOR(RecordingSettings) 39 39 40 40 HRESULT FinalConstruct(); … … 43 43 // public initializer/uninitializer for internal purposes only 44 44 HRESULT init(Machine *parent); 45 HRESULT init(Machine *parent, Record Settings *that);46 HRESULT initCopy(Machine *parent, Record Settings *that);45 HRESULT init(Machine *parent, RecordingSettings *that); 46 HRESULT initCopy(Machine *parent, RecordingSettings *that); 47 47 void uninit(); 48 48 49 49 // public methods only for internal purposes 50 HRESULT i_loadSettings(const settings::Record Settings &data);51 HRESULT i_saveSettings(settings::Record Settings &data);50 HRESULT i_loadSettings(const settings::RecordingSettings &data); 51 HRESULT i_saveSettings(settings::RecordingSettings &data); 52 52 53 53 void i_rollback(); 54 54 void i_commit(); 55 void i_copyFrom(Record Settings *aThat);55 void i_copyFrom(RecordingSettings *aThat); 56 56 void i_applyDefaults(void); 57 57 … … 63 63 64 64 /** Map of screen settings objects. The key specifies the screen ID. */ 65 typedef std::map <uint32_t, ComObjPtr<Record ScreenSettings> > RecordScreenSettingsMap;65 typedef std::map <uint32_t, ComObjPtr<RecordingScreenSettings> > RecordScreenSettingsMap; 66 66 67 67 void i_reset(void); 68 68 int i_syncToMachineDisplays(void); 69 int i_createScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId, const settings::Record ScreenSettings &data);69 int i_createScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId, const settings::RecordingScreenSettings &data); 70 70 int i_destroyScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId); 71 71 int i_destroyAllScreenObj(RecordScreenSettingsMap &screenSettingsMap); … … 73 73 private: 74 74 75 // wrapped IRecord Settings properties75 // wrapped IRecordingSettings properties 76 76 HRESULT getEnabled(BOOL *enabled); 77 77 HRESULT setEnabled(BOOL enable); 78 HRESULT getScreens(std::vector<ComPtr<IRecord ScreenSettings> > &aRecordScreenSettings);78 HRESULT getScreens(std::vector<ComPtr<IRecordingScreenSettings> > &aRecordScreenSettings); 79 79 80 // wrapped IRecord Settings methods81 HRESULT getScreenSettings(ULONG uScreenId, ComPtr<IRecord ScreenSettings> &aRecordScreenSettings);80 // wrapped IRecordingSettings methods 81 HRESULT getScreenSettings(ULONG uScreenId, ComPtr<IRecordingScreenSettings> &aRecordScreenSettings); 82 82 83 83 private: -
trunk/src/VBox/Main/include/RecordingStream.h
r75355 r75361 111 111 RecordingStream(RecordingContext *pCtx); 112 112 113 RecordingStream(RecordingContext *pCtx, uint32_t uScreen, const settings::Record ScreenSettings &Settings);113 RecordingStream(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings); 114 114 115 115 virtual ~RecordingStream(void); … … 117 117 public: 118 118 119 int Init(RecordingContext *pCtx, uint32_t uScreen, const settings::Record ScreenSettings &Settings);119 int Init(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings); 120 120 int Uninit(void); 121 121 … … 124 124 uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData, uint64_t uTimeStampMs); 125 125 126 const settings::Record ScreenSettings &GetConfig(void) const;126 const settings::RecordingScreenSettings &GetConfig(void) const; 127 127 bool IsLimitReached(uint64_t tsNowMs) const; 128 128 bool IsReady(void) const; … … 130 130 protected: 131 131 132 int open(const settings::Record ScreenSettings &Settings);132 int open(const settings::RecordingScreenSettings &Settings); 133 133 int close(void); 134 134 135 int initInternal(RecordingContext *pCtx, uint32_t uScreen, const settings::Record ScreenSettings &Settings);135 int initInternal(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings); 136 136 int uninitInternal(void); 137 137 … … 205 205 } Video; 206 206 207 settings::Record ScreenSettings ScreenSettings;207 settings::RecordingScreenSettings ScreenSettings; 208 208 /** Common set of recording (data) blocks, needed for 209 209 * multiplexing to all recording streams. */ -
trunk/src/VBox/Main/include/SessionImpl.h
r75341 r75361 102 102 HRESULT onCPUExecutionCapChange(ULONG aExecutionCap); 103 103 HRESULT onVRDEServerChange(BOOL aRestart); 104 HRESULT onRecord Change();104 HRESULT onRecordingChange(); 105 105 HRESULT onUSBControllerChange(); 106 106 HRESULT onSharedFolderChange(BOOL aGlobal); -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r75354 r75361 5632 5632 # ifdef VBOX_WITH_AUDIO_RECORDING 5633 5633 /* Attach the video recording audio driver if required. */ 5634 if ( Recording.mpCtx->IsFeatureEnabled(Record Feature_Audio)5634 if ( Recording.mpCtx->IsFeatureEnabled(RecordingFeature_Audio) 5635 5635 && Recording.mAudioRec) 5636 5636 { … … 5667 5667 #endif /* VBOX_WITH_RECORDING */ 5668 5668 5669 HRESULT Console::i_onRecord Change()5669 HRESULT Console::i_onRecordingChange() 5670 5670 { 5671 5671 AutoCaller autoCaller(this); … … 5680 5680 if (ptrVM.isOk()) 5681 5681 { 5682 ComPtr<IRecord Settings> RecordSettings;5683 rc = mMachine->COMGETTER(Record Settings)(RecordSettings.asOutParam());5682 ComPtr<IRecordingSettings> recordingSettings; 5683 rc = mMachine->COMGETTER(RecordingSettings)(recordingSettings.asOutParam()); 5684 5684 AssertComRCReturnRC(rc); 5685 5685 5686 5686 BOOL fEnabled; 5687 rc = RecordSettings->COMGETTER(Enabled)(&fEnabled);5687 rc = recordingSettings->COMGETTER(Enabled)(&fEnabled); 5688 5688 AssertComRCReturnRC(rc); 5689 5689 … … 5692 5692 { 5693 5693 alock.release(); 5694 fireRecord ChangedEvent(mEventSource);5694 fireRecordingChangedEvent(mEventSource); 5695 5695 } 5696 5696 … … 6882 6882 6883 6883 if ( Recording.mpCtx->IsStarted() 6884 && Recording.mpCtx->IsFeatureEnabled(Record Feature_Audio))6884 && Recording.mpCtx->IsFeatureEnabled(RecordingFeature_Audio)) 6885 6885 { 6886 6886 return Recording.mpCtx->SendAudioFrame(pvData, cbData, uTimestampMs); … … 6892 6892 6893 6893 #ifdef VBOX_WITH_RECORDING 6894 int Console::i_recordingGetSettings(settings::Record Settings &Settings)6894 int Console::i_recordingGetSettings(settings::RecordingSettings &Settings) 6895 6895 { 6896 6896 Assert(mMachine.isNotNull()); … … 6898 6898 Settings.applyDefaults(); 6899 6899 6900 ComPtr<IRecord Settings> pRecordSettings;6901 HRESULT hrc = mMachine->COMGETTER(Record Settings)(pRecordSettings.asOutParam());6900 ComPtr<IRecordingSettings> pRecordSettings; 6901 HRESULT hrc = mMachine->COMGETTER(RecordingSettings)(pRecordSettings.asOutParam()); 6902 6902 AssertComRCReturn(hrc, VERR_INVALID_PARAMETER); 6903 6903 … … 6907 6907 Settings.fEnabled = RT_BOOL(fTemp); 6908 6908 6909 SafeIfaceArray<IRecord ScreenSettings> paRecordingScreens;6909 SafeIfaceArray<IRecordingScreenSettings> paRecordingScreens; 6910 6910 hrc = pRecordSettings->COMGETTER(Screens)(ComSafeArrayAsOutParam(paRecordingScreens)); 6911 6911 AssertComRCReturn(hrc, VERR_INVALID_PARAMETER); … … 6913 6913 for (unsigned long i = 0; i < (unsigned long)paRecordingScreens.size(); ++i) 6914 6914 { 6915 settings::Record ScreenSettings RecordScreenSettings;6916 ComPtr<IRecord ScreenSettings> pRecordScreenSettings = paRecordingScreens[i];6915 settings::RecordingScreenSettings RecordScreenSettings; 6916 ComPtr<IRecordingScreenSettings> pRecordScreenSettings = paRecordingScreens[i]; 6917 6917 6918 6918 hrc = pRecordScreenSettings->COMGETTER(Enabled)(&fTemp); … … 6971 6971 } 6972 6972 6973 settings::Record Settings Settings;6973 settings::RecordingSettings Settings; 6974 6974 rc = i_recordingGetSettings(Settings); 6975 6975 if (RT_SUCCESS(rc)) … … 7043 7043 mDisplay->i_recordingScreenChanged(uScreen); 7044 7044 7045 ComPtr<IRecord Settings> pRecordSettings;7046 HRESULT hrc = mMachine->COMGETTER(Record Settings)(pRecordSettings.asOutParam());7045 ComPtr<IRecordingSettings> pRecordSettings; 7046 HRESULT hrc = mMachine->COMGETTER(RecordingSettings)(pRecordSettings.asOutParam()); 7047 7047 ComAssertComRC(hrc); 7048 7048 hrc = pRecordSettings->COMSETTER(Enabled)(false); … … 10146 10146 10147 10147 #ifdef VBOX_WITH_RECORDING 10148 ComPtr<IRecord Settings> RecordSettings;10149 rc = pConsole->mMachine->COMGETTER(Record Settings)(RecordSettings.asOutParam());10148 ComPtr<IRecordingSettings> recordingSettings; 10149 rc = pConsole->mMachine->COMGETTER(RecordingSettings)(recordingSettings.asOutParam()); 10150 10150 AssertComRCReturnVoid(rc); 10151 10151 10152 BOOL f CaptureEnabled;10153 rc = RecordSettings->COMGETTER(Enabled)(&fCaptureEnabled);10152 BOOL fRecordingEnabled; 10153 rc = recordingSettings->COMGETTER(Enabled)(&fRecordingEnabled); 10154 10154 AssertComRCReturnVoid(rc); 10155 10155 10156 if (f CaptureEnabled)10157 { 10158 int vrc2 = pConsole->i_recordingEnable(f CaptureEnabled, &alock);10156 if (fRecordingEnabled) 10157 { 10158 int vrc2 = pConsole->i_recordingEnable(fRecordingEnabled, &alock); 10159 10159 if (RT_SUCCESS(vrc2)) 10160 10160 { 10161 fireRecord ChangedEvent(pConsole->mEventSource);10161 fireRecordingChangedEvent(pConsole->mEventSource); 10162 10162 } 10163 10163 else -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r75354 r75361 3393 3393 if ( pCtx 3394 3394 && pCtx->IsStarted() 3395 && pCtx->IsFeatureEnabled(Record Feature_Video))3395 && pCtx->IsFeatureEnabled(RecordingFeature_Video)) 3396 3396 { 3397 3397 do { … … 3859 3859 if ( pCtx 3860 3860 && pCtx->IsStarted() 3861 && pCtx->IsFeatureEnabled(Record Feature_Video))3861 && pCtx->IsFeatureEnabled(RecordingFeature_Video)) 3862 3862 { 3863 3863 int rc2 = pCtx->SendVideoFrame(uScreen, x, y, -
trunk/src/VBox/Main/src-client/DrvAudioRec.cpp
r75354 r75361 1088 1088 * @param Settings Capturing configuration to apply. 1089 1089 */ 1090 int AudioVideoRec::applyConfiguration(const settings::Record Settings &Settings)1090 int AudioVideoRec::applyConfiguration(const settings::RecordingSettings &Settings) 1091 1091 { 1092 1092 /** @todo Do some validation here. */ … … 1108 1108 /** @todo For now we're using the configuration of the first screen here audio-wise. */ 1109 1109 Assert(mVideoRecCfg.mapScreens.size() >= 1); 1110 const settings::Record ScreenSettings &Screen0Settings = mVideoRecCfg.mapScreens[0];1110 const settings::RecordingScreenSettings &Screen0Settings = mVideoRecCfg.mapScreens[0]; 1111 1111 1112 1112 rc = CFGMR3InsertInteger(pLunCfg, "ContainerType", (uint64_t)Screen0Settings.enmDest); 1113 1113 AssertRCReturn(rc, rc); 1114 if (Screen0Settings.enmDest == Record Destination_File)1114 if (Screen0Settings.enmDest == RecordingDestination_File) 1115 1115 { 1116 1116 rc = CFGMR3InsertString(pLunCfg, "ContainerFileName", Utf8Str(Screen0Settings.File.strName).c_str()); -
trunk/src/VBox/Main/src-client/Recording.cpp
r75355 r75361 94 94 , enmState(RECORDINGSTS_UNINITIALIZED) { } 95 95 96 RecordingContext::RecordingContext(Console *a_pConsole, const settings::Record Settings &a_Settings)96 RecordingContext::RecordingContext(Console *a_pConsole, const settings::RecordingSettings &a_Settings) 97 97 : pConsole(a_pConsole) 98 98 , enmState(RECORDINGSTS_UNINITIALIZED) … … 177 177 * @param a_Settings Capture settings to use for context creation. 178 178 */ 179 int RecordingContext::createInternal(const settings::Record Settings &a_Settings)179 int RecordingContext::createInternal(const settings::RecordingSettings &a_Settings) 180 180 { 181 181 int rc = RTCritSectInit(&this->CritSect); … … 183 183 return rc; 184 184 185 settings::Record ScreenMap::const_iterator itScreen = a_Settings.mapScreens.begin();185 settings::RecordingScreenMap::const_iterator itScreen = a_Settings.mapScreens.begin(); 186 186 while (itScreen != a_Settings.mapScreens.end()) 187 187 { … … 318 318 } 319 319 320 const settings::Record Settings &RecordingContext::GetConfig(void) const320 const settings::RecordingSettings &RecordingContext::GetConfig(void) const 321 321 { 322 322 return this->Settings; … … 355 355 } 356 356 357 int RecordingContext::Create(const settings::Record Settings &a_Settings)357 int RecordingContext::Create(const settings::RecordingSettings &a_Settings) 358 358 { 359 359 return createInternal(a_Settings); … … 375 375 } 376 376 377 bool RecordingContext::IsFeatureEnabled(Record Feature_T enmFeature) const377 bool RecordingContext::IsFeatureEnabled(RecordingFeature_T enmFeature) const 378 378 { 379 379 RecordingStreams::const_iterator itStream = this->vecStreams.begin(); -
trunk/src/VBox/Main/src-client/RecordingStream.cpp
r75354 r75361 51 51 } 52 52 53 RecordingStream::RecordingStream(RecordingContext *a_pCtx, uint32_t uScreen, const settings::Record ScreenSettings &Settings)53 RecordingStream::RecordingStream(RecordingContext *a_pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings) 54 54 : enmState(RECORDINGSTREAMSTATE_UNINITIALIZED) 55 55 , tsStartMs(0) … … 74 74 * @returns IPRT status code. 75 75 */ 76 int RecordingStream::open(const settings::Record ScreenSettings &Settings)76 int RecordingStream::open(const settings::RecordingScreenSettings &Settings) 77 77 { 78 78 /* Sanity. */ 79 Assert(Settings.enmDest != Record Destination_None);79 Assert(Settings.enmDest != RecordingDestination_None); 80 80 81 81 int rc; … … 83 83 switch (Settings.enmDest) 84 84 { 85 case Record Destination_File:85 case RecordingDestination_File: 86 86 { 87 87 Assert(Settings.File.strName.isNotEmpty()); … … 209 209 if (value.compare("false", Utf8Str::CaseInsensitive) == 0) 210 210 { 211 this->ScreenSettings.featureMap[Record Feature_Video] = false;211 this->ScreenSettings.featureMap[RecordingFeature_Video] = false; 212 212 #ifdef VBOX_WITH_AUDIO_RECORDING 213 213 LogRel(("Recording: Only audio will be recorded\n")); … … 220 220 if (value.compare("true", Utf8Str::CaseInsensitive) == 0) 221 221 { 222 this->ScreenSettings.featureMap[Record Feature_Audio] = true;222 this->ScreenSettings.featureMap[RecordingFeature_Audio] = true; 223 223 } 224 224 else … … 255 255 } 256 256 257 const settings::Record ScreenSettings &RecordingStream::GetConfig(void) const257 const settings::RecordingScreenSettings &RecordingStream::GetConfig(void) const 258 258 { 259 259 return this->ScreenSettings; … … 277 277 } 278 278 279 if (this->ScreenSettings.enmDest == Record Destination_File)279 if (this->ScreenSettings.enmDest == RecordingDestination_File) 280 280 { 281 281 … … 661 661 * @param Settings Capturing configuration to use for initialization. 662 662 */ 663 int RecordingStream::Init(RecordingContext *a_pCtx, uint32_t uScreen, const settings::Record ScreenSettings &Settings)663 int RecordingStream::Init(RecordingContext *a_pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings) 664 664 { 665 665 return initInternal(a_pCtx, uScreen, Settings); … … 674 674 * @param Settings Capturing configuration to use for initialization. 675 675 */ 676 int RecordingStream::initInternal(RecordingContext *a_pCtx, uint32_t uScreen, const settings::Record ScreenSettings &Settings)676 int RecordingStream::initInternal(RecordingContext *a_pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings) 677 677 { 678 678 int rc = parseOptionsString(Settings.strOptions); … … 688 688 return rc; 689 689 690 const bool fVideoEnabled = Settings.isFeatureEnabled(Record Feature_Video);691 const bool fAudioEnabled = Settings.isFeatureEnabled(Record Feature_Audio);690 const bool fVideoEnabled = Settings.isFeatureEnabled(RecordingFeature_Video); 691 const bool fAudioEnabled = Settings.isFeatureEnabled(RecordingFeature_Audio); 692 692 693 693 if (fVideoEnabled) … … 699 699 switch (this->ScreenSettings.enmDest) 700 700 { 701 case Record Destination_File:701 case RecordingDestination_File: 702 702 { 703 703 const char *pszFile = this->ScreenSettings.File.strName.c_str(); … … 706 706 rc = File.pWEBM->OpenEx(pszFile, &this->File.hFile, 707 707 #ifdef VBOX_WITH_AUDIO_RECORDING 708 Settings.isFeatureEnabled(Record Feature_Audio)708 Settings.isFeatureEnabled(RecordingFeature_Audio) 709 709 ? WebMWriter::AudioCodec_Opus : WebMWriter::AudioCodec_None, 710 710 #else 711 711 WebMWriter::AudioCodec_None, 712 712 #endif 713 Settings.isFeatureEnabled(Record Feature_Video)713 Settings.isFeatureEnabled(RecordingFeature_Video) 714 714 ? WebMWriter::VideoCodec_VP8 : WebMWriter::VideoCodec_None); 715 715 if (RT_FAILURE(rc)) … … 814 814 switch (this->ScreenSettings.enmDest) 815 815 { 816 case Record Destination_File:816 case RecordingDestination_File: 817 817 { 818 818 if (this->File.pWEBM) … … 839 839 switch (this->ScreenSettings.enmDest) 840 840 { 841 case Record Destination_File:841 case RecordingDestination_File: 842 842 { 843 843 if (RTFileIsValid(this->File.hFile)) … … 891 891 return rc; 892 892 893 if (this->ScreenSettings.isFeatureEnabled(Record Feature_Video))893 if (this->ScreenSettings.isFeatureEnabled(RecordingFeature_Video)) 894 894 { 895 895 int rc2 = unitVideo(); … … 1025 1025 { 1026 1026 #ifdef VBOX_WITH_AUDIO_RECORDING 1027 if (this->ScreenSettings.isFeatureEnabled(Record Feature_Audio))1027 if (this->ScreenSettings.isFeatureEnabled(RecordingFeature_Audio)) 1028 1028 { 1029 1029 /* Sanity. */ -
trunk/src/VBox/Main/src-client/SessionImpl.cpp
r75341 r75361 725 725 } 726 726 727 HRESULT Session::onRecord Change()728 { 729 LogFlowThisFunc(("\n")); 730 731 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 732 AssertReturn(mState == SessionState_Locked, VBOX_E_INVALID_VM_STATE); 733 AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE); 734 #ifndef VBOX_COM_INPROC_API_CLIENT 735 AssertReturn(mConsole, VBOX_E_INVALID_OBJECT_STATE); 736 737 return mConsole->i_onRecord Change();727 HRESULT Session::onRecordingChange() 728 { 729 LogFlowThisFunc(("\n")); 730 731 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 732 AssertReturn(mState == SessionState_Locked, VBOX_E_INVALID_VM_STATE); 733 AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE); 734 #ifndef VBOX_COM_INPROC_API_CLIENT 735 AssertReturn(mConsole, VBOX_E_INVALID_OBJECT_STATE); 736 737 return mConsole->i_onRecordingChange(); 738 738 #else 739 739 return S_OK; -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r75341 r75361 359 359 360 360 /* Apply record defaults. */ 361 mRecord Settings->i_applyDefaults();361 mRecordingSettings->i_applyDefaults(); 362 362 363 363 /* Apply network adapters defaults */ … … 1940 1940 } 1941 1941 1942 HRESULT Machine::getRecord Settings(ComPtr<IRecordSettings> &aRecordSettings)1943 { 1944 /* mRecord Settings is constant during life time, no need to lock */1945 aRecord Settings = mRecordSettings;1942 HRESULT Machine::getRecordingSettings(ComPtr<IRecordingSettings> &aRecordingSettings) 1943 { 1944 /* mRecordingSettings is constant during life time, no need to lock */ 1945 aRecordingSettings = mRecordingSettings; 1946 1946 1947 1947 return S_OK; … … 8260 8260 8261 8261 /* create associated record settings object */ 8262 unconst(mRecord Settings).createObject();8263 mRecord Settings->init(this);8262 unconst(mRecordingSettings).createObject(); 8263 mRecordingSettings->init(this); 8264 8264 8265 8265 /* create an associated VRDE object (default is disabled) */ … … 8378 8378 } 8379 8379 8380 if (mRecord Settings)8381 { 8382 mRecord Settings->uninit();8383 unconst(mRecord Settings).setNull();8380 if (mRecordingSettings) 8381 { 8382 mRecordingSettings->uninit(); 8383 unconst(mRecordingSettings).setNull(); 8384 8384 } 8385 8385 … … 8898 8898 if (FAILED(rc)) return rc; 8899 8899 8900 /* Record settings */8901 rc = mRecord Settings->i_loadSettings(data.recordSettings);8900 /* Recording settings */ 8901 rc = mRecordingSettings->i_loadSettings(data.recordingSettings); 8902 8902 if (FAILED(rc)) return rc; 8903 8903 … … 10217 10217 if (FAILED(rc)) throw rc; 10218 10218 10219 /* Record settings (required) */10220 rc = mRecord Settings->i_saveSettings(data.recordSettings);10219 /* Recording settings (required) */ 10220 rc = mRecordingSettings->i_saveSettings(data.recordingSettings); 10221 10221 if (FAILED(rc)) throw rc; 10222 10222 … … 11723 11723 mBIOSSettings->i_rollback(); 11724 11724 11725 if (mRecord Settings && (mData->flModifications & IsModified_Record))11726 mRecord Settings->i_rollback();11725 if (mRecordingSettings && (mData->flModifications & IsModified_Record)) 11726 mRecordingSettings->i_rollback(); 11727 11727 11728 11728 if (mVRDEServer && (mData->flModifications & IsModified_VRDEServer)) … … 11836 11836 11837 11837 mBIOSSettings->i_commit(); 11838 mRecord Settings->i_commit();11838 mRecordingSettings->i_commit(); 11839 11839 mVRDEServer->i_commit(); 11840 11840 mAudioAdapter->i_commit(); … … 12089 12089 12090 12090 mBIOSSettings->i_copyFrom(aThat->mBIOSSettings); 12091 mRecord Settings->i_copyFrom(aThat->mRecordSettings);12091 mRecordingSettings->i_copyFrom(aThat->mRecordingSettings); 12092 12092 mVRDEServer->i_copyFrom(aThat->mVRDEServer); 12093 12093 mAudioAdapter->i_copyFrom(aThat->mAudioAdapter); … … 12463 12463 unconst(mBIOSSettings).createObject(); 12464 12464 mBIOSSettings->init(this, aMachine->mBIOSSettings); 12465 unconst(mRecord Settings).createObject();12466 mRecord Settings->init(this, aMachine->mRecordSettings);12465 unconst(mRecordingSettings).createObject(); 12466 mRecordingSettings->init(this, aMachine->mRecordingSettings); 12467 12467 /* create another VRDEServer object that will be mutable */ 12468 12468 unconst(mVRDEServer).createObject(); … … 14116 14116 return S_OK; 14117 14117 14118 return directControl->OnRecord Change();14118 return directControl->OnRecordingChange(); 14119 14119 } 14120 14120 … … 15051 15051 15052 15052 /* Initialize default record settings. */ 15053 mRecord Settings->i_applyDefaults();15053 mRecordingSettings->i_applyDefaults(); 15054 15054 15055 15055 /* Initialize default BIOS settings here */ -
trunk/src/VBox/Main/src-server/RecordingScreenSettingsImpl.cpp
r75360 r75361 2 2 /** @file 3 3 * 4 * VirtualBox COM class implementation - Capturesettings of one virtual screen.4 * VirtualBox COM class implementation - Recording settings of one virtual screen. 5 5 */ 6 6 … … 17 17 */ 18 18 19 #define LOG_GROUP LOG_GROUP_MAIN_RECORD SCREENSETTINGS19 #define LOG_GROUP LOG_GROUP_MAIN_RECORDINGSCREENSETTINGS 20 20 #include "LoggingNew.h" 21 21 22 #include "Record ScreenSettingsImpl.h"23 #include "Record SettingsImpl.h"22 #include "RecordingScreenSettingsImpl.h" 23 #include "RecordingSettingsImpl.h" 24 24 #include "MachineImpl.h" 25 25 … … 38 38 //////////////////////////////////////////////////////////////////////////////// 39 39 40 struct Record ScreenSettings::Data40 struct RecordingScreenSettings::Data 41 41 { 42 42 Data() … … 44 44 { } 45 45 46 Record Settings * const pParent;47 ComObjPtr<Record ScreenSettings> pPeer;48 uint32_t uScreenId;46 RecordingSettings * const pParent; 47 ComObjPtr<RecordingScreenSettings> pPeer; 48 uint32_t uScreenId; 49 49 50 50 // use the XML settings structure in the members for simplicity 51 Backupable<settings::Record ScreenSettings> bd;51 Backupable<settings::RecordingScreenSettings> bd; 52 52 }; 53 53 … … 55 55 ///////////////////////////////////////////////////////////////////////////// 56 56 57 DEFINE_EMPTY_CTOR_DTOR(Record ScreenSettings)58 59 HRESULT Record ScreenSettings::FinalConstruct()57 DEFINE_EMPTY_CTOR_DTOR(RecordingScreenSettings) 58 59 HRESULT RecordingScreenSettings::FinalConstruct() 60 60 { 61 61 return BaseFinalConstruct(); 62 62 } 63 63 64 void Record ScreenSettings::FinalRelease()64 void RecordingScreenSettings::FinalRelease() 65 65 { 66 66 uninit(); … … 76 76 * @returns COM result indicator 77 77 */ 78 HRESULT Record ScreenSettings::init(RecordSettings *aParent, uint32_t uScreenId, const settings::RecordScreenSettings& data)78 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& data) 79 79 { 80 80 LogFlowThisFuncEnter(); … … 123 123 * it shares data with is destroyed. 124 124 */ 125 HRESULT Record ScreenSettings::init(RecordSettings *aParent, RecordScreenSettings *that)125 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, RecordingScreenSettings *that) 126 126 { 127 127 LogFlowThisFuncEnter(); … … 166 166 * of the original object passed as an argument. 167 167 */ 168 HRESULT Record ScreenSettings::initCopy(RecordSettings *aParent, RecordScreenSettings *that)168 HRESULT RecordingScreenSettings::initCopy(RecordingSettings *aParent, RecordingScreenSettings *that) 169 169 { 170 170 LogFlowThisFuncEnter(); … … 208 208 * Called either from FinalRelease() or by the parent when it gets destroyed. 209 209 */ 210 void Record ScreenSettings::uninit()210 void RecordingScreenSettings::uninit() 211 211 { 212 212 LogFlowThisFuncEnter(); … … 228 228 } 229 229 230 HRESULT Record ScreenSettings::isFeatureEnabled(RecordFeature_T aFeature, BOOL *aEnabled)231 { 232 AutoCaller autoCaller(this); 233 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 234 235 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 236 237 settings::Record FeatureMap::const_iterator itFeature = m->bd->featureMap.find(aFeature);230 HRESULT RecordingScreenSettings::isFeatureEnabled(RecordingFeature_T aFeature, BOOL *aEnabled) 231 { 232 AutoCaller autoCaller(this); 233 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 234 235 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 236 237 settings::RecordingFeatureMap::const_iterator itFeature = m->bd->featureMap.find(aFeature); 238 238 239 239 *aEnabled = ( itFeature != m->bd->featureMap.end() … … 243 243 } 244 244 245 HRESULT Record ScreenSettings::getId(ULONG *id)245 HRESULT RecordingScreenSettings::getId(ULONG *id) 246 246 { 247 247 AutoCaller autoCaller(this); … … 255 255 } 256 256 257 HRESULT Record ScreenSettings::getEnabled(BOOL *enabled)257 HRESULT RecordingScreenSettings::getEnabled(BOOL *enabled) 258 258 { 259 259 AutoCaller autoCaller(this); … … 267 267 } 268 268 269 HRESULT Record ScreenSettings::setEnabled(BOOL enabled)269 HRESULT RecordingScreenSettings::setEnabled(BOOL enabled) 270 270 { 271 271 AutoCaller autoCaller(this); … … 275 275 276 276 if (!m->pParent->i_canChangeSettings()) 277 return setError(E_INVALIDARG, tr("Cannot change enabled state of screen while capturing is enabled"));277 return setError(E_INVALIDARG, tr("Cannot change enabled state of screen while recording is enabled")); 278 278 279 279 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 292 292 } 293 293 294 HRESULT Record ScreenSettings::getFeatures(ULONG *aFeatures)294 HRESULT RecordingScreenSettings::getFeatures(ULONG *aFeatures) 295 295 { 296 296 AutoCaller autoCaller(this); … … 301 301 *aFeatures = 0; 302 302 303 settings::Record FeatureMap::const_iterator itFeature = m->bd->featureMap.begin();303 settings::RecordingFeatureMap::const_iterator itFeature = m->bd->featureMap.begin(); 304 304 while (itFeature != m->bd->featureMap.end()) 305 305 { … … 313 313 } 314 314 315 HRESULT Record ScreenSettings::setFeatures(ULONG aFeatures)316 { 317 AutoCaller autoCaller(this); 318 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 319 320 if (!m->pParent->i_canChangeSettings()) 321 return setError(E_INVALIDARG, tr("Cannot change features while capturing is enabled"));315 HRESULT RecordingScreenSettings::setFeatures(ULONG aFeatures) 316 { 317 AutoCaller autoCaller(this); 318 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 319 320 if (!m->pParent->i_canChangeSettings()) 321 return setError(E_INVALIDARG, tr("Cannot change features while recording is enabled")); 322 322 323 323 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 326 326 m->bd->featureMap.clear(); 327 327 328 if (aFeatures & Record Feature_Audio)329 m->bd->featureMap[Record Feature_Audio] = true;330 if (aFeatures & Record Feature_Video)331 m->bd->featureMap[Record Feature_Video] = true;328 if (aFeatures & RecordingFeature_Audio) 329 m->bd->featureMap[RecordingFeature_Audio] = true; 330 if (aFeatures & RecordingFeature_Video) 331 m->bd->featureMap[RecordingFeature_Video] = true; 332 332 333 333 alock.release(); … … 336 336 } 337 337 338 HRESULT Record ScreenSettings::getDestination(RecordDestination_T *aDestination)338 HRESULT RecordingScreenSettings::getDestination(RecordingDestination_T *aDestination) 339 339 { 340 340 AutoCaller autoCaller(this); … … 348 348 } 349 349 350 HRESULT Record ScreenSettings::setDestination(RecordDestination_T aDestination)351 { 352 AutoCaller autoCaller(this); 353 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 354 355 if (!m->pParent->i_canChangeSettings()) 356 return setError(E_INVALIDARG, tr("Cannot change destination type while capturing is enabled"));350 HRESULT RecordingScreenSettings::setDestination(RecordingDestination_T aDestination) 351 { 352 AutoCaller autoCaller(this); 353 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 354 355 if (!m->pParent->i_canChangeSettings()) 356 return setError(E_INVALIDARG, tr("Cannot change destination type while recording is enabled")); 357 357 358 358 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 364 364 } 365 365 366 HRESULT Record ScreenSettings::getFileName(com::Utf8Str &aFileName)366 HRESULT RecordingScreenSettings::getFileName(com::Utf8Str &aFileName) 367 367 { 368 368 AutoCaller autoCaller(this); … … 376 376 } 377 377 378 HRESULT Record ScreenSettings::setFileName(const com::Utf8Str &aFileName)379 { 380 AutoCaller autoCaller(this); 381 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 382 383 if (!m->pParent->i_canChangeSettings()) 384 return setError(E_INVALIDARG, tr("Cannot change file name while capturing is enabled"));378 HRESULT RecordingScreenSettings::setFileName(const com::Utf8Str &aFileName) 379 { 380 AutoCaller autoCaller(this); 381 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 382 383 if (!m->pParent->i_canChangeSettings()) 384 return setError(E_INVALIDARG, tr("Cannot change file name while recording is enabled")); 385 385 386 386 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 397 397 } 398 398 399 HRESULT Record ScreenSettings::getMaxTime(ULONG *aMaxTimeS)399 HRESULT RecordingScreenSettings::getMaxTime(ULONG *aMaxTimeS) 400 400 { 401 401 AutoCaller autoCaller(this); … … 409 409 } 410 410 411 HRESULT Record ScreenSettings::setMaxTime(ULONG aMaxTimeS)412 { 413 AutoCaller autoCaller(this); 414 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 415 416 if (!m->pParent->i_canChangeSettings()) 417 return setError(E_INVALIDARG, tr("Cannot change maximum time while capturing is enabled"));411 HRESULT RecordingScreenSettings::setMaxTime(ULONG aMaxTimeS) 412 { 413 AutoCaller autoCaller(this); 414 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 415 416 if (!m->pParent->i_canChangeSettings()) 417 return setError(E_INVALIDARG, tr("Cannot change maximum time while recording is enabled")); 418 418 419 419 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 425 425 } 426 426 427 HRESULT Record ScreenSettings::getMaxFileSize(ULONG *aMaxFileSizeMB)427 HRESULT RecordingScreenSettings::getMaxFileSize(ULONG *aMaxFileSizeMB) 428 428 { 429 429 AutoCaller autoCaller(this); … … 437 437 } 438 438 439 HRESULT Record ScreenSettings::setMaxFileSize(ULONG aMaxFileSize)440 { 441 AutoCaller autoCaller(this); 442 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 443 444 if (!m->pParent->i_canChangeSettings()) 445 return setError(E_INVALIDARG, tr("Cannot change maximum file size while capturing is enabled"));439 HRESULT RecordingScreenSettings::setMaxFileSize(ULONG aMaxFileSize) 440 { 441 AutoCaller autoCaller(this); 442 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 443 444 if (!m->pParent->i_canChangeSettings()) 445 return setError(E_INVALIDARG, tr("Cannot change maximum file size while recording is enabled")); 446 446 447 447 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 453 453 } 454 454 455 HRESULT Record ScreenSettings::getOptions(com::Utf8Str &aOptions)455 HRESULT RecordingScreenSettings::getOptions(com::Utf8Str &aOptions) 456 456 { 457 457 AutoCaller autoCaller(this); … … 465 465 } 466 466 467 HRESULT Record ScreenSettings::setOptions(const com::Utf8Str &aOptions)468 { 469 AutoCaller autoCaller(this); 470 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 471 472 if (!m->pParent->i_canChangeSettings()) 473 return setError(E_INVALIDARG, tr("Cannot change options while capturing is enabled"));467 HRESULT RecordingScreenSettings::setOptions(const com::Utf8Str &aOptions) 468 { 469 AutoCaller autoCaller(this); 470 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 471 472 if (!m->pParent->i_canChangeSettings()) 473 return setError(E_INVALIDARG, tr("Cannot change options while recording is enabled")); 474 474 475 475 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 481 481 } 482 482 483 HRESULT Record ScreenSettings::getAudioCodec(RecordAudioCodec_T *aCodec)483 HRESULT RecordingScreenSettings::getAudioCodec(RecordingAudioCodec_T *aCodec) 484 484 { 485 485 AutoCaller autoCaller(this); … … 493 493 } 494 494 495 HRESULT Record ScreenSettings::setAudioCodec(RecordAudioCodec_T aCodec)496 { 497 AutoCaller autoCaller(this); 498 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 499 500 if (!m->pParent->i_canChangeSettings()) 501 return setError(E_INVALIDARG, tr("Cannot change audio codec while capturing is enabled"));495 HRESULT RecordingScreenSettings::setAudioCodec(RecordingAudioCodec_T aCodec) 496 { 497 AutoCaller autoCaller(this); 498 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 499 500 if (!m->pParent->i_canChangeSettings()) 501 return setError(E_INVALIDARG, tr("Cannot change audio codec while recording is enabled")); 502 502 503 503 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 509 509 } 510 510 511 HRESULT Record ScreenSettings::getAudioHz(ULONG *aHz)511 HRESULT RecordingScreenSettings::getAudioHz(ULONG *aHz) 512 512 { 513 513 AutoCaller autoCaller(this); … … 521 521 } 522 522 523 HRESULT Record ScreenSettings::setAudioHz(ULONG aHz)524 { 525 AutoCaller autoCaller(this); 526 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 527 528 if (!m->pParent->i_canChangeSettings()) 529 return setError(E_INVALIDARG, tr("Cannot change audio Hertz rate while capturing is enabled"));523 HRESULT RecordingScreenSettings::setAudioHz(ULONG aHz) 524 { 525 AutoCaller autoCaller(this); 526 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 527 528 if (!m->pParent->i_canChangeSettings()) 529 return setError(E_INVALIDARG, tr("Cannot change audio Hertz rate while recording is enabled")); 530 530 531 531 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 537 537 } 538 538 539 HRESULT Record ScreenSettings::getAudioBits(ULONG *aBits)539 HRESULT RecordingScreenSettings::getAudioBits(ULONG *aBits) 540 540 { 541 541 AutoCaller autoCaller(this); … … 549 549 } 550 550 551 HRESULT Record ScreenSettings::setAudioBits(ULONG aBits)552 { 553 AutoCaller autoCaller(this); 554 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 555 556 if (!m->pParent->i_canChangeSettings()) 557 return setError(E_INVALIDARG, tr("Cannot change audio bits while capturing is enabled"));551 HRESULT RecordingScreenSettings::setAudioBits(ULONG aBits) 552 { 553 AutoCaller autoCaller(this); 554 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 555 556 if (!m->pParent->i_canChangeSettings()) 557 return setError(E_INVALIDARG, tr("Cannot change audio bits while recording is enabled")); 558 558 559 559 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 565 565 } 566 566 567 HRESULT Record ScreenSettings::getAudioChannels(ULONG *aChannels)567 HRESULT RecordingScreenSettings::getAudioChannels(ULONG *aChannels) 568 568 { 569 569 AutoCaller autoCaller(this); … … 577 577 } 578 578 579 HRESULT Record ScreenSettings::setAudioChannels(ULONG aChannels)580 { 581 AutoCaller autoCaller(this); 582 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 583 584 if (!m->pParent->i_canChangeSettings()) 585 return setError(E_INVALIDARG, tr("Cannot change audio channels while capturing is enabled"));579 HRESULT RecordingScreenSettings::setAudioChannels(ULONG aChannels) 580 { 581 AutoCaller autoCaller(this); 582 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 583 584 if (!m->pParent->i_canChangeSettings()) 585 return setError(E_INVALIDARG, tr("Cannot change audio channels while recording is enabled")); 586 586 587 587 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 593 593 } 594 594 595 HRESULT Record ScreenSettings::getVideoCodec(RecordVideoCodec_T *aCodec)595 HRESULT RecordingScreenSettings::getVideoCodec(RecordingVideoCodec_T *aCodec) 596 596 { 597 597 AutoCaller autoCaller(this); … … 605 605 } 606 606 607 HRESULT Record ScreenSettings::setVideoCodec(RecordVideoCodec_T aCodec)608 { 609 AutoCaller autoCaller(this); 610 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 611 612 if (!m->pParent->i_canChangeSettings()) 613 return setError(E_INVALIDARG, tr("Cannot change video codec while capturing is enabled"));607 HRESULT RecordingScreenSettings::setVideoCodec(RecordingVideoCodec_T aCodec) 608 { 609 AutoCaller autoCaller(this); 610 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 611 612 if (!m->pParent->i_canChangeSettings()) 613 return setError(E_INVALIDARG, tr("Cannot change video codec while recording is enabled")); 614 614 615 615 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 621 621 } 622 622 623 HRESULT Record ScreenSettings::getVideoWidth(ULONG *aVideoWidth)623 HRESULT RecordingScreenSettings::getVideoWidth(ULONG *aVideoWidth) 624 624 { 625 625 AutoCaller autoCaller(this); … … 633 633 } 634 634 635 HRESULT Record ScreenSettings::setVideoWidth(ULONG aVideoWidth)636 { 637 AutoCaller autoCaller(this); 638 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 639 640 if (!m->pParent->i_canChangeSettings()) 641 return setError(E_INVALIDARG, tr("Cannot change video width while capturing is enabled"));635 HRESULT RecordingScreenSettings::setVideoWidth(ULONG aVideoWidth) 636 { 637 AutoCaller autoCaller(this); 638 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 639 640 if (!m->pParent->i_canChangeSettings()) 641 return setError(E_INVALIDARG, tr("Cannot change video width while recording is enabled")); 642 642 643 643 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 649 649 } 650 650 651 HRESULT Record ScreenSettings::getVideoHeight(ULONG *aVideoHeight)651 HRESULT RecordingScreenSettings::getVideoHeight(ULONG *aVideoHeight) 652 652 { 653 653 AutoCaller autoCaller(this); … … 661 661 } 662 662 663 HRESULT Record ScreenSettings::setVideoHeight(ULONG aVideoHeight)664 { 665 AutoCaller autoCaller(this); 666 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 667 668 if (!m->pParent->i_canChangeSettings()) 669 return setError(E_INVALIDARG, tr("Cannot change video height while capturing is enabled"));663 HRESULT RecordingScreenSettings::setVideoHeight(ULONG aVideoHeight) 664 { 665 AutoCaller autoCaller(this); 666 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 667 668 if (!m->pParent->i_canChangeSettings()) 669 return setError(E_INVALIDARG, tr("Cannot change video height while recording is enabled")); 670 670 671 671 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 677 677 } 678 678 679 HRESULT Record ScreenSettings::getVideoRate(ULONG *aVideoRate)679 HRESULT RecordingScreenSettings::getVideoRate(ULONG *aVideoRate) 680 680 { 681 681 AutoCaller autoCaller(this); … … 689 689 } 690 690 691 HRESULT Record ScreenSettings::setVideoRate(ULONG aVideoRate)692 { 693 AutoCaller autoCaller(this); 694 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 695 696 if (!m->pParent->i_canChangeSettings()) 697 return setError(E_INVALIDARG, tr("Cannot change video rate while capturing is enabled"));691 HRESULT RecordingScreenSettings::setVideoRate(ULONG aVideoRate) 692 { 693 AutoCaller autoCaller(this); 694 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 695 696 if (!m->pParent->i_canChangeSettings()) 697 return setError(E_INVALIDARG, tr("Cannot change video rate while recording is enabled")); 698 698 699 699 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 705 705 } 706 706 707 HRESULT Record ScreenSettings::getVideoRateControlMode(RecordVideoRateControlMode_T *aMode)707 HRESULT RecordingScreenSettings::getVideoRateControlMode(RecordVideoRateControlMode_T *aMode) 708 708 { 709 709 AutoCaller autoCaller(this); … … 717 717 } 718 718 719 HRESULT Record ScreenSettings::setVideoRateControlMode(RecordVideoRateControlMode_T aMode)720 { 721 AutoCaller autoCaller(this); 722 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 723 724 if (!m->pParent->i_canChangeSettings()) 725 return setError(E_INVALIDARG, tr("Cannot change video rate control mode while capturing is enabled"));719 HRESULT RecordingScreenSettings::setVideoRateControlMode(RecordVideoRateControlMode_T aMode) 720 { 721 AutoCaller autoCaller(this); 722 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 723 724 if (!m->pParent->i_canChangeSettings()) 725 return setError(E_INVALIDARG, tr("Cannot change video rate control mode while recording is enabled")); 726 726 727 727 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 733 733 } 734 734 735 HRESULT Record ScreenSettings::getVideoFPS(ULONG *aVideoFPS)735 HRESULT RecordingScreenSettings::getVideoFPS(ULONG *aVideoFPS) 736 736 { 737 737 AutoCaller autoCaller(this); … … 745 745 } 746 746 747 HRESULT Record ScreenSettings::setVideoFPS(ULONG aVideoFPS)748 { 749 AutoCaller autoCaller(this); 750 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 751 752 if (!m->pParent->i_canChangeSettings()) 753 return setError(E_INVALIDARG, tr("Cannot change video FPS while capturing is enabled"));747 HRESULT RecordingScreenSettings::setVideoFPS(ULONG aVideoFPS) 748 { 749 AutoCaller autoCaller(this); 750 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 751 752 if (!m->pParent->i_canChangeSettings()) 753 return setError(E_INVALIDARG, tr("Cannot change video FPS while recording is enabled")); 754 754 755 755 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 761 761 } 762 762 763 HRESULT Record ScreenSettings::getVideoScalingMethod(RecordVideoScalingMethod_T *aMode)764 { 765 AutoCaller autoCaller(this); 766 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 767 768 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 769 770 *aMode = Record VideoScalingMethod_None; /** @todo Implement this. */771 772 return S_OK; 773 } 774 775 HRESULT Record ScreenSettings::setVideoScalingMethod(RecordVideoScalingMethod_T aMode)776 { 777 AutoCaller autoCaller(this); 778 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 779 780 if (!m->pParent->i_canChangeSettings()) 781 return setError(E_INVALIDARG, tr("Cannot change video rate scaling method while capturing is enabled"));763 HRESULT RecordingScreenSettings::getVideoScalingMethod(RecordingVideoScalingMethod_T *aMode) 764 { 765 AutoCaller autoCaller(this); 766 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 767 768 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 769 770 *aMode = RecordingVideoScalingMethod_None; /** @todo Implement this. */ 771 772 return S_OK; 773 } 774 775 HRESULT RecordingScreenSettings::setVideoScalingMethod(RecordingVideoScalingMethod_T aMode) 776 { 777 AutoCaller autoCaller(this); 778 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 779 780 if (!m->pParent->i_canChangeSettings()) 781 return setError(E_INVALIDARG, tr("Cannot change video rate scaling method while recording is enabled")); 782 782 783 783 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 794 794 * @returns IPRT status code. 795 795 */ 796 int Record ScreenSettings::i_initInternal(void)796 int RecordingScreenSettings::i_initInternal(void) 797 797 { 798 798 Assert(m); … … 802 802 switch (m->bd->enmDest) 803 803 { 804 case Record Destination_File:804 case RecordingDestination_File: 805 805 { 806 806 if (m->bd->File.strName.isEmpty()) -
trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp
r75360 r75361 17 17 */ 18 18 19 #define LOG_GROUP LOG_GROUP_MAIN_RECORD SETTINGS19 #define LOG_GROUP LOG_GROUP_MAIN_RECORDINGSETTINGS 20 20 #include "LoggingNew.h" 21 21 22 #include "Record SettingsImpl.h"23 #include "Record ScreenSettingsImpl.h"22 #include "RecordingSettingsImpl.h" 23 #include "RecordingScreenSettingsImpl.h" 24 24 #include "MachineImpl.h" 25 25 … … 37 37 //////////////////////////////////////////////////////////////////////////////// 38 38 39 struct Record Settings::Data39 struct RecordingSettings::Data 40 40 { 41 41 Data() … … 43 43 { } 44 44 45 Machine * const pMachine;46 ComObjPtr<Record Settings> pPeer;47 RecordScreenSettingsMap mapScreenObj;48 bool fHasMachineLock;45 Machine * const pMachine; 46 ComObjPtr<RecordingSettings> pPeer; 47 RecordScreenSettingsMap mapScreenObj; 48 bool fHasMachineLock; 49 49 50 50 // use the XML settings structure in the members for simplicity 51 Backupable<settings::Record Settings> bd;51 Backupable<settings::RecordingSettings> bd; 52 52 }; 53 53 54 DEFINE_EMPTY_CTOR_DTOR(Record Settings)55 56 HRESULT Record Settings::FinalConstruct()54 DEFINE_EMPTY_CTOR_DTOR(RecordingSettings) 55 56 HRESULT RecordingSettings::FinalConstruct() 57 57 { 58 58 return BaseFinalConstruct(); 59 59 } 60 60 61 void Record Settings::FinalRelease()61 void RecordingSettings::FinalRelease() 62 62 { 63 63 uninit(); … … 70 70 * @returns COM result indicator 71 71 */ 72 HRESULT Record Settings::init(Machine *aParent)72 HRESULT RecordingSettings::init(Machine *aParent) 73 73 { 74 74 LogFlowThisFuncEnter(); … … 103 103 * it shares data with is destroyed. 104 104 */ 105 HRESULT Record Settings::init(Machine *aParent, RecordSettings *that)105 HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings *that) 106 106 { 107 107 LogFlowThisFuncEnter(); … … 136 136 * of the original object passed as an argument. 137 137 */ 138 HRESULT Record Settings::initCopy(Machine *aParent, RecordSettings *that)138 HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings *that) 139 139 { 140 140 LogFlowThisFuncEnter(); … … 168 168 * Called either from FinalRelease() or by the parent when it gets destroyed. 169 169 */ 170 void Record Settings::uninit()170 void RecordingSettings::uninit() 171 171 { 172 172 LogFlowThisFuncEnter(); … … 194 194 ///////////////////////////////////////////////////////////////////////////// 195 195 196 HRESULT Record Settings::getEnabled(BOOL *enabled)196 HRESULT RecordingSettings::getEnabled(BOOL *enabled) 197 197 { 198 198 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); … … 203 203 } 204 204 205 HRESULT Record Settings::setEnabled(BOOL enable)205 HRESULT RecordingSettings::setEnabled(BOOL enable) 206 206 { 207 207 LogFlowThisFuncEnter(); … … 251 251 } 252 252 253 HRESULT Record Settings::getScreens(std::vector<ComPtr<IRecordScreenSettings> > &aRecordScreenSettings)253 HRESULT RecordingSettings::getScreens(std::vector<ComPtr<IRecordingScreenSettings> > &aRecordScreenSettings) 254 254 { 255 255 LogFlowThisFuncEnter(); … … 277 277 } 278 278 279 HRESULT Record Settings::getScreenSettings(ULONG uScreenId, ComPtr<IRecordScreenSettings> &aRecordScreenSettings)279 HRESULT RecordingSettings::getScreenSettings(ULONG uScreenId, ComPtr<IRecordingScreenSettings> &aRecordScreenSettings) 280 280 { 281 281 LogFlowThisFuncEnter(); … … 312 312 * @param data Recording screen settings to use for that screen. 313 313 */ 314 int Record Settings::i_createScreenObj(RecordScreenSettingsMap &screenSettingsMap,315 uint32_t uScreenId, const settings::Record ScreenSettings &data)314 int RecordingSettings::i_createScreenObj(RecordScreenSettingsMap &screenSettingsMap, 315 uint32_t uScreenId, const settings::RecordingScreenSettings &data) 316 316 { 317 317 LogFlowThisFunc(("Screen %RU32\n", uScreenId)); … … 325 325 int vrc = VINF_SUCCESS; 326 326 327 ComObjPtr<Record ScreenSettings> RecordScreenSettings;328 HRESULT rc = RecordScreenSettings.createObject();327 ComObjPtr<RecordingScreenSettings> recordingScreenSettings; 328 HRESULT rc = recordingScreenSettings.createObject(); 329 329 if (SUCCEEDED(rc)) 330 330 { 331 rc = RecordScreenSettings->init(this, uScreenId, data);331 rc = recordingScreenSettings->init(this, uScreenId, data); 332 332 if (SUCCEEDED(rc)) 333 333 { 334 334 try 335 335 { 336 screenSettingsMap[uScreenId] = RecordScreenSettings;336 screenSettingsMap[uScreenId] = recordingScreenSettings; 337 337 } 338 338 catch (std::bad_alloc &) … … 353 353 * @param uScreenId ID of screen to remove. 354 354 */ 355 int Record Settings::i_destroyScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId)355 int RecordingSettings::i_destroyScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId) 356 356 { 357 357 LogFlowThisFunc(("Screen %RU32\n", uScreenId)); … … 368 368 /* Make sure to consume the pointer before the one of the 369 369 * iterator gets released. */ 370 ComObjPtr<Record ScreenSettings> pScreenSettings = itScreen->second;370 ComObjPtr<RecordingScreenSettings> pScreenSettings = itScreen->second; 371 371 372 372 screenSettingsMap.erase(itScreen); … … 383 383 * @param screenSettingsMap Map to destroy screen settings objects for. 384 384 */ 385 int Record Settings::i_destroyAllScreenObj(RecordScreenSettingsMap &screenSettingsMap)385 int RecordingSettings::i_destroyAllScreenObj(RecordScreenSettingsMap &screenSettingsMap) 386 386 { 387 387 LogFlowThisFuncEnter(); … … 392 392 /* Make sure to consume the pointer before the one of the 393 393 * iterator gets released. */ 394 ComObjPtr<Record ScreenSettings> pScreenSettings = itScreen->second;394 ComObjPtr<RecordingScreenSettings> pScreenSettings = itScreen->second; 395 395 396 396 screenSettingsMap.erase(itScreen); … … 412 412 * @note Locks this object for writing. 413 413 */ 414 HRESULT Record Settings::i_loadSettings(const settings::RecordSettings &data)414 HRESULT RecordingSettings::i_loadSettings(const settings::RecordingSettings &data) 415 415 { 416 416 LogFlowThisFuncEnter(); … … 427 427 LogFlowThisFunc(("Data has %zu screens\n", data.mapScreens.size())); 428 428 429 settings::Record ScreenMap::const_iterator itScreen = data.mapScreens.begin();429 settings::RecordingScreenMap::const_iterator itScreen = data.mapScreens.begin(); 430 430 while (itScreen != data.mapScreens.end()) 431 431 { … … 457 457 * Resets the internal object state by destroying all screen settings objects. 458 458 */ 459 void Record Settings::i_reset(void)459 void RecordingSettings::i_reset(void) 460 460 { 461 461 LogFlowThisFuncEnter(); … … 472 472 * @note Locks this object for reading. 473 473 */ 474 HRESULT Record Settings::i_saveSettings(settings::RecordSettings &data)474 HRESULT RecordingSettings::i_saveSettings(settings::RecordingSettings &data) 475 475 { 476 476 LogFlowThisFuncEnter(); … … 486 486 data = *m->bd.data(); 487 487 488 settings::Record ScreenMap::iterator itScreen = data.mapScreens.begin();488 settings::RecordingScreenMap::iterator itScreen = data.mapScreens.begin(); 489 489 while (itScreen != data.mapScreens.end()) 490 490 { … … 499 499 } 500 500 501 void Record Settings::i_rollback()501 void RecordingSettings::i_rollback() 502 502 { 503 503 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 505 505 } 506 506 507 void Record Settings::i_commit()507 void RecordingSettings::i_commit() 508 508 { 509 509 /* sanity */ … … 531 531 } 532 532 533 void Record Settings::i_copyFrom(RecordSettings *aThat)533 void RecordingSettings::i_copyFrom(RecordingSettings *aThat) 534 534 { 535 535 AssertReturnVoid(aThat != NULL); … … 552 552 } 553 553 554 void Record Settings::i_applyDefaults(void)554 void RecordingSettings::i_applyDefaults(void) 555 555 { 556 556 /* sanity */ … … 566 566 * Returns the full path to the default video capture file. 567 567 */ 568 int Record Settings::i_getDefaultFileName(Utf8Str &strFile)568 int RecordingSettings::i_getDefaultFileName(Utf8Str &strFile) 569 569 { 570 570 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); … … 582 582 * @returns \c true if the settings can be changed, \c false if not. 583 583 */ 584 bool Record Settings::i_canChangeSettings(void)584 bool RecordingSettings::i_canChangeSettings(void) 585 585 { 586 586 AutoAnyStateDependency adep(m->pMachine); … … 598 598 * have been changed. 599 599 */ 600 void Record Settings::i_onSettingsChanged(void)600 void RecordingSettings::i_onSettingsChanged(void) 601 601 { 602 602 LogFlowThisFuncEnter(); … … 613 613 * to the number of the machine's configured displays. 614 614 */ 615 int Record Settings::i_syncToMachineDisplays(void)615 int RecordingSettings::i_syncToMachineDisplays(void) 616 616 { 617 617 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 632 632 if (m->mapScreenObj.find(i) == m->mapScreenObj.end()) 633 633 { 634 settings::Record ScreenMap::const_iterator itScreen = m->bd->mapScreens.find(i);634 settings::RecordingScreenMap::const_iterator itScreen = m->bd->mapScreens.find(i); 635 635 if (itScreen == m->bd->mapScreens.end()) 636 636 { 637 settings::Record ScreenSettings defaultScreenSettings; /* Apply default settings. */637 settings::RecordingScreenSettings defaultScreenSettings; /* Apply default settings. */ 638 638 m->bd->mapScreens[i] = defaultScreenSettings; 639 639 } -
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r75341 r75361 1082 1082 if (FAILED(rc)) return rc; 1083 1083 1084 unconst(mRecord Settings).createObject();1085 rc = mRecord Settings->initCopy(this, pMachine->mRecordSettings);1084 unconst(mRecordingSettings).createObject(); 1085 rc = mRecordingSettings->initCopy(this, pMachine->mRecordingSettings); 1086 1086 if (FAILED(rc)) return rc; 1087 1087 … … 1208 1208 mBIOSSettings->init(this); 1209 1209 1210 unconst(mRecord Settings).createObject();1211 mRecord Settings->init(this);1210 unconst(mRecordingSettings).createObject(); 1211 mRecordingSettings->init(this); 1212 1212 1213 1213 unconst(mVRDEServer).createObject(); -
trunk/src/VBox/Main/xml/Settings.cpp
r75341 r75361 2371 2371 } 2372 2372 2373 Record ScreenSettings::RecordScreenSettings(void)2373 RecordingScreenSettings::RecordingScreenSettings(void) 2374 2374 { 2375 2375 applyDefaults(); 2376 2376 } 2377 2377 2378 Record ScreenSettings::~RecordScreenSettings()2379 { 2380 2381 } 2382 2383 void Record ScreenSettings::applyDefaults(void)2378 RecordingScreenSettings::~RecordingScreenSettings() 2379 { 2380 2381 } 2382 2383 void RecordingScreenSettings::applyDefaults(void) 2384 2384 { 2385 2385 /* … … 2388 2388 2389 2389 fEnabled = false; 2390 enmDest = Record Destination_File;2390 enmDest = RecordingDestination_File; 2391 2391 ulMaxTimeS = 0; 2392 2392 strOptions = ""; 2393 2393 File.ulMaxSizeMB = 0; 2394 2394 File.strName = ""; 2395 Video.enmCodec = Record VideoCodec_VP8;2395 Video.enmCodec = RecordingVideoCodec_VP8; 2396 2396 Video.ulWidth = 1024; 2397 2397 Video.ulHeight = 768; 2398 2398 Video.ulRate = 512; 2399 2399 Video.ulFPS = 25; 2400 Audio.enmAudioCodec = Record AudioCodec_Opus;2400 Audio.enmAudioCodec = RecordingAudioCodec_Opus; 2401 2401 Audio.cBits = 16; 2402 2402 Audio.cChannels = 2; 2403 2403 Audio.uHz = 22050; 2404 2404 2405 featureMap[Record Feature_Video] = true;2406 featureMap[Record Feature_Audio] = false;2405 featureMap[RecordingFeature_Video] = true; 2406 featureMap[RecordingFeature_Audio] = false; 2407 2407 } 2408 2408 … … 2410 2410 * Check if all settings have default values. 2411 2411 */ 2412 bool Record ScreenSettings::areDefaultSettings(void) const2412 bool RecordingScreenSettings::areDefaultSettings(void) const 2413 2413 { 2414 2414 return fEnabled == false 2415 && enmDest == Record Destination_File2415 && enmDest == RecordingDestination_File 2416 2416 && ulMaxTimeS == 0 2417 2417 && strOptions == "" 2418 2418 && File.ulMaxSizeMB == 0 2419 2419 && File.strName == "" 2420 && Video.enmCodec == Record VideoCodec_VP82420 && Video.enmCodec == RecordingVideoCodec_VP8 2421 2421 && Video.ulWidth == 1024 2422 2422 && Video.ulHeight == 768 2423 2423 && Video.ulRate == 512 2424 2424 && Video.ulFPS == 25 2425 && Audio.enmAudioCodec == Record AudioCodec_Opus2425 && Audio.enmAudioCodec == RecordingAudioCodec_Opus 2426 2426 && Audio.cBits == 16 2427 2427 && Audio.cChannels == 2 … … 2429 2429 } 2430 2430 2431 bool Record ScreenSettings::isFeatureEnabled(RecordFeature_T enmFeature) const2432 { 2433 Record FeatureMap::const_iterator itFeature = featureMap.find(enmFeature);2431 bool RecordingScreenSettings::isFeatureEnabled(RecordingFeature_T enmFeature) const 2432 { 2433 RecordingFeatureMap::const_iterator itFeature = featureMap.find(enmFeature); 2434 2434 if (itFeature != featureMap.end()) 2435 2435 return itFeature->second; … … 2443 2443 * machine settings have really changed and thus need to be written out to disk. 2444 2444 */ 2445 bool Record ScreenSettings::operator==(const RecordScreenSettings &d) const2445 bool RecordingScreenSettings::operator==(const RecordingScreenSettings &d) const 2446 2446 { 2447 2447 return fEnabled == d.fEnabled … … 2465 2465 * Constructor. Needs to set sane defaults which stand the test of time. 2466 2466 */ 2467 Record Settings::RecordSettings()2467 RecordingSettings::RecordingSettings() 2468 2468 { 2469 2469 applyDefaults(); … … 2473 2473 * Applies the default settings. 2474 2474 */ 2475 void Record Settings::applyDefaults(void)2475 void RecordingSettings::applyDefaults(void) 2476 2476 { 2477 2477 fEnabled = false; … … 2482 2482 { 2483 2483 /* Always add screen 0 to the default configuration. */ 2484 Record ScreenSettings screenSettings; /* Apply default settings for screen 0. */2484 RecordingScreenSettings screenSettings; /* Apply default settings for screen 0. */ 2485 2485 screenSettings.fEnabled = true; /* Enabled by default. */ 2486 2486 mapScreens[0] = screenSettings; … … 2495 2495 * Check if all settings have default values. 2496 2496 */ 2497 bool Record Settings::areDefaultSettings() const2497 bool RecordingSettings::areDefaultSettings() const 2498 2498 { 2499 2499 const bool fDefault = fEnabled == false … … 2502 2502 return false; 2503 2503 2504 Record ScreenMap::const_iterator itScreen = mapScreens.begin();2504 RecordingScreenMap::const_iterator itScreen = mapScreens.begin(); 2505 2505 return itScreen->first == 0 2506 2506 && itScreen->second.areDefaultSettings(); … … 2512 2512 * machine settings have really changed and thus need to be written out to disk. 2513 2513 */ 2514 bool Record Settings::operator==(const RecordSettings &d) const2514 bool RecordingSettings::operator==(const RecordingSettings &d) const 2515 2515 { 2516 2516 if (this == &d) … … 2521 2521 return false; 2522 2522 2523 Record ScreenMap::const_iterator itScreen = mapScreens.begin();2523 RecordingScreenMap::const_iterator itScreen = mapScreens.begin(); 2524 2524 uint32_t i = 0; 2525 2525 while (itScreen != mapScreens.end()) 2526 2526 { 2527 Record ScreenMap::const_iterator itScreenThat = d.mapScreens.find(i);2527 RecordingScreenMap::const_iterator itScreenThat = d.mapScreens.find(i); 2528 2528 if (itScreen->second == itScreenThat->second) 2529 2529 { … … 4409 4409 else if (pelmHwChild->nameEquals("VideoCapture")) 4410 4410 { 4411 pelmHwChild->getAttributeValue("enabled", hw.record Settings.fEnabled);4411 pelmHwChild->getAttributeValue("enabled", hw.recordingSettings.fEnabled); 4412 4412 4413 4413 /* Right now I don't want to bump the settings version, so just convert the enabled … … 4418 4418 /* At the moment we only support one capturing configuration, that is, all screens 4419 4419 * have the same configuration. So load/save to/from screen 0. */ 4420 Assert(hw.record Settings.mapScreens.size()); /* At least screen must be present. */4421 Record ScreenSettings &screen0Settings = hw.recordSettings.mapScreens[0];4420 Assert(hw.recordingSettings.mapScreens.size()); /* At least screen must be present. */ 4421 RecordingScreenSettings &screen0Settings = hw.recordingSettings.mapScreens[0]; 4422 4422 4423 4423 pelmHwChild->getAttributeValue("maxTime", screen0Settings.ulMaxTimeS); … … 4433 4433 { 4434 4434 /* Add screen i to config in any case. */ 4435 hw.record Settings.mapScreens[i] = screen0Settings;4435 hw.recordingSettings.mapScreens[i] = screen0Settings; 4436 4436 4437 4437 if (u64VideoCaptureScreens & RT_BIT_64(i)) /* Screen i enabled? */ 4438 hw.record Settings.mapScreens[i].fEnabled = true;4438 hw.recordingSettings.mapScreens[i].fEnabled = true; 4439 4439 } 4440 4440 } … … 5820 5820 } 5821 5821 5822 if (m->sv >= SettingsVersion_v1_14 && !hw.record Settings.areDefaultSettings())5822 if (m->sv >= SettingsVersion_v1_14 && !hw.recordingSettings.areDefaultSettings()) 5823 5823 { 5824 5824 xml::ElementNode *pelmVideoCapture = pelmHardware->createChild("VideoCapture"); 5825 5825 5826 if (hw.record Settings.fEnabled)5827 pelmVideoCapture->setAttribute("enabled", hw.record Settings.fEnabled);5826 if (hw.recordingSettings.fEnabled) 5827 pelmVideoCapture->setAttribute("enabled", hw.recordingSettings.fEnabled); 5828 5828 5829 5829 /* Right now I don't want to bump the settings version, so just convert the enabled 5830 5830 * screens to the former uint64t_t bit array and vice versa. */ 5831 5831 uint64_t u64VideoCaptureScreens = 0; 5832 Record ScreenMap::const_iterator itScreen = hw.recordSettings.mapScreens.begin();5833 while (itScreen != hw.record Settings.mapScreens.end())5832 RecordingScreenMap::const_iterator itScreen = hw.recordingSettings.mapScreens.begin(); 5833 while (itScreen != hw.recordingSettings.mapScreens.end()) 5834 5834 { 5835 5835 if (itScreen->second.fEnabled) … … 5843 5843 /* At the moment we only support one capturing configuration, that is, all screens 5844 5844 * have the same configuration. So load/save to/from screen 0. */ 5845 Assert(hw.record Settings.mapScreens.size());5846 const Record ScreenMap::const_iterator itScreen0Settings = hw.recordSettings.mapScreens.find(0);5847 Assert(itScreen0Settings != hw.record Settings.mapScreens.end());5845 Assert(hw.recordingSettings.mapScreens.size()); 5846 const RecordingScreenMap::const_iterator itScreen0Settings = hw.recordingSettings.mapScreens.find(0); 5847 Assert(itScreen0Settings != hw.recordingSettings.mapScreens.end()); 5848 5848 5849 5849 if (itScreen0Settings->second.ulMaxTimeS) … … 7442 7442 || hardwareMachine.enmLongMode != Hardware::LongMode_Legacy 7443 7443 || machineUserData.ovIcon.size() > 0 7444 || hardwareMachine.record Settings.fEnabled)7444 || hardwareMachine.recordingSettings.fEnabled) 7445 7445 { 7446 7446 m->sv = SettingsVersion_v1_14;
Note:
See TracChangeset
for help on using the changeset viewer.

