VirtualBox

Ignore:
Timestamp:
Jan 23, 2014 10:10:50 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91739
Message:

Main/HostPower: Introduced global extradata item HostPower/SavestateOnBatteryLow which can be set to "0" to disable automatic VM savestate if the battery reached a critical level

File:
1 edited

Legend:

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

    r46775 r50175  
    3030class HostPowerService
    3131{
    32 public:
    33 
     32  public:
    3433    HostPowerService(VirtualBox *aVirtualBox);
    3534    virtual ~HostPowerService();
    36 
    3735    void notify(Reason_T aReason);
    3836
    39 protected:
     37  protected:
     38    VirtualBox *mVirtualBox;
     39    std::vector<ComPtr<IInternalSessionControl> > mSessionControls;
    4040
    41     VirtualBox *mVirtualBox;
    42 
    43     std::vector<ComPtr<IInternalSessionControl> > mSessionControls;
     41  private:
     42    bool fSavestateOnBatteryLow;
    4443};
    4544
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