Changeset 42693 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Aug 8, 2012 10:37:51 PM (12 years ago)
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r42673 r42693 172 172 struct GuestProcessWaitResult 173 173 { 174 GuestProcessWaitResult(void) 175 : mResult(ProcessWaitResult_None), 176 mRC(VINF_SUCCESS) { } 177 174 178 /** The wait result when returning from the wait call. */ 175 179 ProcessWaitResult_T mResult; 180 /** Optional rc to this result. */ 176 181 int mRC; 177 182 }; -
trunk/src/VBox/Main/include/GuestImpl.h
r42461 r42693 132 132 ULONG *aMemTotal, ULONG *aMemFree, ULONG *aMemBalloon, ULONG *aMemShared, ULONG *aMemCache, 133 133 ULONG *aPageTotal, ULONG *aMemAllocTotal, ULONG *aMemFreeTotal, ULONG *aMemBalloonTotal, ULONG *aMemSharedTotal); 134 STDMETHOD(UpdateGuestAdditions)(IN_BSTR aSource, ULONG aFlags, IProgress **aProgress);134 STDMETHOD(UpdateGuestAdditions)(IN_BSTR aSource, ComSafeArrayIn(AdditionsUpdateFlag_T, aFlags), IProgress **aProgress); 135 135 STDMETHOD(CreateSession)(IN_BSTR aUser, IN_BSTR aPassword, IN_BSTR aDomain, IN_BSTR aSessionName, IGuestSession **aGuestSession); 136 136 STDMETHOD(FindSession)(IN_BSTR aSessionName, ComSafeArrayOut(IGuestSession *, aSessions)); … … 210 210 Console *getConsole(void) { return mParent; } 211 211 int sessionClose(ComObjPtr<GuestSession> pSession); 212 int sessionCreate(const Utf8Str &strUser, const Utf8Str & aPassword, const Utf8Str &aDomain,213 const Utf8Str & aSessionName, ComObjPtr<GuestSession> &pGuestSession);212 int sessionCreate(const Utf8Str &strUser, const Utf8Str &strPassword, const Utf8Str &strDomain, 213 const Utf8Str &strSessionName, ComObjPtr<GuestSession> &pGuestSession); 214 214 inline bool sessionExists(uint32_t uSessionID); 215 215 /** @} */ -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r42691 r42693 49 49 int setProgress(ULONG uPercent); 50 50 int setProgressSuccess(void); 51 intsetProgressErrorMsg(HRESULT hr, const Utf8Str &strMsg);51 HRESULT setProgressErrorMsg(HRESULT hr, const Utf8Str &strMsg); 52 52 53 53 protected: … … 70 70 const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags); 71 71 72 SessionTaskCopyTo(GuestSession *pSession, 73 PRTFILE pSourceFile, size_t cbSourceOffset, size_t cbSourceSize, 74 const Utf8Str &strDest, uint32_t uFlags); 75 72 76 virtual ~SessionTaskCopyTo(void); 73 77 … … 81 85 82 86 Utf8Str mSource; 87 PRTFILE mSourceFile; 88 size_t mSourceOffset; 89 size_t mSourceSize; 83 90 Utf8Str mDest; 84 91 uint32_t mCopyFileFlags; … … 107 114 Utf8Str mSource; 108 115 Utf8Str mDest; 116 uint32_t mFlags; 117 }; 118 119 /** 120 * Task for automatically updating the Guest Additions on the guest. 121 */ 122 class SessionTaskUpdateAdditions : public GuestSessionTask 123 { 124 public: 125 126 SessionTaskUpdateAdditions(GuestSession *pSession, 127 const Utf8Str &strSource, uint32_t uFlags); 128 129 virtual ~SessionTaskUpdateAdditions(void); 130 131 public: 132 133 int Run(void); 134 int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress); 135 static int taskThread(RTTHREAD Thread, void *pvUser); 136 137 protected: 138 139 /** The (optionally) specified Guest Additions .ISO on the host 140 * which will be used for the updating process. */ 141 Utf8Str mSource; 142 /** Update flags. */ 109 143 uint32_t mFlags; 110 144 }; … … 216 250 const GuestEnvironment &getEnvironment(void); 217 251 Utf8Str getName(void); 252 Guest *getParent(void) { return mData.mParent; } 218 253 uint32_t getProtocolVersion(void) { return mData.mProtocolVersion; } 219 254 int processClose(ComObjPtr<GuestProcess> pProcess);
Note:
See TracChangeset
for help on using the changeset viewer.