Changeset 95639 in vbox for trunk/include/VBox
- Timestamp:
- Jul 14, 2022 8:30:45 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r95364 r95639 636 636 bool isFeatureEnabled(RecordingFeature_T enmFeature) const; 637 637 638 static const char *getDefaultOptions(void); 639 638 640 bool operator==(const RecordingScreenSettings &d) const; 639 641 … … 641 643 bool fEnabled; // requires settings version 1.14 (VirtualBox 4.3) 642 644 /** Destination to record to. */ 643 RecordingDestination_T enmDest; /** @todo Implement with next settings version bump. */645 RecordingDestination_T enmDest; 644 646 /** Which features are enable or not. */ 645 647 RecordingFeatureMap featureMap; /** @todo Implement with next settings version bump. */ 646 648 /** Maximum time (in s) to record. If set to 0, no time limit is set. */ 647 649 uint32_t ulMaxTimeS; // requires settings version 1.14 (VirtualBox 4.3) 648 /** Options string for hidden / advanced / experimental features. */ 650 /** Options string for hidden / advanced / experimental features. 651 * Use RecordingScreenSettings::getDefaultOptions(). */ 649 652 com::Utf8Str strOptions; // new since VirtualBox 5.2. 650 653 … … 703 706 704 707 /** Maximum size (in MB) the file is allowed to have. 705 * When reaching the limit, recording will stop. */708 * When reaching the limit, recording will stop. 0 means no limit. */ 706 709 uint32_t ulMaxSizeMB; // requires settings version 1.14 (VirtualBox 4.3) 707 /** Absolute file name path to use for recording. */ 710 /** Absolute file name path to use for recording. 711 * When empty, this is considered as being the default setting. */ 708 712 com::Utf8Str strName; // requires settings version 1.14 (VirtualBox 4.3) 709 713 } File; … … 712 716 /** Map for keeping settings per virtual screen. 713 717 * The key specifies the screen ID. */ 714 typedef std::map<uint32_t, RecordingScreenSettings> RecordingScreenMap; 718 typedef std::map<uint32_t, RecordingScreenSettings> RecordingScreenSettingsMap; 719 720 /** 721 * Common recording settings, shared among all per-screen recording settings. 722 */ 723 struct RecordingCommonSettings 724 { 725 RecordingCommonSettings(); 726 727 void applyDefaults(void); 728 729 bool areDefaultSettings(void) const; 730 731 bool operator==(const RecordingCommonSettings &d) const; 732 733 /** Whether recording as a whole is enabled or disabled. */ 734 bool fEnabled; // requires settings version 1.14 (VirtualBox 4.3) 735 }; 715 736 716 737 /** … … 727 748 bool areDefaultSettings(void) const; 728 749 729 bool operator==(const RecordingSettings & d) const;730 731 /** Whether recording as a whole is enabled or disabled. */732 bool fEnabled; // requires settings version 1.14 (VirtualBox 4.3)750 bool operator==(const RecordingSettings &that) const; 751 752 /** Common settings for all per-screen recording settings. */ 753 RecordingCommonSettings common; 733 754 /** Map of handled recording screen settings. 734 755 * The key specifies the screen ID. */ 735 RecordingScreen Map mapScreens;756 RecordingScreenSettingsMap mapScreens; 736 757 }; 737 758 … … 1235 1256 BIOSSettings biosSettings; 1236 1257 NvramSettings nvramSettings; 1237 RecordingSettings recordingSettings;1238 1258 GraphicsAdapter graphicsAdapter; 1239 1259 USB usbSettings; … … 1311 1331 bool operator==(const Snapshot &s) const; 1312 1332 1313 com::Guid uuid; 1314 com::Utf8Str strName, 1315 strDescription; // optional 1316 RTTIMESPEC timestamp; 1317 1318 com::Utf8Str strStateFile; // for online snapshots only 1319 1320 Hardware hardware; 1321 1322 Debugging debugging; 1323 Autostart autostart; 1324 1325 SnapshotsList llChildSnapshots; 1333 com::Guid uuid; 1334 com::Utf8Str strName, 1335 strDescription; // optional 1336 RTTIMESPEC timestamp; 1337 1338 com::Utf8Str strStateFile; // for online snapshots only 1339 1340 Hardware hardware; 1341 1342 Debugging debugging; 1343 Autostart autostart; 1344 RecordingSettings recordingSettings; 1345 1346 SnapshotsList llChildSnapshots; 1326 1347 1327 1348 static const struct Snapshot Empty; … … 1391 1412 Debugging debugging; 1392 1413 Autostart autostart; 1414 RecordingSettings recordingSettings; 1393 1415 1394 1416 StringsMap mapExtraDataItems; … … 1447 1469 void readDebugging(const xml::ElementNode &elmDbg, Debugging &dbg); 1448 1470 void readAutostart(const xml::ElementNode &elmAutostart, Autostart &autostrt); 1471 void readRecordingSettings(const xml::ElementNode &elmRecording, RecordingSettings &recording); 1449 1472 void readGroups(const xml::ElementNode &elmGroups, StringsList &llGroups); 1450 1473 bool readSnapshot(const com::Guid &curSnapshotUuid, const xml::ElementNode &elmSnapshot, Snapshot &snap); … … 1461 1484 void buildDebuggingXML(xml::ElementNode &elmParent, const Debugging &dbg); 1462 1485 void buildAutostartXML(xml::ElementNode &elmParent, const Autostart &autostrt); 1486 void buildRecordingXML(xml::ElementNode &elmParent, const RecordingSettings &recording); 1463 1487 void buildGroupsXML(xml::ElementNode &elmParent, const StringsList &llGroups); 1464 1488 void buildSnapshotXML(xml::ElementNode &elmParent, const Snapshot &snap);
Note:
See TracChangeset
for help on using the changeset viewer.