Changeset 42634 in vbox for trunk/src/VBox/Main/include/GuestSessionImpl.h
- Timestamp:
- Aug 6, 2012 5:29:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestSessionImpl.h
r42618 r42634 38 38 public: 39 39 40 GuestSessionTask(GuestSession *pSession , Progress *pProgress);40 GuestSessionTask(GuestSession *pSession); 41 41 42 42 virtual ~GuestSessionTask(void); … … 45 45 46 46 virtual int Run(void) = 0; 47 virtual int RunAsync(const Utf8Str &strDesc ) = 0;48 49 int setProgress( unsigneduPercent);47 virtual int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress) = 0; 48 49 int setProgress(ULONG uPercent); 50 50 int setProgressSuccess(void); 51 51 int setProgressErrorMsg(HRESULT hr, const Utf8Str &strMsg); … … 54 54 55 55 Utf8Str mDesc; 56 ComObjPtr<GuestSession> mSession; 56 GuestSession *mSession; 57 /** Progress object for getting updated when running 58 * asynchronously. Optional. */ 57 59 ComObjPtr<Progress> mProgress; 58 60 }; … … 65 67 public: 66 68 67 SessionTaskCopyTo(GuestSession *pSession, Progress *pProgress,69 SessionTaskCopyTo(GuestSession *pSession, 68 70 const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags); 69 71 … … 73 75 74 76 int Run(void); 75 int RunAsync(const Utf8Str &strDesc );77 int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress); 76 78 static int taskThread(RTTHREAD Thread, void *pvUser); 77 79 … … 80 82 Utf8Str mSource; 81 83 Utf8Str mDest; 82 uint32_t m Flags;84 uint32_t mCopyFileFlags; 83 85 }; 84 86 … … 90 92 public: 91 93 92 SessionTaskCopyFrom(GuestSession *pSession, Progress *pProgress,94 SessionTaskCopyFrom(GuestSession *pSession, 93 95 const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags); 94 96 … … 98 100 99 101 int Run(void); 100 int RunAsync(const Utf8Str &strDesc );102 int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress); 101 103 static int taskThread(RTTHREAD Thread, void *pvUser); 102 104 … … 243 245 /** The session timeout. Default is 30s. */ 244 246 ULONG mTimeout; 245 /** The next process ID for assignment. */246 ULONG mNextProcessID;247 247 /** The session's environment block. Can be 248 248 * overwritten/extended by ProcessCreate(Ex). */
Note:
See TracChangeset
for help on using the changeset viewer.