Qt 4.8
Public Functions | Properties | List of all members
QPollingFileSystemWatcherEngine::FileInfo Class Reference

Public Functions

 FileInfo (const QFileInfo &fileInfo)
 
bool operator!= (const QFileInfo &fileInfo) const
 
FileInfooperator= (const QFileInfo &fileInfo)
 

Properties

QStringList entries
 
uint groupId
 
QDateTime lastModified
 
uint ownerId
 
QFile::Permissions permissions
 

Detailed Description

Definition at line 79 of file qfilesystemwatcher.cpp.

Constructors and Destructors

◆ FileInfo()

QPollingFileSystemWatcherEngine::FileInfo::FileInfo ( const QFileInfo fileInfo)
inline

Definition at line 88 of file qfilesystemwatcher.cpp.

Referenced by operator=().

89  : ownerId(fileInfo.ownerId()),
90  groupId(fileInfo.groupId()),
91  permissions(fileInfo.permissions()),
92  lastModified(fileInfo.lastModified())
93  {
94  if (fileInfo.isDir()) {
96  }
97  }
QDir absoluteDir() const
Returns the file's absolute path as a QDir object.
Definition: qfileinfo.cpp:873
QFile::Permissions permissions() const
Returns the complete OR-ed together combination of QFile::Permissions for the file.
Definition: qfileinfo.cpp:1228
uint ownerId() const
Returns the id of the owner of the file.
Definition: qfileinfo.cpp:1144
bool isDir() const
Returns true if this object points to a directory or to a symbolic link to a directory; otherwise ret...
Definition: qfileinfo.cpp:990
uint groupId() const
Returns the id of the group the file belongs to.
Definition: qfileinfo.cpp:1183
QStringList entryList(Filters filters=NoFilter, SortFlags sort=NoSort) const
Returns a list of the names of all the files and directories in the directory, ordered according to t...
Definition: qdir.cpp:1290
QDateTime lastModified() const
Returns the date and time when the file was last modified.
Definition: qfileinfo.cpp:1296

Functions

◆ operator!=()

bool QPollingFileSystemWatcherEngine::FileInfo::operator!= ( const QFileInfo fileInfo) const
inline

Definition at line 104 of file qfilesystemwatcher.cpp.

105  {
106  if (fileInfo.isDir() && entries != fileInfo.absoluteDir().entryList(QDir::AllEntries))
107  return true;
108  return (ownerId != fileInfo.ownerId()
109  || groupId != fileInfo.groupId()
110  || permissions != fileInfo.permissions()
111  || lastModified != fileInfo.lastModified());
112  }
QDir absoluteDir() const
Returns the file's absolute path as a QDir object.
Definition: qfileinfo.cpp:873
QFile::Permissions permissions() const
Returns the complete OR-ed together combination of QFile::Permissions for the file.
Definition: qfileinfo.cpp:1228
uint ownerId() const
Returns the id of the owner of the file.
Definition: qfileinfo.cpp:1144
bool isDir() const
Returns true if this object points to a directory or to a symbolic link to a directory; otherwise ret...
Definition: qfileinfo.cpp:990
uint groupId() const
Returns the id of the group the file belongs to.
Definition: qfileinfo.cpp:1183
QStringList entryList(Filters filters=NoFilter, SortFlags sort=NoSort) const
Returns a list of the names of all the files and directories in the directory, ordered according to t...
Definition: qdir.cpp:1290
QDateTime lastModified() const
Returns the date and time when the file was last modified.
Definition: qfileinfo.cpp:1296

◆ operator=()

FileInfo& QPollingFileSystemWatcherEngine::FileInfo::operator= ( const QFileInfo fileInfo)
inline

Definition at line 98 of file qfilesystemwatcher.cpp.

99  {
100  *this = FileInfo(fileInfo);
101  return *this;
102  }

Properties

◆ entries

QStringList QPollingFileSystemWatcherEngine::FileInfo::entries
private

Definition at line 85 of file qfilesystemwatcher.cpp.

◆ groupId

uint QPollingFileSystemWatcherEngine::FileInfo::groupId
private

Definition at line 82 of file qfilesystemwatcher.cpp.

◆ lastModified

QDateTime QPollingFileSystemWatcherEngine::FileInfo::lastModified
private

Definition at line 84 of file qfilesystemwatcher.cpp.

◆ ownerId

uint QPollingFileSystemWatcherEngine::FileInfo::ownerId
private

Definition at line 81 of file qfilesystemwatcher.cpp.

◆ permissions

QFile::Permissions QPollingFileSystemWatcherEngine::FileInfo::permissions
private

Definition at line 83 of file qfilesystemwatcher.cpp.


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