VirtualBox

Ignore:
Timestamp:
Feb 28, 2008 6:43:08 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28520
Message:

Main: Reworked enums to avoid 1) weird duplication of enum name when referring to enum values in cross-platform code; 2) possible clashes on Win32 due to putting identifiers like Paused or Disabled to the global namespace (via C enums). In the new style, enums are used like this: a) USBDeviceState_T v = USBDeviceState_Busy from cross-platform non-Qt code; b) KUSBDeviceState v = KUSBDeviceState_Busy from Qt code; c) USBDeviceState v = USBDeviceState_Busy from plain Win32 and d) PRUInt32 USBDeviceState v = USBDeviceState::Busy from plain XPCOM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/HostUSBDeviceImpl.h

    r5999 r7207  
    4242    /** Not supported by the VirtualBox server, not available to
    4343        guests. */
    44     USBDeviceState_USBDeviceNotSupported,
     44    USBDeviceState_NotSupported,
    4545    /** Being used by the host computer exclusively, not available
    4646        to guests. */
    47     USBDeviceState_USBDeviceUnavailable,
     47    USBDeviceState_Unavailable,
    4848    /** Being used by the host computer, potentially available to
    4949       guests. */
    50     USBDeviceState_USBDeviceBusy,
     50    USBDeviceState_Busy,
    5151    /** Not used by the host computer, available to guests. The
    5252        host computer can also start using the device at any time. */
    53     USBDeviceState_USBDeviceAvailable,
     53    USBDeviceState_Available,
    5454    /** Held by the VirtualBox server (ignored by the host computer),
    5555        available to guests. */
    56     USBDeviceState_USBDeviceHeld,
     56    USBDeviceState_Held,
    5757    /** Captured by one of the guest computers, not available to
    5858        anybody else. */
    59     USBDeviceState_USBDeviceCaptured
     59    USBDeviceState_Captured
    6060} USBDeviceState_T;
    6161
     
    9797    void setCaptured ();
    9898    bool isCaptured()
    99         { return mState == USBDeviceState_USBDeviceCaptured; }
     99        { return mState == USBDeviceState_Captured; }
    100100    int  setHostDriven();
    101101    int  reset();
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