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