VirtualBox

Changeset 85020 in vbox


Ignore:
Timestamp:
Jul 1, 2020 10:48:57 AM (5 years ago)
Author:
vboxsync
Message:

DnD/Main: Renamed internal send/receive data task classes to unify naming.

Location:
trunk/src/VBox/Main
Files:
4 edited

Legend:

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

    r85018 r85020  
    3030#include "GuestDnDPrivate.h"
    3131
    32 class RecvDataTask;
     32class GuestDnDRecvDataTask;
    3333struct GuestDnDRecvCtx;
    3434
     
    8888    /** @name Thread task .
    8989     * @{ */
    90     static void i_receiveDataThreadTask(RecvDataTask *pTask);
     90    static void i_receiveDataThreadTask(GuestDnDRecvDataTask *pTask);
    9191    /** @}  */
    9292
     
    114114    } mData;
    115115
    116     friend class RecvDataTask;
     116    friend class GuestDnDRecvDataTask;
    117117};
    118118
  • trunk/src/VBox/Main/include/GuestDnDTargetImpl.h

    r85018 r85020  
    2929
    3030struct GuestDnDSendCtx;
    31 class SendDataTask;
     31class GuestDnDSendDataTask;
    3232
    3333class ATL_NO_VTABLE GuestDnDTarget :
     
    7676    /** @name Thread task workers.
    7777     * @{ */
    78     static void i_sendDataThreadTask(SendDataTask *pTask);
     78    static void i_sendDataThreadTask(GuestDnDSendDataTask *pTask);
    7979    /** @}  */
    8080
     
    105105    } mData;
    106106
    107     friend class SendDataTask;
     107    friend class GuestDnDSendDataTask;
    108108};
    109109
  • trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp

    r85018 r85020  
    7171 * a worker thread.
    7272 */
    73 class RecvDataTask : public GuestDnDSourceTask
     73class GuestDnDRecvDataTask : public GuestDnDSourceTask
    7474{
    7575public:
    7676
    77     RecvDataTask(GuestDnDSource *pSource, GuestDnDRecvCtx *pCtx)
     77    GuestDnDRecvDataTask(GuestDnDSource *pSource, GuestDnDRecvCtx *pCtx)
    7878        : GuestDnDSourceTask(pSource)
    7979        , mpCtx(pCtx)
     
    8787    }
    8888
    89     virtual ~RecvDataTask(void) { }
     89    virtual ~GuestDnDRecvDataTask(void) { }
    9090
    9191    GuestDnDRecvCtx *getCtx(void) { return mpCtx; }
     
    355355        return hr;
    356356
    357     RecvDataTask *pTask = NULL;
     357    GuestDnDRecvDataTask *pTask = NULL;
    358358
    359359    try
     
    367367        LogRel2(("DnD: Requesting data from guest in format: %s\n", aFormat.c_str()));
    368368
    369         pTask = new RecvDataTask(this, &mData.mRecvCtx);
     369        pTask = new GuestDnDRecvDataTask(this, &mData.mRecvCtx);
    370370        if (!pTask->isOk())
    371371        {
     
    10511051
    10521052/* static */
    1053 void GuestDnDSource::i_receiveDataThreadTask(RecvDataTask *pTask)
     1053void GuestDnDSource::i_receiveDataThreadTask(GuestDnDRecvDataTask *pTask)
    10541054{
    10551055    LogFlowFunc(("pTask=%p\n", pTask));
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r85019 r85020  
    7474 * a worker thread.
    7575 */
    76 class SendDataTask : public GuestDnDTargetTask
     76class GuestDnDSendDataTask : public GuestDnDTargetTask
    7777{
    7878public:
    7979
    80     SendDataTask(GuestDnDTarget *pTarget, GuestDnDSendCtx *pCtx)
     80    GuestDnDSendDataTask(GuestDnDTarget *pTarget, GuestDnDSendCtx *pCtx)
    8181        : GuestDnDTargetTask(pTarget),
    8282          mpCtx(pCtx)
     
    9090    }
    9191
    92     virtual ~SendDataTask(void)
     92    virtual ~GuestDnDSendDataTask(void)
    9393    {
    9494        if (mpCtx)
     
    564564
    565565/* static */
    566 void GuestDnDTarget::i_sendDataThreadTask(SendDataTask *pTask)
     566void GuestDnDTarget::i_sendDataThreadTask(GuestDnDSendDataTask *pTask)
    567567{
    568568    LogFlowFunc(("pTask=%p\n", pTask));
     
    632632        return hr;
    633633
    634     SendDataTask *pTask = NULL;
     634    GuestDnDSendDataTask *pTask = NULL;
    635635    GuestDnDSendCtx *pSendCtx = NULL;
    636636
     
    646646
    647647        /* pTask is responsible for deletion of pSendCtx after creating */
    648         pTask = new SendDataTask(this, pSendCtx);
     648        pTask = new GuestDnDSendDataTask(this, pSendCtx);
    649649        if (!pTask->isOk())
    650650        {
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