- Timestamp:
- Mar 25, 2020 4:06:43 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136632
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r83319 r83413 724 724 725 725 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 */) { } 729 730 730 731 /** The session's friendly name. Optional. */ 731 732 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. */ 733 735 uint32_t mID; 734 736 /** Flag indicating if this is an internal session … … 752 754 753 755 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) { } 757 760 758 761 /** The process' friendly name. */ … … 897 900 class Progress; 898 901 899 class GuestTask900 {901 902 public:903 904 enum TaskType905 {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 installer911 * off the .ISO file, transfer it to the guest and execute the installer912 * with system privileges. */913 TaskType_UpdateGuestAdditions = 100914 };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 943 902 class GuestWaitEventPayload 944 903 {
Note:
See TracChangeset
for help on using the changeset viewer.