VirtualBox

Ignore:
Timestamp:
Aug 8, 2012 10:37:51 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

    r42691 r42693  
    4949    int setProgress(ULONG uPercent);
    5050    int setProgressSuccess(void);
    51     int setProgressErrorMsg(HRESULT hr, const Utf8Str &strMsg);
     51    HRESULT setProgressErrorMsg(HRESULT hr, const Utf8Str &strMsg);
    5252
    5353protected:
     
    7070                      const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags);
    7171
     72    SessionTaskCopyTo(GuestSession *pSession,
     73                      PRTFILE pSourceFile, size_t cbSourceOffset, size_t cbSourceSize,
     74                      const Utf8Str &strDest, uint32_t uFlags);
     75
    7276    virtual ~SessionTaskCopyTo(void);
    7377
     
    8185
    8286    Utf8Str  mSource;
     87    PRTFILE  mSourceFile;
     88    size_t   mSourceOffset;
     89    size_t   mSourceSize;
    8390    Utf8Str  mDest;
    8491    uint32_t mCopyFileFlags;
     
    107114    Utf8Str  mSource;
    108115    Utf8Str  mDest;
     116    uint32_t mFlags;
     117};
     118
     119/**
     120 * Task for automatically updating the Guest Additions on the guest.
     121 */
     122class SessionTaskUpdateAdditions : public GuestSessionTask
     123{
     124public:
     125
     126    SessionTaskUpdateAdditions(GuestSession *pSession,
     127                               const Utf8Str &strSource, uint32_t uFlags);
     128
     129    virtual ~SessionTaskUpdateAdditions(void);
     130
     131public:
     132
     133    int Run(void);
     134    int RunAsync(const Utf8Str &strDesc, ComObjPtr<Progress> &pProgress);
     135    static int taskThread(RTTHREAD Thread, void *pvUser);
     136
     137protected:
     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. */
    109143    uint32_t mFlags;
    110144};
     
    216250    const GuestEnvironment &getEnvironment(void);
    217251    Utf8Str                 getName(void);
     252    Guest                  *getParent(void) { return mData.mParent; }
    218253    uint32_t                getProtocolVersion(void) { return mData.mProtocolVersion; }
    219254    int                     processClose(ComObjPtr<GuestProcess> pProcess);
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