VirtualBox

Ignore:
Timestamp:
Aug 6, 2012 5:29:38 PM (12 years ago)
Author:
vboxsync
Message:

Guest Control 2.0: Update.

File:
1 edited

Legend:

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

    r42618 r42634  
    3838public:
    3939
    40     GuestSessionTask(GuestSession *pSession, Progress *pProgress);
     40    GuestSessionTask(GuestSession *pSession);
    4141
    4242    virtual ~GuestSessionTask(void);
     
    4545
    4646    virtual int Run(void) = 0;
    47     virtual int RunAsync(const Utf8Str &strDesc) = 0;
    48 
    49     int setProgress(unsigned uPercent);
     47    virtual int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress) = 0;
     48
     49    int setProgress(ULONG uPercent);
    5050    int setProgressSuccess(void);
    5151    int setProgressErrorMsg(HRESULT hr, const Utf8Str &strMsg);
     
    5454
    5555    Utf8Str                 mDesc;
    56     ComObjPtr<GuestSession> mSession;
     56    GuestSession           *mSession;
     57    /** Progress object for getting updated when running
     58     *  asynchronously. Optional. */
    5759    ComObjPtr<Progress>     mProgress;
    5860};
     
    6567public:
    6668
    67     SessionTaskCopyTo(GuestSession *pSession, Progress *pProgress,
     69    SessionTaskCopyTo(GuestSession *pSession,
    6870                      const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags);
    6971
     
    7375
    7476    int Run(void);
    75     int RunAsync(const Utf8Str &strDesc);
     77    int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress);
    7678    static int taskThread(RTTHREAD Thread, void *pvUser);
    7779
     
    8082    Utf8Str  mSource;
    8183    Utf8Str  mDest;
    82     uint32_t mFlags;
     84    uint32_t mCopyFileFlags;
    8385};
    8486
     
    9092public:
    9193
    92     SessionTaskCopyFrom(GuestSession *pSession, Progress *pProgress,
     94    SessionTaskCopyFrom(GuestSession *pSession,
    9395                        const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags);
    9496
     
    98100
    99101    int Run(void);
    100     int RunAsync(const Utf8Str &strDesc);
     102    int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress);
    101103    static int taskThread(RTTHREAD Thread, void *pvUser);
    102104
     
    243245        /** The session timeout. Default is 30s. */
    244246        ULONG                mTimeout;
    245         /** The next process ID for assignment. */
    246         ULONG                mNextProcessID;
    247247        /** The session's environment block. Can be
    248248         *  overwritten/extended by ProcessCreate(Ex). */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette