PythonQtWrapper_QUrlInfo.h
96 lines
| 5.5 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QURLINFO_H | ||
#define PYTHONQTWRAPPER_QURLINFO_H | ||||
#include <qurlinfo.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatetime.h> | ||||
#include <qurl.h> | ||||
#include <qurlinfo.h> | ||||
florianlink
|
r24 | class PythonQtShell_QUrlInfo : public QUrlInfo | ||
{ | ||||
public: | ||||
PythonQtShell_QUrlInfo():QUrlInfo(),_wrapper(NULL) {}; | ||||
PythonQtShell_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable):QUrlInfo(name, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable),_wrapper(NULL) {}; | ||||
PythonQtShell_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable):QUrlInfo(url, permissions, owner, group, size, lastModified, lastRead, isDir, isFile, isSymLink, isWritable, isReadable, isExecutable),_wrapper(NULL) {}; | ||||
PythonQtShell_QUrlInfo(const QUrlInfo& ui):QUrlInfo(ui),_wrapper(NULL) {}; | ||||
virtual void setDir(bool b); | ||||
virtual void setFile(bool b); | ||||
virtual void setGroup(const QString& s); | ||||
virtual void setLastModified(const QDateTime& dt); | ||||
virtual void setName(const QString& name); | ||||
virtual void setOwner(const QString& s); | ||||
virtual void setPermissions(int p); | ||||
virtual void setReadable(bool b); | ||||
virtual void setSize(qint64 size); | ||||
virtual void setSymLink(bool b); | ||||
virtual void setWritable(bool b); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r28 | class PythonQtPublicPromoter_QUrlInfo : public QUrlInfo | ||
{ public: | ||||
inline void promoted_setSize(qint64 size) { QUrlInfo::setSize(size); } | ||||
inline void promoted_setSymLink(bool b) { QUrlInfo::setSymLink(b); } | ||||
florianlink
|
r73 | inline void promoted_setDir(bool b) { QUrlInfo::setDir(b); } | ||
florianlink
|
r28 | inline void promoted_setLastModified(const QDateTime& dt) { QUrlInfo::setLastModified(dt); } | ||
inline void promoted_setName(const QString& name) { QUrlInfo::setName(name); } | ||||
inline void promoted_setReadable(bool b) { QUrlInfo::setReadable(b); } | ||||
inline void promoted_setWritable(bool b) { QUrlInfo::setWritable(b); } | ||||
florianlink
|
r73 | inline void promoted_setPermissions(int p) { QUrlInfo::setPermissions(p); } | ||
inline void promoted_setFile(bool b) { QUrlInfo::setFile(b); } | ||||
inline void promoted_setGroup(const QString& s) { QUrlInfo::setGroup(s); } | ||||
inline void promoted_setOwner(const QString& s) { QUrlInfo::setOwner(s); } | ||||
florianlink
|
r28 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QUrlInfo : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(PermissionSpec ) | ||||
enum PermissionSpec{ | ||||
ReadOwner = QUrlInfo::ReadOwner, WriteOwner = QUrlInfo::WriteOwner, ExeOwner = QUrlInfo::ExeOwner, ReadGroup = QUrlInfo::ReadGroup, WriteGroup = QUrlInfo::WriteGroup, ExeGroup = QUrlInfo::ExeGroup, ReadOther = QUrlInfo::ReadOther, WriteOther = QUrlInfo::WriteOther, ExeOther = QUrlInfo::ExeOther}; | ||||
public slots: | ||||
QUrlInfo* new_QUrlInfo(); | ||||
QUrlInfo* new_QUrlInfo(const QString& name, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable); | ||||
QUrlInfo* new_QUrlInfo(const QUrl& url, int permissions, const QString& owner, const QString& group, qint64 size, const QDateTime& lastModified, const QDateTime& lastRead, bool isDir, bool isFile, bool isSymLink, bool isWritable, bool isReadable, bool isExecutable); | ||||
QUrlInfo* new_QUrlInfo(const QUrlInfo& ui); | ||||
void delete_QUrlInfo(QUrlInfo* obj) { delete obj; } | ||||
florianlink
|
r28 | bool static_QUrlInfo_greaterThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); | ||
florianlink
|
r73 | bool static_QUrlInfo_lessThan(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); | ||
florianlink
|
r28 | bool isSymLink(QUrlInfo* theWrappedObject) const; | ||
bool isValid(QUrlInfo* theWrappedObject) const; | ||||
florianlink
|
r73 | QString group(QUrlInfo* theWrappedObject) const; | ||
bool isReadable(QUrlInfo* theWrappedObject) const; | ||||
florianlink
|
r28 | void setSize(QUrlInfo* theWrappedObject, qint64 size); | ||
florianlink
|
r13 | QDateTime lastModified(QUrlInfo* theWrappedObject) const; | ||
florianlink
|
r73 | void setSymLink(QUrlInfo* theWrappedObject, bool b); | ||
florianlink
|
r24 | bool isDir(QUrlInfo* theWrappedObject) const; | ||
florianlink
|
r28 | bool isFile(QUrlInfo* theWrappedObject) const; | ||
florianlink
|
r24 | bool static_QUrlInfo_equal(const QUrlInfo& i1, const QUrlInfo& i2, int sortBy); | ||
florianlink
|
r73 | QDateTime lastRead(QUrlInfo* theWrappedObject) const; | ||
florianlink
|
r28 | void setDir(QUrlInfo* theWrappedObject, bool b); | ||
void setLastModified(QUrlInfo* theWrappedObject, const QDateTime& dt); | ||||
florianlink
|
r13 | void setName(QUrlInfo* theWrappedObject, const QString& name); | ||
florianlink
|
r24 | void setReadable(QUrlInfo* theWrappedObject, bool b); | ||
QString name(QUrlInfo* theWrappedObject) const; | ||||
void setWritable(QUrlInfo* theWrappedObject, bool b); | ||||
bool isWritable(QUrlInfo* theWrappedObject) const; | ||||
florianlink
|
r28 | void setLastRead(QUrlInfo* theWrappedObject, const QDateTime& dt); | ||
florianlink
|
r73 | void setPermissions(QUrlInfo* theWrappedObject, int p); | ||
bool isExecutable(QUrlInfo* theWrappedObject) const; | ||||
void setFile(QUrlInfo* theWrappedObject, bool b); | ||||
qint64 size(QUrlInfo* theWrappedObject) const; | ||||
QString owner(QUrlInfo* theWrappedObject) const; | ||||
int permissions(QUrlInfo* theWrappedObject) const; | ||||
void setGroup(QUrlInfo* theWrappedObject, const QString& s); | ||||
bool operator_equal(QUrlInfo* theWrappedObject, const QUrlInfo& i) const; | ||||
void setOwner(QUrlInfo* theWrappedObject, const QString& s); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QURLINFO_H | ||||