PythonQtWrapper_QFileInfo.h
74 lines
| 3.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QFILEINFO_H | ||
#define PYTHONQTWRAPPER_QFILEINFO_H | ||||
#include <qfileinfo.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QDateTime> | ||
#include <QDir> | ||||
#include <QVariant> | ||||
#include <qdatetime.h> | ||||
#include <qdir.h> | ||||
#include <qfile.h> | ||||
#include <qfileinfo.h> | ||||
class PythonQtWrapper_QFileInfo : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QFileInfo* new_QFileInfo(); | ||||
QFileInfo* new_QFileInfo(const QDir& dir, const QString& file); | ||||
QFileInfo* new_QFileInfo(const QFile& file); | ||||
QFileInfo* new_QFileInfo(const QFileInfo& fileinfo); | ||||
QFileInfo* new_QFileInfo(const QString& file); | ||||
void delete_QFileInfo(QFileInfo* obj) { delete obj; } | ||||
florianlink
|
r28 | QString absoluteFilePath(QFileInfo* theWrappedObject) const; | ||
void setFile(QFileInfo* theWrappedObject, const QString& file); | ||||
bool isReadable(QFileInfo* theWrappedObject) const; | ||||
QString canonicalFilePath(QFileInfo* theWrappedObject) const; | ||||
QString owner(QFileInfo* theWrappedObject) const; | ||||
void setCaching(QFileInfo* theWrappedObject, bool on); | ||||
bool makeAbsolute(QFileInfo* theWrappedObject); | ||||
QFile::Permissions permissions(QFileInfo* theWrappedObject) const; | ||||
QString baseName(QFileInfo* theWrappedObject) const; | ||||
QString group(QFileInfo* theWrappedObject) const; | ||||
bool isDir(QFileInfo* theWrappedObject) const; | ||||
QString completeBaseName(QFileInfo* theWrappedObject) const; | ||||
QString canonicalPath(QFileInfo* theWrappedObject) const; | ||||
QString filePath(QFileInfo* theWrappedObject) const; | ||||
uint ownerId(QFileInfo* theWrappedObject) const; | ||||
bool isExecutable(QFileInfo* theWrappedObject) const; | ||||
florianlink
|
r13 | QString fileName(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r24 | QDateTime created(QFileInfo* theWrappedObject) const; | ||
QString completeSuffix(QFileInfo* theWrappedObject) const; | ||||
QString path(QFileInfo* theWrappedObject) const; | ||||
QString suffix(QFileInfo* theWrappedObject) const; | ||||
bool isHidden(QFileInfo* theWrappedObject) const; | ||||
void setFile(QFileInfo* theWrappedObject, const QDir& dir, const QString& file); | ||||
QString bundleName(QFileInfo* theWrappedObject) const; | ||||
florianlink
|
r28 | bool operator_equal(QFileInfo* theWrappedObject, const QFileInfo& fileinfo); | ||
florianlink
|
r13 | bool isAbsolute(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r24 | QString absolutePath(QFileInfo* theWrappedObject) const; | ||
QString symLinkTarget(QFileInfo* theWrappedObject) const; | ||||
void setFile(QFileInfo* theWrappedObject, const QFile& file); | ||||
QDir absoluteDir(QFileInfo* theWrappedObject) const; | ||||
florianlink
|
r13 | bool isFile(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r24 | void refresh(QFileInfo* theWrappedObject); | ||
florianlink
|
r13 | bool isSymLink(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r28 | bool isRelative(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r13 | QDateTime lastRead(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r24 | uint groupId(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r28 | bool isWritable(QFileInfo* theWrappedObject) const; | ||
florianlink
|
r24 | bool caching(QFileInfo* theWrappedObject) const; | ||
bool isRoot(QFileInfo* theWrappedObject) const; | ||||
QDir dir(QFileInfo* theWrappedObject) const; | ||||
QDateTime lastModified(QFileInfo* theWrappedObject) const; | ||||
florianlink
|
r28 | bool permission(QFileInfo* theWrappedObject, QFile::Permissions permissions) const; | ||
florianlink
|
r24 | bool isBundle(QFileInfo* theWrappedObject) const; | ||
qint64 size(QFileInfo* theWrappedObject) const; | ||||
bool exists(QFileInfo* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QFILEINFO_H | ||||