VirtualBox

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

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

Build fix.

  • 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 50604 2014-02-26 13:30:01Z 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/* COM includes: */
24#include "COMEnums.h"
25
26class UIDnDDropSource : public IDropSource
27{
28public:
29
30 UIDnDDropSource(QWidget *pParent);
31 virtual ~UIDnDDropSource(void);
32
33public:
34
35 uint32_t GetCurrentAction(void) { return muCurAction; }
36
37public: /* IUnknown methods. */
38
39 STDMETHOD(QueryInterface)(REFIID iid, void ** ppvObject);
40 STDMETHOD_(ULONG, AddRef)(void);
41 STDMETHOD_(ULONG, Release)(void);
42
43public: /* IDropSource methods. */
44
45 STDMETHOD(QueryContinueDrag)(BOOL fEscapePressed, DWORD dwKeyState);
46 STDMETHOD(GiveFeedback)(DWORD dwEffect);
47
48protected:
49
50 LONG mRefCount;
51 QWidget *mpParent;
52 DWORD mdwCurEffect;
53 Qt::DropActions muCurAction;
54};
55
56#endif /* ___UIDnDDropSource_win_h___ */
57
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