PageRenderTime 36ms CodeModel.GetById 33ms app.highlight 2ms 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
 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
27#if LL_WINDOWS
28
29#if LL_OS_DRAGDROP_ENABLED
30
31#ifndef LL_LLDRAGDROP32_H
32#define LL_LLDRAGDROP32_H
33
34#include <windows.h>
35#include <ole2.h>
36
37class LLDragDropWin32
38{
39	public:
40		LLDragDropWin32();
41		~LLDragDropWin32();
42
43		bool init( HWND hWnd );
44		void reset();
45
46	private:
47		IDropTarget* mDropTarget;
48		HWND mDropWindowHandle;
49};
50#endif // LL_LLDRAGDROP32_H
51
52#else // LL_OS_DRAGDROP_ENABLED
53
54#ifndef LL_LLDRAGDROP32_H
55#define LL_LLDRAGDROP32_H
56
57#include <windows.h>
58#include <ole2.h>
59
60// imposter class that does nothing 
61class LLDragDropWin32
62{
63	public:
64		LLDragDropWin32() {};
65		~LLDragDropWin32() {};
66
67		bool init( HWND hWnd ) { return false; };
68		void reset() { };
69};
70#endif // LL_LLDRAGDROP32_H
71
72#endif // LL_OS_DRAGDROP_ENABLED
73
74#endif // LL_WINDOWS