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
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Friends | List of all members
Zbl::ZFileInfo Class Reference

A Javascript object for passing Zuble file information from C++ to Javascript. This is a wrapper class for QFileInfoList. More...

#include <ZFileInfo.h>

Inheritance diagram for Zbl::ZFileInfo:
Inheritance graph
Collaboration diagram for Zbl::ZFileInfo:
Collaboration graph

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


int count
int index
bool caching
QVariant size
QVariant created
QVariant lastModified
QVariant lastRead
int permissions


class ZDir

Detailed Description

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.

Constructor & Destructor Documentation

◆ ZFileInfo()

Zbl::ZFileInfo::ZFileInfo ( QObject *  parent = 0)

Definition at line 50 of file ZFileInfo.cpp.

◆ ~ZFileInfo()

Zbl::ZFileInfo::~ZFileInfo ( )

Definition at line 57 of file ZFileInfo.cpp.

Member Function Documentation

◆ absoluteDir()

QObject * Zbl::ZFileInfo::absoluteDir ( ) const

Definition at line 163 of file ZFileInfo.cpp.

◆ checkIndex()

void Zbl::ZFileInfo::checkIndex ( ) const

Definition at line 135 of file ZFileInfo.h.

Referenced by absoluteDir(), dir(), getCaching(), makeAbsolute(), permission(), refresh(), and setCaching().

◆ count()

int Zbl::ZFileInfo::count ( )

Referenced by setInfoList().

◆ created()

QVariant Zbl::ZFileInfo::created ( ) const

Referenced by absoluteDir().

◆ dir()

QObject * Zbl::ZFileInfo::dir ( ) const

Definition at line 154 of file ZFileInfo.cpp.

◆ getCaching()

bool Zbl::ZFileInfo::getCaching ( )

Definition at line 138 of file ZFileInfo.cpp.

◆ getIndex()

int Zbl::ZFileInfo::getIndex ( )

Definition at line 91 of file ZFileInfo.cpp.

◆ inc()

int Zbl::ZFileInfo::inc ( )

Definition at line 72 of file ZFileInfo.cpp.

◆ lastModified()

QVariant Zbl::ZFileInfo::lastModified ( ) const

Referenced by absoluteDir().

◆ lastRead()

QVariant Zbl::ZFileInfo::lastRead ( ) const

Referenced by absoluteDir().

◆ makeAbsolute()

bool Zbl::ZFileInfo::makeAbsolute ( )

Definition at line 130 of file ZFileInfo.cpp.

◆ permission()

bool Zbl::ZFileInfo::permission ( int  permissions) const

Definition at line 203 of file ZFileInfo.cpp.

◆ permissions()

int Zbl::ZFileInfo::permissions ( ) const

Referenced by permission().

◆ refresh()

void Zbl::ZFileInfo::refresh ( )

Definition at line 121 of file ZFileInfo.cpp.

◆ setCaching()

void Zbl::ZFileInfo::setCaching ( bool  on)

Definition at line 146 of file ZFileInfo.cpp.

◆ setFile()

void Zbl::ZFileInfo::setFile ( const QString &  file)

Definition at line 108 of file ZFileInfo.cpp.

◆ setIndex()

void Zbl::ZFileInfo::setIndex ( int  index)

Definition at line 99 of file ZFileInfo.cpp.

◆ setInfoList()

void Zbl::ZFileInfo::setInfoList ( QFileInfoList  infoList)

Definition at line 62 of file ZFileInfo.cpp.

Referenced by Zbl::ZDir::entryInfoList().

◆ size()

QVariant Zbl::ZFileInfo::size ( ) const

Referenced by absoluteDir().

Friends And Related Function Documentation

◆ ZDir

friend class ZDir

Definition at line 50 of file ZFileInfo.h.

Referenced by absoluteDir(), and dir().

Member Data Documentation

◆ m_fi

QFileInfoList Zbl::ZFileInfo::m_fi

◆ m_i

int Zbl::ZFileInfo::m_i

Property Documentation

◆ caching

bool Zbl::ZFileInfo::caching

Definition at line 103 of file ZFileInfo.h.

Referenced by getCaching().

◆ count

int Zbl::ZFileInfo::count

Definition at line 62 of file ZFileInfo.h.

◆ created

QVariant Zbl::ZFileInfo::created

Definition at line 105 of file ZFileInfo.h.

◆ index

int Zbl::ZFileInfo::index

Definition at line 63 of file ZFileInfo.h.

Referenced by setIndex().

◆ lastModified

QVariant Zbl::ZFileInfo::lastModified

Definition at line 106 of file ZFileInfo.h.

◆ lastRead

QVariant Zbl::ZFileInfo::lastRead

Definition at line 107 of file ZFileInfo.h.

◆ permissions

int Zbl::ZFileInfo::permissions

Definition at line 108 of file ZFileInfo.h.

◆ size

QVariant Zbl::ZFileInfo::size

Definition at line 104 of file ZFileInfo.h.

The documentation for this class was generated from the following files: