VirtualBox

Ignore:
Timestamp:
Mar 1, 2024 11:00:38 AM (11 months ago)
Author:
vboxsync
Message:

Shared Clipboard: More cleanups (renaming Windows parts to match the other platforms). bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardStreamImpl-win.cpp

    r103480 r103631  
    6060
    6161
    62 SharedClipboardWinStreamImpl::SharedClipboardWinStreamImpl(SharedClipboardWinDataObject *pParent, PSHCLTRANSFER pTransfer,
    63                                                            const Utf8Str &strPath, PSHCLFSOBJINFO pObjInfo)
     62ShClWinStreamImpl::ShClWinStreamImpl(ShClWinDataObject *pParent, PSHCLTRANSFER pTransfer,
     63                                     const Utf8Str &strPath, PSHCLFSOBJINFO pObjInfo)
    6464    : m_pParent(pParent)
    6565    , m_lRefCount(1) /* Our IDataObjct *always* holds the last reference to this object; needed for the callbacks. */
     
    8181}
    8282
    83 SharedClipboardWinStreamImpl::~SharedClipboardWinStreamImpl(void)
     83ShClWinStreamImpl::~ShClWinStreamImpl(void)
    8484{
    8585    LogFlowThisFuncEnter();
     
    9595 */
    9696
    97 STDMETHODIMP SharedClipboardWinStreamImpl::QueryInterface(REFIID iid, void **ppvObject)
     97STDMETHODIMP ShClWinStreamImpl::QueryInterface(REFIID iid, void **ppvObject)
    9898{
    9999    AssertPtrReturn(ppvObject, E_INVALIDARG);
     
    124124}
    125125
    126 STDMETHODIMP_(ULONG) SharedClipboardWinStreamImpl::AddRef(void)
     126STDMETHODIMP_(ULONG) ShClWinStreamImpl::AddRef(void)
    127127{
    128128    LONG lCount = InterlockedIncrement(&m_lRefCount);
     
    131131}
    132132
    133 STDMETHODIMP_(ULONG) SharedClipboardWinStreamImpl::Release(void)
     133STDMETHODIMP_(ULONG) ShClWinStreamImpl::Release(void)
    134134{
    135135    LONG lCount = InterlockedDecrement(&m_lRefCount);
     
    148148 */
    149149
    150 STDMETHODIMP SharedClipboardWinStreamImpl::Clone(IStream** ppStream)
     150STDMETHODIMP ShClWinStreamImpl::Clone(IStream** ppStream)
    151151{
    152152    RT_NOREF(ppStream);
     
    156156}
    157157
    158 STDMETHODIMP SharedClipboardWinStreamImpl::Commit(DWORD dwFrags)
     158STDMETHODIMP ShClWinStreamImpl::Commit(DWORD dwFrags)
    159159{
    160160    RT_NOREF(dwFrags);
     
    164164}
    165165
    166 STDMETHODIMP SharedClipboardWinStreamImpl::CopyTo(IStream *pDestStream, ULARGE_INTEGER nBytesToCopy, ULARGE_INTEGER *nBytesRead,
     166STDMETHODIMP ShClWinStreamImpl::CopyTo(IStream *pDestStream, ULARGE_INTEGER nBytesToCopy, ULARGE_INTEGER *nBytesRead,
    167167                                                  ULARGE_INTEGER *nBytesWritten)
    168168{
     
    173173}
    174174
    175 STDMETHODIMP SharedClipboardWinStreamImpl::LockRegion(ULARGE_INTEGER nStart, ULARGE_INTEGER nBytes,DWORD dwFlags)
     175STDMETHODIMP ShClWinStreamImpl::LockRegion(ULARGE_INTEGER nStart, ULARGE_INTEGER nBytes,DWORD dwFlags)
    176176{
    177177    RT_NOREF(nStart, nBytes, dwFlags);
     
    182182
    183183/* Note: Windows seems to assume EOF if nBytesRead < nBytesToRead. */
    184 STDMETHODIMP SharedClipboardWinStreamImpl::Read(void *pvBuffer, ULONG nBytesToRead, ULONG *nBytesRead)
     184STDMETHODIMP ShClWinStreamImpl::Read(void *pvBuffer, ULONG nBytesToRead, ULONG *nBytesRead)
    185185{
    186186    LogFlowThisFunc(("Enter: m_cbProcessed=%RU64\n", m_cbProcessed));
     
    249249
    250250            if (m_pParent)
    251                 m_pParent->SetStatus(SharedClipboardWinDataObject::Completed);
     251                m_pParent->SetStatus(ShClWinDataObject::Completed);
    252252        }
    253253    }
     
    256256    {
    257257        if (m_pParent)
    258             m_pParent->SetStatus(SharedClipboardWinDataObject::Error, rc /* Propagate rc */);
     258            m_pParent->SetStatus(ShClWinDataObject::Error, rc /* Propagate rc */);
    259259    }
    260260
     
    271271}
    272272
    273 STDMETHODIMP SharedClipboardWinStreamImpl::Revert(void)
    274 {
    275     LogFlowThisFuncEnter();
    276     return E_NOTIMPL;
    277 }
    278 
    279 STDMETHODIMP SharedClipboardWinStreamImpl::Seek(LARGE_INTEGER nMove, DWORD dwOrigin, ULARGE_INTEGER* nNewPos)
     273STDMETHODIMP ShClWinStreamImpl::Revert(void)
     274{
     275    LogFlowThisFuncEnter();
     276    return E_NOTIMPL;
     277}
     278
     279STDMETHODIMP ShClWinStreamImpl::Seek(LARGE_INTEGER nMove, DWORD dwOrigin, ULARGE_INTEGER* nNewPos)
    280280{
    281281    RT_NOREF(nMove, dwOrigin, nNewPos);
     
    286286}
    287287
    288 STDMETHODIMP SharedClipboardWinStreamImpl::SetSize(ULARGE_INTEGER nNewSize)
     288STDMETHODIMP ShClWinStreamImpl::SetSize(ULARGE_INTEGER nNewSize)
    289289{
    290290    RT_NOREF(nNewSize);
     
    294294}
    295295
    296 STDMETHODIMP SharedClipboardWinStreamImpl::Stat(STATSTG *pStatStg, DWORD dwFlags)
     296STDMETHODIMP ShClWinStreamImpl::Stat(STATSTG *pStatStg, DWORD dwFlags)
    297297{
    298298    HRESULT hr = S_OK;
     
    355355}
    356356
    357 STDMETHODIMP SharedClipboardWinStreamImpl::UnlockRegion(ULARGE_INTEGER nStart, ULARGE_INTEGER nBytes, DWORD dwFlags)
     357STDMETHODIMP ShClWinStreamImpl::UnlockRegion(ULARGE_INTEGER nStart, ULARGE_INTEGER nBytes, DWORD dwFlags)
    358358{
    359359    RT_NOREF(nStart, nBytes, dwFlags);
     
    363363}
    364364
    365 STDMETHODIMP SharedClipboardWinStreamImpl::Write(const void *pvBuffer, ULONG nBytesToRead, ULONG *nBytesRead)
     365STDMETHODIMP ShClWinStreamImpl::Write(const void *pvBuffer, ULONG nBytesToRead, ULONG *nBytesRead)
    366366{
    367367    RT_NOREF(pvBuffer, nBytesToRead, nBytesRead);
     
    386386 */
    387387/* static */
    388 HRESULT SharedClipboardWinStreamImpl::Create(SharedClipboardWinDataObject *pParent, PSHCLTRANSFER pTransfer,
     388HRESULT ShClWinStreamImpl::Create(ShClWinDataObject *pParent, PSHCLTRANSFER pTransfer,
    389389                                             const Utf8Str &strPath, PSHCLFSOBJINFO pObjInfo,
    390390                                             IStream **ppStream)
     
    392392    AssertPtrReturn(pTransfer, E_POINTER);
    393393
    394     SharedClipboardWinStreamImpl *pStream = new SharedClipboardWinStreamImpl(pParent, pTransfer, strPath, pObjInfo);
     394    ShClWinStreamImpl *pStream = new ShClWinStreamImpl(pParent, pTransfer, strPath, pObjInfo);
    395395    if (pStream)
    396396    {
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