VirtualBox

Changeset 75361 in vbox for trunk/src/VBox/Main/include


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/Main/include
Files:
6 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r75354 r75361  
    145145    void i_recordingDestroy(void);
    146146    int i_recordingEnable(BOOL fEnable, util::AutoWriteLock *pAutoLock);
    147     int i_recordingGetSettings(settings::RecordSettings &Settings);
     147    int i_recordingGetSettings(settings::RecordingSettings &Settings);
    148148    int i_recordingStart(void);
    149149    int i_recordingStop(void);
     
    179179    HRESULT i_onDnDModeChange(DnDMode_T aDnDMode);
    180180    HRESULT i_onVRDEServerChange(BOOL aRestart);
    181     HRESULT i_onRecordChange();
     181    HRESULT i_onRecordingChange();
    182182    HRESULT i_onUSBControllerChange();
    183183    HRESULT i_onSharedFolderChange(BOOL aGlobal);
  • trunk/src/VBox/Main/include/DrvAudioRec.h

    r75354 r75361  
    4545public:
    4646
    47     int applyConfiguration(const settings::RecordSettings &Settings);
     47    int applyConfiguration(const settings::RecordingSettings &Settings);
    4848
    4949public:
     
    6161    struct DRVAUDIORECORDING         *mpDrv;
    6262    /** Capturing configuration used for configuring the driver. */
    63     struct settings::RecordSettings mVideoRecCfg;
     63    struct settings::RecordingSettings mVideoRecCfg;
    6464};
    6565
  • trunk/src/VBox/Main/include/MachineImpl.h

    r75341 r75361  
    3232#include "ParallelPortImpl.h"
    3333#include "BIOSSettingsImpl.h"
    34 #include "RecordSettingsImpl.h"
     34#include "RecordingSettingsImpl.h"
    3535#include "StorageControllerImpl.h"          // required for MachineImpl.h to compile on Windows
    3636#include "USBControllerImpl.h"              // required for MachineImpl.h to compile on Windows
     
    266266        GraphicsControllerType_T mGraphicsControllerType;
    267267        ULONG               mVRAMSize;
    268         settings::RecordSettings mRecordSettings;
     268        settings::RecordingSettings mRecordSettings;
    269269        ULONG               mMonitorCount;
    270270        BOOL                mHWVirtExEnabled;
     
    777777    const ComObjPtr<USBDeviceFilters>  mUSBDeviceFilters;
    778778    const ComObjPtr<BIOSSettings>      mBIOSSettings;
    779     const ComObjPtr<RecordSettings>    mRecordSettings;
     779    const ComObjPtr<RecordingSettings> mRecordingSettings;
    780780    const ComObjPtr<BandwidthControl>  mBandwidthControl;
    781781
     
    825825
    826826    friend class Appliance;
    827     friend class RecordSettings;
    828     friend class RecordScreenSettings;
     827    friend class RecordingSettings;
     828    friend class RecordingScreenSettings;
    829829    friend class SessionMachine;
    830830    friend class SnapshotMachine;
     
    880880    HRESULT setMonitorCount(ULONG aMonitorCount);
    881881    HRESULT getBIOSSettings(ComPtr<IBIOSSettings> &aBIOSSettings);
    882     HRESULT getRecordSettings(ComPtr<IRecordSettings> &aRecordSettings);
     882    HRESULT getRecordingSettings(ComPtr<IRecordingSettings> &aRecordingSettings);
    883883    HRESULT getFirmwareType(FirmwareType_T *aFirmwareType);
    884884    HRESULT setFirmwareType(FirmwareType_T aFirmwareType);
  • trunk/src/VBox/Main/include/Recording.h

    r75354 r75361  
    4141    RecordingContext(Console *pConsole);
    4242
    43     RecordingContext(Console *pConsole, const settings::RecordSettings &a_Settings);
     43    RecordingContext(Console *pConsole, const settings::RecordingSettings &a_Settings);
    4444
    4545    virtual ~RecordingContext(void);
     
    4747public:
    4848
    49     const settings::RecordSettings &GetConfig(void) const;
     49    const settings::RecordingSettings &GetConfig(void) const;
    5050    RecordingStream *GetStream(unsigned uScreen) const;
    5151    size_t GetStreamCount(void) const;
    5252
    53     int Create(const settings::RecordSettings &a_Settings);
     53    int Create(const settings::RecordingSettings &a_Settings);
    5454    int Destroy(void);
    5555
     
    6464public:
    6565
    66     bool IsFeatureEnabled(RecordFeature_T enmFeature) const;
     66    bool IsFeatureEnabled(RecordingFeature_T enmFeature) const;
    6767    bool IsReady(void) const;
    6868    bool IsReady(uint32_t uScreen, uint64_t uTimeStampMs) const;
     
    7272protected:
    7373
    74     int createInternal(const settings::RecordSettings &a_Settings);
     74    int createInternal(const settings::RecordingSettings &a_Settings);
    7575    int startInternal(void);
    7676    int stopInternal(void);
     
    104104    Console                  *pConsole;
    105105    /** Used recording configuration. */
    106     settings::RecordSettings  Settings;
     106    settings::RecordingSettings  Settings;
    107107    /** The current state. */
    108108    RECORDINGSTS              enmState;
  • trunk/src/VBox/Main/include/RecordingScreenSettingsImpl.h

    r75360 r75361  
    33/** @file
    44 *
    5  * VirtualBox COM class implementation - Capture settings of one virtual screen.
     5 * VirtualBox COM class implementation - Recording settings of one virtual screen.
    66 */
    77
     
    1818 */
    1919
    20 #ifndef ____H_RecordScreenSettings
    21 #define ____H_RecordScreenSettings
     20#ifndef ____H_RecordingScreenSettings
     21#define ____H_RecordingScreenSettings
    2222
    23 #include "RecordScreenSettingsWrap.h"
     23#include "RecordingScreenSettingsWrap.h"
    2424
    25 class RecordSettings;
     25class RecordingSettings;
    2626
    2727namespace settings
    2828{
    29     struct RecordScreenSettings;
     29    struct RecordingScreenSettings;
    3030}
    3131
    32 class ATL_NO_VTABLE RecordScreenSettings :
    33     public RecordScreenSettingsWrap
     32class ATL_NO_VTABLE RecordingScreenSettings :
     33    public RecordingScreenSettingsWrap
    3434{
    3535public:
    3636
    37     DECLARE_EMPTY_CTOR_DTOR(RecordScreenSettings)
     37    DECLARE_EMPTY_CTOR_DTOR(RecordingScreenSettings)
    3838
    3939    HRESULT FinalConstruct();
     
    4141
    4242    // public initializer/uninitializer for internal purposes only
    43     HRESULT init(RecordSettings *aParent, uint32_t uScreenId, const settings::RecordScreenSettings& data);
    44     HRESULT init(RecordSettings *aParent, RecordScreenSettings *that);
    45     HRESULT initCopy(RecordSettings *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);
    4646    void uninit();
    4747
    4848    // public methods only for internal purposes
    49     HRESULT i_loadSettings(const settings::RecordScreenSettings &data);
    50     HRESULT i_saveSettings(settings::RecordScreenSettings &data);
     49    HRESULT i_loadSettings(const settings::RecordingScreenSettings &data);
     50    HRESULT i_saveSettings(settings::RecordingScreenSettings &data);
    5151
    5252    void i_rollback();
    5353    void i_commit();
    54     void i_copyFrom(RecordScreenSettings *aThat);
     54    void i_copyFrom(RecordingScreenSettings *aThat);
    5555    void i_applyDefaults();
    5656
    5757private:
    5858
    59     // wrapped IRecordScreenSettings methods
    60     HRESULT isFeatureEnabled(RecordFeature_T aFeature, BOOL *aEnabled);
     59    // wrapped IRecordingScreenSettings methods
     60    HRESULT isFeatureEnabled(RecordingFeature_T aFeature, BOOL *aEnabled);
    6161
    62     // wrapped IRecordScreenSettings properties
     62    // wrapped IRecordingScreenSettings properties
    6363    HRESULT getId(ULONG *id);
    6464    HRESULT getEnabled(BOOL *enabled);
     
    6666    HRESULT getFeatures(ULONG *aFeatures);
    6767    HRESULT setFeatures(ULONG aFeatures);
    68     HRESULT getDestination(RecordDestination_T *aDestination);
    69     HRESULT setDestination(RecordDestination_T aDestination);
     68    HRESULT getDestination(RecordingDestination_T *aDestination);
     69    HRESULT setDestination(RecordingDestination_T aDestination);
    7070
    7171    HRESULT getFileName(com::Utf8Str &aFileName);
     
    7878    HRESULT setOptions(const com::Utf8Str &aOptions);
    7979
    80     HRESULT getAudioCodec(RecordAudioCodec_T *aCodec);
    81     HRESULT setAudioCodec(RecordAudioCodec_T aCodec);
     80    HRESULT getAudioCodec(RecordingAudioCodec_T *aCodec);
     81    HRESULT setAudioCodec(RecordingAudioCodec_T aCodec);
    8282    HRESULT getAudioHz(ULONG *aHz);
    8383    HRESULT setAudioHz(ULONG aHz);
     
    8787    HRESULT setAudioChannels(ULONG aChannels);
    8888
    89     HRESULT getVideoCodec(RecordVideoCodec_T *aCodec);
    90     HRESULT setVideoCodec(RecordVideoCodec_T aCodec);
     89    HRESULT getVideoCodec(RecordingVideoCodec_T *aCodec);
     90    HRESULT setVideoCodec(RecordingVideoCodec_T aCodec);
    9191    HRESULT getVideoWidth(ULONG *aVideoWidth);
    9292    HRESULT setVideoWidth(ULONG aVideoWidth);
     
    9999    HRESULT getVideoFPS(ULONG *aVideoFPS);
    100100    HRESULT setVideoFPS(ULONG aVideoFPS);
    101     HRESULT getVideoScalingMethod(RecordVideoScalingMethod_T *aMode);
    102     HRESULT setVideoScalingMethod(RecordVideoScalingMethod_T aMode);
     101    HRESULT getVideoScalingMethod(RecordingVideoScalingMethod_T *aMode);
     102    HRESULT setVideoScalingMethod(RecordingVideoScalingMethod_T aMode);
    103103
    104104private:
     
    113113};
    114114
    115 #endif // ____H_RecordScreenSettings
     115#endif // ____H_RecordingScreenSettings
    116116
  • trunk/src/VBox/Main/include/RecordingSettingsImpl.h

    r75360 r75361  
    2121#define ____H_RecordSettings
    2222
    23 #include "RecordSettingsWrap.h"
     23#include "RecordingSettingsWrap.h"
    2424
    2525namespace settings
    2626{
    27     struct RecordSettings;
    28     struct RecordScreenSettings;
     27    struct RecordingSettings;
     28    struct RecordingScreenSettings;
    2929}
    3030
    31 class RecordScreenSettings;
     31class RecordingScreenSettings;
    3232
    33 class ATL_NO_VTABLE RecordSettings :
    34     public RecordSettingsWrap
     33class ATL_NO_VTABLE RecordingSettings :
     34    public RecordingSettingsWrap
    3535{
    3636public:
    3737
    38     DECLARE_EMPTY_CTOR_DTOR(RecordSettings)
     38    DECLARE_EMPTY_CTOR_DTOR(RecordingSettings)
    3939
    4040    HRESULT FinalConstruct();
     
    4343    // public initializer/uninitializer for internal purposes only
    4444    HRESULT init(Machine *parent);
    45     HRESULT init(Machine *parent, RecordSettings *that);
    46     HRESULT initCopy(Machine *parent, RecordSettings *that);
     45    HRESULT init(Machine *parent, RecordingSettings *that);
     46    HRESULT initCopy(Machine *parent, RecordingSettings *that);
    4747    void uninit();
    4848
    4949    // public methods only for internal purposes
    50     HRESULT i_loadSettings(const settings::RecordSettings &data);
    51     HRESULT i_saveSettings(settings::RecordSettings &data);
     50    HRESULT i_loadSettings(const settings::RecordingSettings &data);
     51    HRESULT i_saveSettings(settings::RecordingSettings &data);
    5252
    5353    void i_rollback();
    5454    void i_commit();
    55     void i_copyFrom(RecordSettings *aThat);
     55    void i_copyFrom(RecordingSettings *aThat);
    5656    void i_applyDefaults(void);
    5757
     
    6363
    6464    /** Map of screen settings objects. The key specifies the screen ID. */
    65     typedef std::map <uint32_t, ComObjPtr<RecordScreenSettings> > RecordScreenSettingsMap;
     65    typedef std::map <uint32_t, ComObjPtr<RecordingScreenSettings> > RecordScreenSettingsMap;
    6666
    6767    void i_reset(void);
    6868    int i_syncToMachineDisplays(void);
    69     int i_createScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId, const settings::RecordScreenSettings &data);
     69    int i_createScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId, const settings::RecordingScreenSettings &data);
    7070    int i_destroyScreenObj(RecordScreenSettingsMap &screenSettingsMap, uint32_t uScreenId);
    7171    int i_destroyAllScreenObj(RecordScreenSettingsMap &screenSettingsMap);
     
    7373private:
    7474
    75     // wrapped IRecordSettings properties
     75    // wrapped IRecordingSettings properties
    7676    HRESULT getEnabled(BOOL *enabled);
    7777    HRESULT setEnabled(BOOL enable);
    78     HRESULT getScreens(std::vector<ComPtr<IRecordScreenSettings> > &aRecordScreenSettings);
     78    HRESULT getScreens(std::vector<ComPtr<IRecordingScreenSettings> > &aRecordScreenSettings);
    7979
    80     // wrapped IRecordSettings methods
    81     HRESULT getScreenSettings(ULONG uScreenId, ComPtr<IRecordScreenSettings> &aRecordScreenSettings);
     80    // wrapped IRecordingSettings methods
     81    HRESULT getScreenSettings(ULONG uScreenId, ComPtr<IRecordingScreenSettings> &aRecordScreenSettings);
    8282
    8383private:
  • trunk/src/VBox/Main/include/RecordingStream.h

    r75355 r75361  
    111111    RecordingStream(RecordingContext *pCtx);
    112112
    113     RecordingStream(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings);
     113    RecordingStream(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings);
    114114
    115115    virtual ~RecordingStream(void);
     
    117117public:
    118118
    119     int Init(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings);
     119    int Init(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings);
    120120    int Uninit(void);
    121121
     
    124124                       uint32_t uSrcWidth, uint32_t uSrcHeight, uint8_t *puSrcData, uint64_t uTimeStampMs);
    125125
    126     const settings::RecordScreenSettings &GetConfig(void) const;
     126    const settings::RecordingScreenSettings &GetConfig(void) const;
    127127    bool IsLimitReached(uint64_t tsNowMs) const;
    128128    bool IsReady(void) const;
     
    130130protected:
    131131
    132     int open(const settings::RecordScreenSettings &Settings);
     132    int open(const settings::RecordingScreenSettings &Settings);
    133133    int close(void);
    134134
    135     int initInternal(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordScreenSettings &Settings);
     135    int initInternal(RecordingContext *pCtx, uint32_t uScreen, const settings::RecordingScreenSettings &Settings);
    136136    int uninitInternal(void);
    137137
     
    205205    } Video;
    206206
    207     settings::RecordScreenSettings ScreenSettings;
     207    settings::RecordingScreenSettings ScreenSettings;
    208208    /** Common set of recording (data) blocks, needed for
    209209     *  multiplexing to all recording streams. */
  • trunk/src/VBox/Main/include/SessionImpl.h

    r75341 r75361  
    102102    HRESULT onCPUExecutionCapChange(ULONG aExecutionCap);
    103103    HRESULT onVRDEServerChange(BOOL aRestart);
    104     HRESULT onRecordChange();
     104    HRESULT onRecordingChange();
    105105    HRESULT onUSBControllerChange();
    106106    HRESULT onSharedFolderChange(BOOL aGlobal);
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