2014-02-04 08:13:40 +00:00
|
|
|
/*This class provides way to construct mimedata object holding the reference to the
|
|
|
|
* universalid. universalid is used in the majority of the tables to store type, id, argument types*/
|
|
|
|
|
2014-02-01 18:06:41 +00:00
|
|
|
#ifndef TABLEMIMEDATA_H
|
|
|
|
#define TABLEMIMEDATA_H
|
|
|
|
|
|
|
|
#include <qt4/QtCore/QMimeData>
|
2014-02-04 08:13:40 +00:00
|
|
|
#include <QVariant>
|
2014-02-01 18:06:41 +00:00
|
|
|
|
2014-02-04 08:13:40 +00:00
|
|
|
namespace CSMWorld
|
2014-02-01 18:06:41 +00:00
|
|
|
{
|
2014-02-04 08:13:40 +00:00
|
|
|
class UniversalId;
|
|
|
|
class TableMimeData : public QMimeData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TableMimeData(UniversalId& UniversalId);
|
|
|
|
~TableMimeData();
|
|
|
|
virtual QStringList formats() const;
|
|
|
|
UniversalId& getId();
|
2014-02-01 18:06:41 +00:00
|
|
|
|
2014-02-04 08:13:40 +00:00
|
|
|
private:
|
|
|
|
QStringList mSupportedFormats;
|
|
|
|
UniversalId& mUniversalId;
|
|
|
|
};
|
|
|
|
}
|
2014-02-01 18:06:41 +00:00
|
|
|
#endif // TABLEMIMEDATA_H
|