VirtualBox

Ignore:
Timestamp:
Jun 26, 2012 9:17:43 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78768
Message:

Main: Implement API to configure autostart/-stop for virtual machines

File:
1 edited

Legend:

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

    r41371 r41914  
    300300
    301301        settings::Debugging  mDebugging;
     302        settings::Autostart  mAutostart;
    302303    };
    303304
     
    477478    STDMETHOD(COMGETTER(AllowTracingToAccessVM))(BOOL *pfAllow);
    478479    STDMETHOD(COMSETTER(AllowTracingToAccessVM))(BOOL fAllow);
     480    STDMETHOD(COMGETTER(AutostartEnabled))(BOOL *pfEnabled);
     481    STDMETHOD(COMSETTER(AutostartEnabled))(BOOL fEnabled);
     482    STDMETHOD(COMGETTER(AutostartDelay))(ULONG *puDelay);
     483    STDMETHOD(COMSETTER(AutostartDelay))(ULONG uDelay);
     484    STDMETHOD(COMGETTER(AutostopType))(AutostopType_T *penmAutostopType);
     485    STDMETHOD(COMSETTER(AutostopType))(AutostopType_T enmAutostopType);
    479486
    480487    // IMachine methods
     
    795802                         const Guid &aCurSnapshotId,
    796803                         Snapshot *aParentSnapshot);
    797     HRESULT loadHardware(const settings::Hardware &data, const settings::Debugging *pDbg);
     804    HRESULT loadHardware(const settings::Hardware &data, const settings::Debugging *pDbg,
     805                         const settings::Autostart *pAutostart);
    798806    HRESULT loadDebugging(const settings::Debugging *pDbg);
     807    HRESULT loadAutostart(const settings::Autostart *pAutostart);
    799808    HRESULT loadStorageControllers(const settings::Storage &data,
    800809                                   const Guid *puuidRegistry,
     
    836845    void copyMachineDataToSettings(settings::MachineConfigFile &config);
    837846    HRESULT saveAllSnapshots(settings::MachineConfigFile &config);
    838     HRESULT saveHardware(settings::Hardware &data, settings::Debugging *pDbg);
     847    HRESULT saveHardware(settings::Hardware &data, settings::Debugging *pDbg,
     848                         settings::Autostart *pAutostart);
    839849    HRESULT saveStorageControllers(settings::Storage &data);
    840850    HRESULT saveStorageDevices(ComObjPtr<StorageController> aStorageController,
     
    12061216                             const settings::Hardware &hardware,
    12071217                             const settings::Debugging *pDbg,
     1218                             const settings::Autostart *pAutostart,
    12081219                             const settings::Storage &storage,
    12091220                             IN_GUID aSnapshotId,
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