Changeset 75361 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Nov 9, 2018 12:56:40 PM (6 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 6 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.