PageRenderTime 39ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llwindow/lldragdropwin32.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 74 lines | 34 code | 14 blank | 26 comment | 0 complexity | 88bd45e15aa912ef4b3e04d6285db666 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file lldragdrop32.cpp
  3. * @brief Handler for Windows specific drag and drop (OS to client) code
  4. *
  5. * $LicenseInfo:firstyear=2004&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #if LL_WINDOWS
  27. #if LL_OS_DRAGDROP_ENABLED
  28. #ifndef LL_LLDRAGDROP32_H
  29. #define LL_LLDRAGDROP32_H
  30. #include <windows.h>
  31. #include <ole2.h>
  32. class LLDragDropWin32
  33. {
  34. public:
  35. LLDragDropWin32();
  36. ~LLDragDropWin32();
  37. bool init( HWND hWnd );
  38. void reset();
  39. private:
  40. IDropTarget* mDropTarget;
  41. HWND mDropWindowHandle;
  42. };
  43. #endif // LL_LLDRAGDROP32_H
  44. #else // LL_OS_DRAGDROP_ENABLED
  45. #ifndef LL_LLDRAGDROP32_H
  46. #define LL_LLDRAGDROP32_H
  47. #include <windows.h>
  48. #include <ole2.h>
  49. // imposter class that does nothing
  50. class LLDragDropWin32
  51. {
  52. public:
  53. LLDragDropWin32() {};
  54. ~LLDragDropWin32() {};
  55. bool init( HWND hWnd ) { return false; };
  56. void reset() { };
  57. };
  58. #endif // LL_LLDRAGDROP32_H
  59. #endif // LL_OS_DRAGDROP_ENABLED
  60. #endif // LL_WINDOWS