Qt 4.8
Public Functions | Public Variables | List of all members
QDnotifyFileSystemWatcherEngine::Directory::File Struct Reference

#include <qfilesystemwatcher_dnotify_p.h>

Public Functions

 File ()
 
 File (const File &o)
 
bool updateInfo ()
 

Public Variables

uint groupId
 
QDateTime lastWrite
 
uint ownerId
 
QString path
 
QFile::Permissions permissions
 

Detailed Description

Definition at line 99 of file qfilesystemwatcher_dnotify_p.h.

Constructors and Destructors

◆ File() [1/2]

QDnotifyFileSystemWatcherEngine::Directory::File::File ( )
inline

◆ File() [2/2]

QDnotifyFileSystemWatcherEngine::Directory::File::File ( const File o)
inline

Functions

◆ updateInfo()

bool QDnotifyFileSystemWatcherEngine::Directory::File::updateInfo ( )

Definition at line 435 of file qfilesystemwatcher_dnotify.cpp.

Referenced by QDnotifyFileSystemWatcherEngine::refresh().

436 {
437  QFileInfo fi(path);
438  QDateTime nLastWrite = fi.lastModified();
439  uint nOwnerId = fi.ownerId();
440  uint nGroupId = fi.groupId();
441  QFile::Permissions nPermissions = fi.permissions();
442 
443  if(nLastWrite != lastWrite ||
444  nOwnerId != ownerId ||
445  nGroupId != groupId ||
446  nPermissions != permissions) {
447  ownerId = nOwnerId;
448  groupId = nGroupId;
449  permissions = nPermissions;
450  lastWrite = nLastWrite;
451  return true;
452  } else {
453  return false;
454  }
455 }
unsigned int uint
Definition: qglobal.h:996
The QDateTime class provides date and time functions.
Definition: qdatetime.h:216
The QFileInfo class provides system-independent file information.
Definition: qfileinfo.h:60

Properties

◆ groupId

uint QDnotifyFileSystemWatcherEngine::Directory::File::groupId

Definition at line 111 of file qfilesystemwatcher_dnotify_p.h.

◆ lastWrite

QDateTime QDnotifyFileSystemWatcherEngine::Directory::File::lastWrite

◆ ownerId

uint QDnotifyFileSystemWatcherEngine::Directory::File::ownerId

Definition at line 110 of file qfilesystemwatcher_dnotify_p.h.

◆ path

QString QDnotifyFileSystemWatcherEngine::Directory::File::path

◆ permissions

QFile::Permissions QDnotifyFileSystemWatcherEngine::Directory::File::permissions

Definition at line 112 of file qfilesystemwatcher_dnotify_p.h.


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