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