VirtualBox

Changeset 44191 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Dec 20, 2012 5:36:56 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82916
Message:

include,ExtPacks\Puel\UsbWebcam,Main,VRDP,VBoxManage: emulated USB webcam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r44039 r44191  
    16171617          keyboardHIDType(KeyboardHIDType_PS2Keyboard),
    16181618          chipsetType(ChipsetType_PIIX3),
     1619          fEmulatedUSBWebcam(false),
    16191620          fEmulatedUSBCardReader(false),
    16201621          clipboardMode(ClipboardMode_Disabled),
     
    16851686                  && (keyboardHIDType           == h.keyboardHIDType)
    16861687                  && (chipsetType               == h.chipsetType)
     1688                  && (fEmulatedUSBWebcam        == h.fEmulatedUSBWebcam)
    16871689                  && (fEmulatedUSBCardReader    == h.fEmulatedUSBCardReader)
    16881690                  && (vrdeSettings              == h.vrdeSettings)
     
    28732875        else if (pelmHwChild->nameEquals("EmulatedUSB"))
    28742876        {
    2875             const xml::ElementNode *pelmCardReader;
     2877            const xml::ElementNode *pelmCardReader, *pelmWebcam;
    28762878
    28772879            if ((pelmCardReader = pelmHwChild->findChildElement("CardReader")))
    28782880            {
    28792881                pelmCardReader->getAttributeValue("enabled", hw.fEmulatedUSBCardReader);
     2882            }
     2883
     2884            if ((pelmWebcam = pelmHwChild->findChildElement("Webcam")))
     2885            {
     2886                pelmWebcam->getAttributeValue("enabled", hw.fEmulatedUSBWebcam);
    28802887            }
    28812888        }
     
    41884195    {
    41894196        xml::ElementNode *pelmEmulatedUSB = pelmHardware->createChild("EmulatedUSB");
     4197
    41904198        xml::ElementNode *pelmCardReader = pelmEmulatedUSB->createChild("CardReader");
    4191 
    41924199        pelmCardReader->setAttribute("enabled", hw.fEmulatedUSBCardReader);
     4200
     4201        if (m->sv >= SettingsVersion_v1_13)
     4202        {
     4203            xml::ElementNode *pelmWebcam = pelmEmulatedUSB->createChild("Webcam");
     4204            pelmWebcam->setAttribute("enabled", hw.fEmulatedUSBWebcam);
     4205        }
    41934206    }
    41944207
     
    48804893    }
    48814894
     4895    if (m->sv < SettingsVersion_v1_13)
     4896    {
     4897        /* 4.2: Emulated USB Webcam. */
     4898        if (hardwareMachine.fEmulatedUSBWebcam)
     4899            m->sv = SettingsVersion_v1_13;
     4900    }
     4901
    48824902    if (m->sv < SettingsVersion_v1_12)
    48834903    {
Note: See TracChangeset for help on using the changeset viewer.

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