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