IDropConsumer.h
Go to the documentation of this file.
1 #ifndef iqtgui_IDropConsumer_included
2 #define iqtgui_IDropConsumer_included
3 
4 
5 // Qt includes
6 #include <QtCore/QMimeData>
7 #include <QtCore/QEvent>
8 
9 // ACF includes
10 #include <istd/IPolymorphic.h>
11 #include <iqtgui/iqtgui.h>
12 
13 
14 namespace iqtgui
15 {
16 
17 
21 class IDropConsumer: virtual public istd::IPolymorphic
22 {
23 public:
27  virtual QStringList GetAcceptedMimeIds() const = 0;
28 
32  virtual void OnDropFinished(const QMimeData& mimeData, QEvent* eventPtr) = 0;
33 };
34 
35 
36 } // namespace iqtgui
37 
38 
39 #endif // !iqtgui_IDropConsumer_included
40 
41 
virtual QStringList GetAcceptedMimeIds() const =0
Get the list of the possible mime IDs, which are accepted by the consumer.
virtual void OnDropFinished(const QMimeData &mimeData, QEvent *eventPtr)=0
Notification about drop action finish.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Interface for objects which can receive dragged objects.
Definition: IDropConsumer.h:21

© 2007-2017 Witold Gantzke and Kirill Lepskiy