Changeset 85020 in vbox
- Timestamp:
- Jul 1, 2020 10:48:57 AM (5 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestDnDSourceImpl.h
r85018 r85020 30 30 #include "GuestDnDPrivate.h" 31 31 32 class RecvDataTask;32 class GuestDnDRecvDataTask; 33 33 struct GuestDnDRecvCtx; 34 34 … … 88 88 /** @name Thread task . 89 89 * @{ */ 90 static void i_receiveDataThreadTask( RecvDataTask *pTask);90 static void i_receiveDataThreadTask(GuestDnDRecvDataTask *pTask); 91 91 /** @} */ 92 92 … … 114 114 } mData; 115 115 116 friend class RecvDataTask;116 friend class GuestDnDRecvDataTask; 117 117 }; 118 118 -
trunk/src/VBox/Main/include/GuestDnDTargetImpl.h
r85018 r85020 29 29 30 30 struct GuestDnDSendCtx; 31 class SendDataTask;31 class GuestDnDSendDataTask; 32 32 33 33 class ATL_NO_VTABLE GuestDnDTarget : … … 76 76 /** @name Thread task workers. 77 77 * @{ */ 78 static void i_sendDataThreadTask( SendDataTask *pTask);78 static void i_sendDataThreadTask(GuestDnDSendDataTask *pTask); 79 79 /** @} */ 80 80 … … 105 105 } mData; 106 106 107 friend class SendDataTask;107 friend class GuestDnDSendDataTask; 108 108 }; 109 109 -
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r85018 r85020 71 71 * a worker thread. 72 72 */ 73 class RecvDataTask : public GuestDnDSourceTask73 class GuestDnDRecvDataTask : public GuestDnDSourceTask 74 74 { 75 75 public: 76 76 77 RecvDataTask(GuestDnDSource *pSource, GuestDnDRecvCtx *pCtx)77 GuestDnDRecvDataTask(GuestDnDSource *pSource, GuestDnDRecvCtx *pCtx) 78 78 : GuestDnDSourceTask(pSource) 79 79 , mpCtx(pCtx) … … 87 87 } 88 88 89 virtual ~ RecvDataTask(void) { }89 virtual ~GuestDnDRecvDataTask(void) { } 90 90 91 91 GuestDnDRecvCtx *getCtx(void) { return mpCtx; } … … 355 355 return hr; 356 356 357 RecvDataTask *pTask = NULL;357 GuestDnDRecvDataTask *pTask = NULL; 358 358 359 359 try … … 367 367 LogRel2(("DnD: Requesting data from guest in format: %s\n", aFormat.c_str())); 368 368 369 pTask = new RecvDataTask(this, &mData.mRecvCtx);369 pTask = new GuestDnDRecvDataTask(this, &mData.mRecvCtx); 370 370 if (!pTask->isOk()) 371 371 { … … 1051 1051 1052 1052 /* static */ 1053 void GuestDnDSource::i_receiveDataThreadTask( RecvDataTask *pTask)1053 void GuestDnDSource::i_receiveDataThreadTask(GuestDnDRecvDataTask *pTask) 1054 1054 { 1055 1055 LogFlowFunc(("pTask=%p\n", pTask)); -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r85019 r85020 74 74 * a worker thread. 75 75 */ 76 class SendDataTask : public GuestDnDTargetTask76 class GuestDnDSendDataTask : public GuestDnDTargetTask 77 77 { 78 78 public: 79 79 80 SendDataTask(GuestDnDTarget *pTarget, GuestDnDSendCtx *pCtx)80 GuestDnDSendDataTask(GuestDnDTarget *pTarget, GuestDnDSendCtx *pCtx) 81 81 : GuestDnDTargetTask(pTarget), 82 82 mpCtx(pCtx) … … 90 90 } 91 91 92 virtual ~ SendDataTask(void)92 virtual ~GuestDnDSendDataTask(void) 93 93 { 94 94 if (mpCtx) … … 564 564 565 565 /* static */ 566 void GuestDnDTarget::i_sendDataThreadTask( SendDataTask *pTask)566 void GuestDnDTarget::i_sendDataThreadTask(GuestDnDSendDataTask *pTask) 567 567 { 568 568 LogFlowFunc(("pTask=%p\n", pTask)); … … 632 632 return hr; 633 633 634 SendDataTask *pTask = NULL;634 GuestDnDSendDataTask *pTask = NULL; 635 635 GuestDnDSendCtx *pSendCtx = NULL; 636 636 … … 646 646 647 647 /* pTask is responsible for deletion of pSendCtx after creating */ 648 pTask = new SendDataTask(this, pSendCtx);648 pTask = new GuestDnDSendDataTask(this, pSendCtx); 649 649 if (!pTask->isOk()) 650 650 {
Note:
See TracChangeset
for help on using the changeset viewer.