VirtualBox

Changeset 36275 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Mar 14, 2011 6:01:34 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70549
Message:

Main/NetworkAdapter: Bandwidth group attribute implementation (#5582)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/NetworkAdapterImpl.h

    r36082 r36275  
    2323#include "VirtualBoxBase.h"
    2424#include "NATEngineImpl.h"
     25#include "BandwidthGroupImpl.h"
    2526
    2627class GuestOSType;
     
    7172        Bstr mNATNetwork;
    7273        ULONG mBootPriority;
    73         ULONG mBandwidthLimit;
     74        ComObjPtr<BandwidthGroup> mBandwidthGroup;
    7475    };
    7576
     
    125126    STDMETHOD(COMGETTER(BootPriority)) (ULONG *aBootPriority);
    126127    STDMETHOD(COMSETTER(BootPriority)) (ULONG aBootPriority);
    127     STDMETHOD(COMGETTER(BandwidthLimit)) (ULONG *aLimit);
    128     STDMETHOD(COMSETTER(BandwidthLimit)) (ULONG aLimit);
     128    STDMETHOD(COMGETTER(BandwidthGroup)) (IBandwidthGroup **aBwGroup);
     129    STDMETHOD(COMSETTER(BandwidthGroup)) (IBandwidthGroup *aBwGroup);
    129130
    130131    // INetworkAdapter methods
     
    138139    // public methods only for internal purposes
    139140
    140     HRESULT loadSettings(const settings::NetworkAdapter &data);
     141    HRESULT loadSettings(BandwidthControl *bwctl, const settings::NetworkAdapter &data);
    141142    HRESULT saveSettings(settings::NetworkAdapter &data);
    142143
     
    151152    void detach();
    152153    void generateMACAddress();
     154    HRESULT updateMacAddress(Utf8Str aMacAddress);
     155    void updateBandwidthGroup(BandwidthGroup *aBwGroup);
    153156
    154157    Machine * const     mParent;
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