/* $Id: GuestDnDSourceImpl.h 51476 2014-05-30 14:58:02Z vboxsync $ */ /** @file * VBox Console COM Class implementation - Guest drag'n drop source. */ /* * Copyright (C) 2014 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under the terms of the GNU * General Public License (GPL) as published by the Free Software * Foundation, in version 2 as it comes in the "COPYING" file of the * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. */ #ifndef ____H_GUESTDNDSOURCEIMPL #define ____H_GUESTDNDSOURCEIMPL #include "GuestDnDSourceWrap.h" #include "GuestDnDPrivate.h" class ATL_NO_VTABLE GuestDnDSource : public GuestDnDSourceWrap { public: /** @name COM and internal init/term/mapping cruft. * @{ */ DECLARE_EMPTY_CTOR_DTOR(GuestDnDSource) int init(const ComObjPtr& pGuest); void uninit(void); HRESULT FinalConstruct(void); void FinalRelease(void); /** @} */ private: /** Wrapped @name IDnDSource methods. * @{ */ HRESULT dragIsPending(ULONG uScreenId, std::vector &aFormats, std::vector &aAllowedActions, DnDAction_T *aDefaultAction); HRESULT drop(const com::Utf8Str &aFormat, DnDAction_T aAction, ComPtr &aProgress); HRESULT receiveData(std::vector &aData); /** @} */ protected: /** @name Attributes. * @{ */ /** Pointer to guest implementation. */ const ComObjPtr m_pGuest; /** @} */ }; #endif /* !____H_GUESTDNDSOURCEIMPL */