VirtualBox

Changeset 83413 in vbox for trunk/src


Ignore:
Timestamp:
Mar 25, 2020 4:06:43 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136632
Message:

Guest Control/Main: More constructor initializers, removed unused GuestTask class. bugref:9320

File:
1 edited

Legend:

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

    r83319 r83413  
    724724
    725725    GuestSessionStartupInfo(void)
    726         : mIsInternal(false /* Non-internal session */),
    727           mOpenTimeoutMS(30 * 1000 /* 30s opening timeout */),
    728           mOpenFlags(0 /* No opening flags set */) { }
     726        : mID(UINT32_MAX)
     727        , mIsInternal(false /* Non-internal session */)
     728        , mOpenTimeoutMS(30 * 1000 /* 30s opening timeout */)
     729        , mOpenFlags(0 /* No opening flags set */) { }
    729730
    730731    /** The session's friendly name. Optional. */
    731732    Utf8Str                     mName;
    732     /** The session's unique ID. Used to encode a context ID. */
     733    /** The session's unique ID. Used to encode a context ID.
     734     *  UINT32_MAX if not initialized. */
    733735    uint32_t                    mID;
    734736    /** Flag indicating if this is an internal session
     
    752754
    753755    GuestProcessStartupInfo(void)
    754         : mFlags(ProcessCreateFlag_None),
    755           mTimeoutMS(UINT32_MAX /* No timeout by default */),
    756           mPriority(ProcessPriority_Default) { }
     756        : mFlags(ProcessCreateFlag_None)
     757        , mTimeoutMS(UINT32_MAX /* No timeout by default */)
     758        , mPriority(ProcessPriority_Default)
     759        , mAffinity(0) { }
    757760
    758761    /** The process' friendly name. */
     
    897900class Progress;
    898901
    899 class GuestTask
    900 {
    901 
    902 public:
    903 
    904     enum TaskType
    905     {
    906         /** Copies a file from host to the guest. */
    907         TaskType_CopyFileToGuest   = 50,
    908         /** Copies a file from guest to the host. */
    909         TaskType_CopyFileFromGuest = 55,
    910         /** Update Guest Additions by directly copying the required installer
    911          *  off the .ISO file, transfer it to the guest and execute the installer
    912          *  with system privileges. */
    913         TaskType_UpdateGuestAdditions = 100
    914     };
    915 
    916     GuestTask(TaskType aTaskType, Guest *aThat, Progress *aProgress);
    917 
    918     virtual ~GuestTask();
    919 
    920     int startThread();
    921 
    922     static int taskThread(RTTHREAD aThread, void *pvUser);
    923     static int uploadProgress(unsigned uPercent, void *pvUser);
    924     static HRESULT setProgressSuccess(ComObjPtr<Progress> pProgress);
    925     static HRESULT setProgressErrorMsg(HRESULT hr,
    926                                        ComObjPtr<Progress> pProgress, const char * pszText, ...);
    927     static HRESULT setProgressErrorParent(HRESULT hr,
    928                                           ComObjPtr<Progress> pProgress, ComObjPtr<Guest> pGuest);
    929 
    930     TaskType taskType;
    931     ComObjPtr<Guest> pGuest;
    932     ComObjPtr<Progress> pProgress;
    933     HRESULT rc;
    934 
    935     /* Task data. */
    936     Utf8Str strSource;
    937     Utf8Str strDest;
    938     Utf8Str strUserName;
    939     Utf8Str strPassword;
    940     ULONG   uFlags;
    941 };
    942 
    943902class GuestWaitEventPayload
    944903{
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