PythonQtWrapper_QMimeData.h
74 lines
| 3.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QMIMEDATA_H | ||
#define PYTHONQTWRAPPER_QMIMEDATA_H | ||||
#include <qmimedata.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QStringList> | ||
#include <QUrl> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcoreevent.h> | ||||
#include <qlist.h> | ||||
#include <qmimedata.h> | ||||
#include <qobject.h> | ||||
#include <qstringlist.h> | ||||
#include <qurl.h> | ||||
florianlink
|
r24 | class PythonQtShell_QMimeData : public QMimeData | ||
{ | ||||
public: | ||||
PythonQtShell_QMimeData():QMimeData(),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual QStringList formats() const; | ||||
virtual bool hasFormat(const QString& mimetype) const; | ||||
virtual QVariant retrieveData(const QString& mimetype, QVariant::Type preferredType) const; | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QMimeData : public QMimeData | ||||
{ public: | ||||
florianlink
|
r28 | inline QStringList promoted_formats() const { return QMimeData::formats(); } | ||
inline bool promoted_hasFormat(const QString& mimetype) const { return QMimeData::hasFormat(mimetype); } | ||||
inline QVariant promoted_retrieveData(const QString& mimetype, QVariant::Type preferredType) const { return QMimeData::retrieveData(mimetype, preferredType); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QMimeData : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QMimeData* new_QMimeData(); | ||||
void delete_QMimeData(QMimeData* obj) { delete obj; } | ||||
florianlink
|
r28 | QVariant colorData(QMimeData* theWrappedObject) const; | ||
bool hasImage(QMimeData* theWrappedObject) const; | ||||
QByteArray data(QMimeData* theWrappedObject, const QString& mimetype) const; | ||||
void setUrls(QMimeData* theWrappedObject, const QList<QUrl >& urls); | ||||
QVariant imageData(QMimeData* theWrappedObject) const; | ||||
florianlink
|
r24 | void setImageData(QMimeData* theWrappedObject, const QVariant& image); | ||
florianlink
|
r28 | QStringList formats(QMimeData* theWrappedObject) const; | ||
void setHtml(QMimeData* theWrappedObject, const QString& html); | ||||
void setText(QMimeData* theWrappedObject, const QString& text); | ||||
florianlink
|
r13 | bool hasFormat(QMimeData* theWrappedObject, const QString& mimetype) const; | ||
florianlink
|
r28 | QList<QUrl > urls(QMimeData* theWrappedObject) const; | ||
void setColorData(QMimeData* theWrappedObject, const QVariant& color); | ||||
bool hasHtml(QMimeData* theWrappedObject) const; | ||||
void setData(QMimeData* theWrappedObject, const QString& mimetype, const QByteArray& data); | ||||
void clear(QMimeData* theWrappedObject); | ||||
florianlink
|
r24 | QString html(QMimeData* theWrappedObject) const; | ||
florianlink
|
r28 | bool hasUrls(QMimeData* theWrappedObject) const; | ||
florianlink
|
r24 | QString text(QMimeData* theWrappedObject) const; | ||
florianlink
|
r28 | bool hasText(QMimeData* theWrappedObject) const; | ||
florianlink
|
r13 | void removeFormat(QMimeData* theWrappedObject, const QString& mimetype); | ||
florianlink
|
r24 | bool hasColor(QMimeData* theWrappedObject) const; | ||
florianlink
|
r28 | QVariant retrieveData(QMimeData* theWrappedObject, const QString& mimetype, QVariant::Type preferredType) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QMIMEDATA_H | ||||