VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIDnDDropSource_win.h@ 50460

Last change on this file since 50460 was 50460, checked in by vboxsync, 11 years ago

DnD: Update.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/* $Id: UIDnDDropSource_win.h 50460 2014-02-14 09:46:58Z vboxsync $ */
2/** @file
3 *
4 * VBox frontends: Qt GUI ("VirtualBox"):
5 * UIDnDDropSource class declaration
6 */
7
8/*
9 * Copyright (C) 2014 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 */
19
20#ifndef ___UIDnDDropSource_win_h___
21#define ___UIDnDDropSource_win_h___
22
23#include "UIDnDDrag.h"
24
25class UIDnDDropSource : public IDropSource
26{
27public:
28
29 UIDnDDropSource(UIDnDDrag *pParent);
30 virtual ~UIDnDDropSource(void);
31
32public:
33
34 uint32_t GetCurrentAction(void) { return muCurAction; }
35
36public: /* IUnknown methods. */
37
38 STDMETHOD(QueryInterface)(REFIID iid, void ** ppvObject);
39 STDMETHOD_(ULONG, AddRef)(void);
40 STDMETHOD_(ULONG, Release)(void);
41
42public: /* IDropSource methods. */
43
44 STDMETHOD(QueryContinueDrag)(BOOL fEscapePressed, DWORD dwKeyState);
45 STDMETHOD(GiveFeedback)(DWORD dwEffect);
46
47protected:
48
49 LONG mRefCount;
50 UIDnDDrag *mpParent;
51 DWORD mdwCurEffect;
52 Qt::DropActions muCurAction;
53};
54
55#endif /* ___UIDnDDropSource_win_h___ */
56
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette