VirtualBox

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


Ignore:
Timestamp:
May 21, 2012 3:23:40 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78064
Message:

Main,include,VBoxManage: smartcard support: IMachine::EmulatedUSBCardReaderEnabled.

File:
1 edited

Legend:

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

    r40652 r41371  
    16061606          keyboardHidType(KeyboardHidType_PS2Keyboard),
    16071607          chipsetType(ChipsetType_PIIX3),
     1608          fEmulatedUSBCardReader(false),
    16081609          clipboardMode(ClipboardMode_Bidirectional),
    16091610          ulMemoryBalloonSize(0),
     
    16681669                  && (keyboardHidType           == h.keyboardHidType)
    16691670                  && (chipsetType               == h.chipsetType)
     1671                  && (fEmulatedUSBCardReader    == h.fEmulatedUSBCardReader)
    16701672                  && (vrdeSettings              == h.vrdeSettings)
    16711673                  && (biosSettings              == h.biosSettings)
     
    28202822                    hw.pciAttachments.push_back(hpda);
    28212823                }
     2824            }
     2825        }
     2826        else if (pelmHwChild->nameEquals("EmulatedUSB"))
     2827        {
     2828            const xml::ElementNode *pelmCardReader;
     2829
     2830            if ((pelmCardReader = pelmHwChild->findChildElement("CardReader")))
     2831            {
     2832                pelmCardReader->getAttributeValue("enabled", hw.fEmulatedUSBCardReader);
    28222833            }
    28232834        }
     
    40424053    }
    40434054
     4055    if (m->sv >= SettingsVersion_v1_12)
     4056    {
     4057        xml::ElementNode *pelmEmulatedUSB = pelmHardware->createChild("EmulatedUSB");
     4058        xml::ElementNode *pelmCardReader = pelmEmulatedUSB->createChild("CardReader");
     4059
     4060        pelmCardReader->setAttribute("enabled", hw.fEmulatedUSBCardReader);
     4061    }
     4062
    40444063    xml::ElementNode *pelmGuest = pelmHardware->createChild("Guest");
    40454064    pelmGuest->setAttribute("memoryBalloonSize", hw.ulMemoryBalloonSize);
     
    46484667    if (m->sv < SettingsVersion_v1_12)
    46494668    {
     4669        // 4.1: Emulated USB devices.
     4670        if (hardwareMachine.fEmulatedUSBCardReader)
     4671            m->sv = SettingsVersion_v1_12;
     4672    }
     4673
     4674    if (m->sv < SettingsVersion_v1_12)
     4675    {
    46504676        // VirtualBox 4.1 adds PCI passthrough.
    46514677        if (hardwareMachine.pciAttachments.size())
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