VirtualBox

Changeset 3928 in vbox for trunk/src


Ignore:
Timestamp:
Jul 30, 2007 7:51:17 PM (17 years ago)
Author:
vboxsync
Message:

Main: Fixed casting of HostUSBDeviceFilter to USBDeviceFilter filter and removed outdated @todo.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui.h

    r3217 r3928  
    589589    /* usb filters page */
    590590
    591     /// @todo currently, we always disable USB UI on XPCOM-based hosts because
    592     /// QueryInterface on CUSBDeviceFilter doesn't return CHostUSBDeviceFilter
    593     /// for host filters (most likely, our XPCOM/IPC/DCONNECT bug).
    594 
    595591#ifdef DEBUG_dmik
    596 #ifdef Q_OS_WIN32
    597592    CHost host = vboxGlobal().virtualBox().GetHost();
    598593    CHostUSBDeviceFilterCollection coll = host.GetUSBDeviceFilters();
     
    600595    {
    601596#endif
    602 #endif
    603597        /* disable the USB host filters category if the USB is
    604598         * not available (i.e. in VirtualBox OSE) */
     
    612606
    613607#ifdef DEBUG_dmik
    614 #ifdef Q_OS_WIN32
    615608        /* Show an error message (if there is any).
    616609         * This message box may be suppressed if the user wishes so. */
     
    629622        lvUSBFilters_currentChanged (lvUSBFilters->firstChild());
    630623    }
    631 #endif
    632624#endif
    633625
     
    10351027    /* fix for usb page */
    10361028
    1037     /// @todo currently, we always disable USB UI on XPCOM-based hosts because
    1038     /// QueryInterface on CUSBDeviceFilter doesn't return CHostUSBDeviceFilter
    1039     /// for host filters (most likely, our XPCOM/IPC/DCONNECT bug).
    1040 
    10411029#ifdef DEBUG_dmik
    1042 #ifdef Q_OS_WIN32
    10431030    CHost host = vboxGlobal().virtualBox().GetHost();
    10441031    CHostUSBDeviceFilterCollection coll = host.GetUSBDeviceFilters();
     
    10461033    {
    10471034#endif
    1048 #endif
    10491035        /* disable the USB host filters category if the USB is
    10501036         * not available (i.e. in VirtualBox OSE) */
     
    10581044
    10591045#ifdef DEBUG_dmik
    1060 #ifdef Q_OS_WIN32
    10611046    }
    10621047#endif
    1063 #endif
    1064 }
     1048}
  • trunk/src/VBox/Main/linux/server.cpp

    r3668 r3928  
    165165NS_IMPL_THREADSAFE_ISUPPORTS2_CI(HostUSBDevice, IUSBDevice, IHostUSBDevice)
    166166NS_DECL_CLASSINFO(HostUSBDeviceFilter)
    167 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(HostUSBDeviceFilter, IHostUSBDeviceFilter)
     167NS_IMPL_THREADSAFE_ISUPPORTS2_CI(HostUSBDeviceFilter, IUSBDeviceFilter, IHostUSBDeviceFilter)
    168168NS_DECL_CLASSINFO(AudioAdapter)
    169169NS_IMPL_THREADSAFE_ISUPPORTS1_CI(AudioAdapter, IAudioAdapter)
Note: See TracChangeset for help on using the changeset viewer.

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