WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
A Javascript object for passing Zuble file information from C++ to Javascript. This is a wrapper class for QFileInfoList. More...
#include <ZFileInfo.h>
Public Member Functions | |
ZFileInfo (QObject *parent=0) | |
virtual | ~ZFileInfo () |
void | setInfoList (QFileInfoList infoList) |
int | count () |
int | getIndex () |
void | setIndex (int index) |
bool | getCaching () |
void | setCaching (bool on) |
QVariant | size () const |
QVariant | created () const |
QVariant | lastModified () const |
QVariant | lastRead () const |
int | permissions () const |
Q_INVOKABLE int | inc () |
Q_INVOKABLE void | setFile (const QString &file) |
Q_INVOKABLE void | refresh () |
Q_INVOKABLE bool | makeAbsolute () |
Q_INVOKABLE QObject * | dir () const |
Q_INVOKABLE QObject * | absoluteDir () const |
Q_INVOKABLE bool | permission (int permissions) const |
Protected Member Functions | |
void | checkIndex () const |
Protected Attributes | |
QFileInfoList | m_fi |
int | m_i |
Properties | |
int | count |
int | index |
bool | caching |
QVariant | size |
QVariant | created |
QVariant | lastModified |
QVariant | lastRead |
int | permissions |
Friends | |
class | ZDir |
A Javascript object for passing Zuble file information from C++ to Javascript. This is a wrapper class for QFileInfoList.
Set the index property to the desired list element index
Definition at line 48 of file ZFileInfo.h.
|
explicit |
Definition at line 50 of file ZFileInfo.cpp.
|
virtual |
Definition at line 57 of file ZFileInfo.cpp.
QObject * Zbl::ZFileInfo::absoluteDir | ( | ) | const |
Definition at line 163 of file ZFileInfo.cpp.
|
inlineprotected |
Definition at line 135 of file ZFileInfo.h.
Referenced by absoluteDir(), dir(), getCaching(), makeAbsolute(), permission(), refresh(), and setCaching().
int Zbl::ZFileInfo::count | ( | ) |
Referenced by setInfoList().
QVariant Zbl::ZFileInfo::created | ( | ) | const |
Referenced by absoluteDir().
QObject * Zbl::ZFileInfo::dir | ( | ) | const |
Definition at line 154 of file ZFileInfo.cpp.
bool Zbl::ZFileInfo::getCaching | ( | ) |
Definition at line 138 of file ZFileInfo.cpp.
int Zbl::ZFileInfo::getIndex | ( | ) |
Definition at line 91 of file ZFileInfo.cpp.
int Zbl::ZFileInfo::inc | ( | ) |
Definition at line 72 of file ZFileInfo.cpp.
QVariant Zbl::ZFileInfo::lastModified | ( | ) | const |
Referenced by absoluteDir().
QVariant Zbl::ZFileInfo::lastRead | ( | ) | const |
Referenced by absoluteDir().
bool Zbl::ZFileInfo::makeAbsolute | ( | ) |
Definition at line 130 of file ZFileInfo.cpp.
bool Zbl::ZFileInfo::permission | ( | int | permissions | ) | const |
Definition at line 203 of file ZFileInfo.cpp.
int Zbl::ZFileInfo::permissions | ( | ) | const |
Referenced by permission().
void Zbl::ZFileInfo::refresh | ( | ) |
Definition at line 121 of file ZFileInfo.cpp.
void Zbl::ZFileInfo::setCaching | ( | bool | on | ) |
Definition at line 146 of file ZFileInfo.cpp.
void Zbl::ZFileInfo::setFile | ( | const QString & | file | ) |
Definition at line 108 of file ZFileInfo.cpp.
void Zbl::ZFileInfo::setIndex | ( | int | index | ) |
Definition at line 99 of file ZFileInfo.cpp.
void Zbl::ZFileInfo::setInfoList | ( | QFileInfoList | infoList | ) |
Definition at line 62 of file ZFileInfo.cpp.
Referenced by Zbl::ZDir::entryInfoList().
QVariant Zbl::ZFileInfo::size | ( | ) | const |
Referenced by absoluteDir().
|
friend |
Definition at line 50 of file ZFileInfo.h.
Referenced by absoluteDir(), and dir().
|
protected |
Definition at line 131 of file ZFileInfo.h.
Referenced by absoluteDir(), dir(), getCaching(), inc(), makeAbsolute(), permission(), refresh(), setCaching(), setFile(), setIndex(), and setInfoList().
|
protected |
Definition at line 132 of file ZFileInfo.h.
Referenced by absoluteDir(), dir(), getCaching(), getIndex(), inc(), makeAbsolute(), permission(), refresh(), setCaching(), setFile(), and setIndex().
|
readwrite |
Definition at line 103 of file ZFileInfo.h.
Referenced by getCaching().
|
read |
Definition at line 62 of file ZFileInfo.h.
|
read |
Definition at line 105 of file ZFileInfo.h.
|
readwrite |
Definition at line 63 of file ZFileInfo.h.
Referenced by setIndex().
|
read |
Definition at line 106 of file ZFileInfo.h.
|
read |
Definition at line 107 of file ZFileInfo.h.
|
read |
Definition at line 108 of file ZFileInfo.h.
|
read |
Definition at line 104 of file ZFileInfo.h.
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.