VirtualBox

Changeset 75361 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 9, 2018 12:56:40 PM (6 years ago)
Author:
vboxsync
Message:

Recording/Main: Renamed the IRecord* interfaces again to IRecording* to make it more standardized.

Location:
trunk/src/VBox/Frontends
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r75345 r75361  
    961961        if (fRecordEnabled)
    962962        {
    963             ComPtr<IRecordSettings> RecordSettings;
    964             CHECK_ERROR_BREAK(machine, COMGETTER(RecordSettings)(RecordSettings.asOutParam()));
    965             CHECK_ERROR_BREAK(RecordSettings, COMSETTER(Enabled)(TRUE));
    966 
    967             SafeIfaceArray <IRecordScreenSettings> 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)));
    969969
    970970            /* Note: For now all screens have the same configuration. */
     
    12321232            if (!machine.isNull())
    12331233            {
    1234                 ComPtr<IRecordSettings> RecordSettings;
    1235                 CHECK_ERROR_BREAK(machine, COMGETTER(RecordSettings)(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));
    12371237            }
    12381238        }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r75345 r75361  
    18641864            }
    18651865
    1866             ComPtr<IRecordSettings> RecordSettings;
    1867             CHECK_ERROR_BREAK(machine, COMGETTER(RecordSettings)(RecordSettings.asOutParam()));
    1868 
    1869             SafeIfaceArray <IRecordScreenSettings> 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)));
    18711871
    18721872            /* Note: For now all screens have the same configuration. */
     
    18781878            if (!strcmp(a->argv[2], "on"))
    18791879            {
    1880                 CHECK_ERROR_RET(RecordSettings, COMSETTER(Enabled)(TRUE), RTEXITCODE_FAILURE);
     1880                CHECK_ERROR_RET(recordingSettings, COMSETTER(Enabled)(TRUE), RTEXITCODE_FAILURE);
    18811881            }
    18821882            else if (!strcmp(a->argv[2], "off"))
    18831883            {
    1884                 CHECK_ERROR_RET(RecordSettings, COMSETTER(Enabled)(FALSE), RTEXITCODE_FAILURE);
     1884                CHECK_ERROR_RET(recordingSettings, COMSETTER(Enabled)(FALSE), RTEXITCODE_FAILURE);
    18851885            }
    18861886            else if (!strcmp(a->argv[2], "screens"))
     
    19301930                }
    19311931
    1932                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    1933                     CHECK_ERROR_BREAK(saRecordScreenScreens[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]));
    19341934            }
    19351935            else if (!strcmp(a->argv[2], "filename"))
     
    19421942                }
    19431943
    1944                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    1945                     CHECK_ERROR_BREAK(saRecordScreenScreens[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()));
    19461946            }
    19471947            else if (   !strcmp(a->argv[2], "videores")
     
    19721972                }
    19731973
    1974                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    1975                 {
    1976                     CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(VideoWidth)(uVal));
    1977                     CHECK_ERROR_BREAK(saRecordScreenScreens[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));
    19781978                }
    19791979            }
     
    19961996                }
    19971997
    1998                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    1999                     CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(VideoRate)(uVal));
     1998                for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     1999                    CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoRate)(uVal));
    20002000            }
    20012001            else if (!strcmp(a->argv[2], "videofps"))
     
    20172017                }
    20182018
    2019                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    2020                     CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(VideoFPS)(uVal));
     2019                for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     2020                    CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(VideoFPS)(uVal));
    20212021            }
    20222022            else if (!strcmp(a->argv[2], "maxtime"))
     
    20382038                }
    20392039
    2040                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    2041                     CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(MaxTime)(uVal));
     2040                for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     2041                    CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxTime)(uVal));
    20422042            }
    20432043            else if (!strcmp(a->argv[2], "maxfilesize"))
     
    20592059                }
    20602060
    2061                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    2062                     CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(MaxFileSize)(uVal));
     2061                for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     2062                    CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(MaxFileSize)(uVal));
    20632063            }
    20642064            else if (!strcmp(a->argv[2], "opts"))
     
    20712071                }
    20722072
    2073                 for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    2074                     CHECK_ERROR_BREAK(saRecordScreenScreens[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()));
    20752075            }
    20762076        }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r75345 r75361  
    23792379# endif
    23802380
    2381         ComPtr<IRecordSettings> RecordSettings;
    2382         CHECK_ERROR_RET(machine, COMGETTER(RecordSettings)(RecordSettings.asOutParam()), rc);
    2383 
    2384         SafeIfaceArray <IRecordScreenSettings> 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);
    23862386
    23872387        /* For now all screens have the same configuration; so take screen 0 and work with that. */
    23882388        ULONG fFeatures;
    2389         CHECK_ERROR_RET(saCaptureScreenScreens[0], COMGETTER(Features)(&fFeatures), rc);
     2389        CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(Features)(&fFeatures), rc);
    23902390        ULONG Width;
    2391         CHECK_ERROR_RET(saCaptureScreenScreens[0], COMGETTER(VideoWidth)(&Width), rc);
     2391        CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoWidth)(&Width), rc);
    23922392        ULONG Height;
    2393         CHECK_ERROR_RET(saCaptureScreenScreens[0], COMGETTER(VideoHeight)(&Height), rc);
     2393        CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoHeight)(&Height), rc);
    23942394        ULONG Rate;
    2395         CHECK_ERROR_RET(saCaptureScreenScreens[0], COMGETTER(VideoRate)(&Rate), rc);
     2395        CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoRate)(&Rate), rc);
    23962396        ULONG Fps;
    2397         CHECK_ERROR_RET(saCaptureScreenScreens[0], COMGETTER(VideoFPS)(&Fps), rc);
     2397        CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(VideoFPS)(&Fps), rc);
    23982398        Bstr  bstrFile;
    2399         CHECK_ERROR_RET(saCaptureScreenScreens[0], COMGETTER(FileName)(bstrFile.asOutParam()), rc);
     2399        CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(FileName)(bstrFile.asOutParam()), rc);
    24002400        Bstr  bstrOptions;
    2401         CHECK_ERROR_RET(saCaptureScreenScreens[0], COMGETTER(Options)(bstrOptions.asOutParam()), rc);
     2401        CHECK_ERROR_RET(saRecordingScreenScreens[0], COMGETTER(Options)(bstrOptions.asOutParam()), rc);
    24022402
    24032403        Utf8Str strOptions(bstrOptions);
     
    24232423# endif
    24242424        szValue[0] = '\0';
    2425         for (size_t i = 0, off = 0; i < saCaptureScreenScreens.size(); i++)
     2425        for (size_t i = 0, off = 0; i < saRecordingScreenScreens.size(); i++)
    24262426        {
    24272427            BOOL fEnabled;
    2428             CHECK_ERROR_RET(saCaptureScreenScreens[i], COMGETTER(Enabled)(&fEnabled), rc);
     2428            CHECK_ERROR_RET(saRecordingScreenScreens[i], COMGETTER(Enabled)(&fEnabled), rc);
    24292429            if (fEnabled && off < sizeof(szValue) - 3)
    24302430                off += RTStrPrintf(&szValue[off], sizeof(szValue) - off, off ? ",%zu" : "%zu", i);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r75345 r75361  
    29502950            case MODIFYVM_RECORD_OPTIONS:
    29512951            {
    2952                 ComPtr<IRecordSettings> RecordSettings;
    2953                 CHECK_ERROR_BREAK(machine, COMGETTER(RecordSettings)(RecordSettings.asOutParam()));
    2954                 SafeIfaceArray <IRecordScreenSettings> 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)));
    29562956
    29572957                switch (c)
     
    29592959                    case MODIFYVM_RECORD:
    29602960                    {
    2961                         CHECK_ERROR(RecordSettings, COMSETTER(Enabled)(ValueUnion.f));
     2961                        CHECK_ERROR(recordingSettings, COMSETTER(Enabled)(ValueUnion.f));
    29622962                        break;
    29632963                    }
     
    29742974                        }
    29752975
    2976                         if (cMonitors > saRecordScreenScreens.size()) /* Paranoia. */
    2977                             cMonitors = (ULONG)saRecordScreenScreens.size();
     2976                        if (cMonitors > saRecordingScreenScreens.size()) /* Paranoia. */
     2977                            cMonitors = (ULONG)saRecordingScreenScreens.size();
    29782978
    29792979                        for (size_t i = 0; i < cMonitors; ++i)
    2980                             CHECK_ERROR_BREAK(saRecordScreenScreens[i], COMSETTER(Enabled)(screens[i]));
     2980                            CHECK_ERROR_BREAK(saRecordingScreenScreens[i], COMSETTER(Enabled)(screens[i]));
    29812981                        break;
    29822982                    }
     
    29982998                        }
    29992999
    3000                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3001                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(FileName)(bstr.raw()));
     3000                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3001                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(FileName)(bstr.raw()));
    30023002                        break;
    30033003                    }
    30043004                    case MODIFYVM_RECORD_VIDEO_WIDTH:
    30053005                    {
    3006                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3007                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(VideoWidth)(ValueUnion.u32));
     3006                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3007                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoWidth)(ValueUnion.u32));
    30083008                        break;
    30093009                    }
    30103010                    case MODIFYVM_RECORD_VIDEO_HEIGHT:
    30113011                    {
    3012                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3013                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(VideoHeight)(ValueUnion.u32));
     3012                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3013                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoHeight)(ValueUnion.u32));
    30143014                        break;
    30153015                    }
     
    30343034                        }
    30353035
    3036                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
     3036                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
    30373037                        {
    3038                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(VideoWidth)(uWidth));
    3039                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(VideoHeight)(uHeight));
     3038                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoWidth)(uWidth));
     3039                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoHeight)(uHeight));
    30403040                        }
    30413041                        break;
     
    30433043                    case MODIFYVM_RECORD_VIDEO_RATE:
    30443044                    {
    3045                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3046                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(VideoRate)(ValueUnion.u32));
     3045                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3046                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoRate)(ValueUnion.u32));
    30473047                        break;
    30483048                    }
    30493049                    case MODIFYVM_RECORD_VIDEO_FPS:
    30503050                    {
    3051                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3052                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(VideoFPS)(ValueUnion.u32));
     3051                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3052                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(VideoFPS)(ValueUnion.u32));
    30533053                        break;
    30543054                    }
    30553055                    case MODIFYVM_RECORD_MAXTIME:
    30563056                    {
    3057                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3058                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(MaxTime)(ValueUnion.u32));
     3057                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3058                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(MaxTime)(ValueUnion.u32));
    30593059                        break;
    30603060                    }
    30613061                    case MODIFYVM_RECORD_MAXSIZE:
    30623062                    {
    3063                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3064                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(MaxFileSize)(ValueUnion.u32));
     3063                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3064                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(MaxFileSize)(ValueUnion.u32));
    30653065                        break;
    30663066                    }
     
    30683068                    {
    30693069                        Bstr bstr(ValueUnion.psz);
    3070                         for (size_t i = 0; i < saRecordScreenScreens.size(); ++i)
    3071                             CHECK_ERROR(saRecordScreenScreens[i], COMSETTER(Options)(bstr.raw()));
     3070                        for (size_t i = 0; i < saRecordingScreenScreens.size(); ++i)
     3071                            CHECK_ERROR(saRecordingScreenScreens[i], COMSETTER(Options)(bstr.raw()));
    30723072                        break;
    30733073                    }
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp

    r75341 r75361  
    375375            break;
    376376        }
    377         case KVBoxEventType_OnRecordChanged:
     377        case KVBoxEventType_OnRecordingChanged:
    378378        {
    379379            emit sigRecordingChange();
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElements.cpp

    r75341 r75361  
    4444# include "CMediumAttachment.h"
    4545# include "CAudioAdapter.h"
    46 # include "CRecordSettings.h"
    47 # include "CRecordScreenSettings.h"
     46# include "CRecordingSettings.h"
     47# include "CRecordingScreenSettings.h"
    4848# include "CNetworkAdapter.h"
    4949# include "CSerialPort.h"
     
    450450
    451451        /* Recording info: */
    452         CRecordSettings comRecordingSettings = machine.GetRecordSettings();
     452        CRecordingSettings comRecordingSettings = machine.GetRecordingSettings();
    453453        if (comRecordingSettings.GetEnabled())
    454454        {
    455455            /* For now all screens have the same config: */
    456             CRecordScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
     456            CRecordingScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
    457457
    458458            /** @todo r=andy Refine these texts (wrt audio and/or video). */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIConsoleEventHandler.cpp

    r75341 r75361  
    188188        << KVBoxEventType_OnVRDEServerChanged
    189189        << KVBoxEventType_OnVRDEServerInfoChanged
    190         << KVBoxEventType_OnRecordChanged
     190        << KVBoxEventType_OnRecordingChanged
    191191        << KVBoxEventType_OnUSBControllerChanged
    192192        << KVBoxEventType_OnUSBDeviceStateChanged
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp

    r75341 r75361  
    4343/* COM includes: */
    4444# include "CAudioAdapter.h"
    45 # include "CRecordSettings.h"
    46 # include "CRecordScreenSettings.h"
     45# include "CRecordingSettings.h"
     46# include "CRecordingScreenSettings.h"
    4747# include "CConsole.h"
    4848# include "CMachine.h"
     
    884884
    885885        /* Update indicator state early: */
    886         CRecordSettings comRecordingSettings = comMachine.GetRecordSettings();
     886        CRecordingSettings comRecordingSettings = comMachine.GetRecordingSettings();
    887887        Assert(comRecordingSettings.isOk());
    888888        if (!comRecordingSettings.GetEnabled())
     
    918918
    919919                /* For now all screens have the same config: */
    920                 CRecordScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
     920                CRecordingScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
    921921                Assert(comRecordingScreen0Settings.isOk());
    922922
     
    955955            return;
    956956
    957         CRecordSettings comRecordingSettings = comMachine.GetRecordSettings();
     957        CRecordingSettings comRecordingSettings = comMachine.GetRecordingSettings();
    958958        /* For now all screens have the same config: */
    959         CRecordScreenSettings recordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
    960         if (recordingScreen0Settings.IsFeatureEnabled(KRecordFeature_Video))
     959        CRecordingScreenSettings recordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
     960        if (recordingScreen0Settings.IsFeatureEnabled(KRecordingFeature_Video))
    961961            m_enmRecordingMode = (UIIndicatorStateRecordingMode)((int)m_enmRecordingMode | (int)UIIndicatorStateRecordingMode_Video);
    962962
    963         if (recordingScreen0Settings.IsFeatureEnabled(KRecordFeature_Audio))
     963        if (recordingScreen0Settings.IsFeatureEnabled(KRecordingFeature_Audio))
    964964            m_enmRecordingMode = (UIIndicatorStateRecordingMode)((int)m_enmRecordingMode | (int)UIIndicatorStateRecordingMode_Audio);
    965965    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r75341 r75361  
    7777/* COM includes: */
    7878# include "CAudioAdapter.h"
    79 # include "CRecordSettings.h"
     79# include "CRecordingSettings.h"
    8080# include "CVirtualBoxErrorInfo.h"
    8181# include "CMachineDebugger.h"
     
    21042104
    21052105    /* Make sure something had changed: */
    2106     CRecordSettings comRecordingSettings = machine().GetRecordSettings();
     2106    CRecordingSettings comRecordingSettings = machine().GetRecordingSettings();
    21072107    if (comRecordingSettings.GetEnabled() == static_cast<BOOL>(fEnabled))
    21082108        return;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r75341 r75361  
    6060/* COM includes: */
    6161# include "CAudioAdapter.h"
    62 # include "CRecordSettings.h"
     62# include "CRecordingSettings.h"
    6363# include "CSystemProperties.h"
    6464# include "CStorageController.h"
     
    724724void UISession::sltRecordingChange()
    725725{
    726     CRecordSettings comRecordingSettings = machine().GetRecordSettings();
     726    CRecordingSettings comRecordingSettings = machine().GetRecordingSettings();
    727727
    728728    /* Check/Uncheck Capture action depending on feature status: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r75341 r75361  
    3131
    3232/* COM includes: */
    33 # include "CRecordSettings.h"
    34 # include "CRecordScreenSettings.h"
     33# include "CRecordingSettings.h"
     34# include "CRecordingScreenSettings.h"
    3535# include "CExtPack.h"
    3636# include "CExtPackManager.h"
     
    383383
    384384    /* Gather old 'Recording' data: */
    385     CRecordSettings recordingSettings = m_machine.GetRecordSettings();
     385    CRecordingSettings recordingSettings = m_machine.GetRecordingSettings();
    386386    Assert(recordingSettings.isNotNull());
    387387    oldDisplayData.m_fRecordingEnabled = recordingSettings.GetEnabled();
    388388
    389389    /* For now we're using the same settings for all screens; so get settings from screen 0 and work with that. */
    390     CRecordScreenSettings recordingScreen0Settings = recordingSettings.GetScreenSettings(0);
     390    CRecordingScreenSettings recordingScreen0Settings = recordingSettings.GetScreenSettings(0);
    391391    if (!recordingScreen0Settings.isNull())
    392392    {
     
    400400    }
    401401
    402     CRecordScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();
     402    CRecordingScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();
    403403    oldDisplayData.m_vecRecordingScreens.resize(recordingScreenSettingsVector.size());
    404404    for (int iScreenIndex = 0; iScreenIndex < recordingScreenSettingsVector.size(); ++iScreenIndex)
    405405    {
    406         CRecordScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);
     406        CRecordingScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);
    407407        if (!recordingScreenSettings.isNull())
    408408            oldDisplayData.m_vecRecordingScreens[iScreenIndex] = recordingScreenSettings.GetEnabled();
     
    15111511        const UIDataSettingsMachineDisplay &newDisplayData = m_pCache->data();
    15121512
    1513         CRecordSettings recordingSettings = m_machine.GetRecordSettings();
     1513        CRecordingSettings recordingSettings = m_machine.GetRecordingSettings();
    15141514        Assert(recordingSettings.isNotNull());
    15151515
     
    15331533                if (fSuccess)
    15341534                {
    1535                     CRecordScreenSettingsVector RecordScreenSettingsVector = recordingSettings.GetScreens();
     1535                    CRecordingScreenSettingsVector RecordScreenSettingsVector = recordingSettings.GetScreens();
    15361536                    for (int iScreenIndex = 0; fSuccess && iScreenIndex < RecordScreenSettingsVector.size(); ++iScreenIndex)
    15371537                    {
     
    15391539                            continue;
    15401540
    1541                         CRecordScreenSettings recordingScreenSettings = RecordScreenSettingsVector.at(iScreenIndex);
     1541                        CRecordingScreenSettings recordingScreenSettings = RecordScreenSettingsVector.at(iScreenIndex);
    15421542                        recordingScreenSettings.SetEnabled(newDisplayData.m_vecRecordingScreens[iScreenIndex]);
    15431543                        fSuccess = recordingScreenSettings.isOk();
     
    15481548            else
    15491549            {
    1550                 CRecordScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();
     1550                CRecordingScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();
    15511551                for (int iScreenIndex = 0; fSuccess && iScreenIndex < recordingScreenSettingsVector.size(); ++iScreenIndex)
    15521552                {
     
    15541554                        continue;
    15551555
    1556                     CRecordScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);
     1556                    CRecordingScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);
    15571557
    15581558                    // We should save all the options *before* 'Recording' activation.
     
    16231623        else
    16241624        {
    1625             CRecordScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();
     1625            CRecordingScreenSettingsVector recordingScreenSettingsVector = recordingSettings.GetScreens();
    16261626            for (int iScreenIndex = 0; fSuccess && iScreenIndex < recordingScreenSettingsVector.size(); ++iScreenIndex)
    16271627            {
     
    16291629                    continue;
    16301630
    1631                 CRecordScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);
     1631                CRecordingScreenSettings recordingScreenSettings = recordingScreenSettingsVector.at(iScreenIndex);
    16321632
    16331633                /* Save recording file path: */
  • trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotDetailsWidget.cpp

    r75341 r75361  
    4848/* COM includes: */
    4949# include "CAudioAdapter.h"
    50 # include "CRecordSettings.h"
    51 # include "CRecordScreenSettings.h"
     50# include "CRecordingSettings.h"
     51# include "CRecordingScreenSettings.h"
    5252# include "CMachine.h"
    5353# include "CMedium.h"
     
    17481748    QStringList aReport;
    17491749    /* Acquire recording status: */
    1750     CRecordSettings comRecordingSettings = comMachine.GetRecordSettings();
     1750    CRecordingSettings comRecordingSettings = comMachine.GetRecordingSettings();
    17511751    /* For now all screens have the same config: */
    1752     CRecordScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
     1752    CRecordingScreenSettings comRecordingScreen0Settings = comRecordingSettings.GetScreenSettings(0);
    17531753    if (comRecordingScreen0Settings.GetEnabled())
    17541754    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette