• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE Support
  • Sitemap
  • Contact Us
 

qca

QCA::FileWatch

QCA::FileWatch Class Reference
[QCA user API]

Support class to monitor a file for activity. More...

#include <QtCrypto>

Inheritance diagram for QCA::FileWatch:
Inheritance graph
[legend]

List of all members.

Signals

void changed ()

Public Member Functions

 FileWatch (const QString &file=QString(), QObject *parent=0)
 ~FileWatch ()
QString fileName () const
void setFileName (const QString &file)

Detailed Description

Support class to monitor a file for activity.

FileWatch monitors a specified file for any changes. When the file changes, the changed() signal is emitted.

Note:
QFileSystemWatcher has very similar functionality to this class. You should evaluate this class and QFileSystemWatcher to determine which better suits your application needs.

Definition at line 459 of file qca_support.h.


Constructor & Destructor Documentation

QCA::FileWatch::FileWatch ( const QString &  file = QString(),
QObject *  parent = 0 
) [explicit]

Standard constructor.

Parameters:
file the name of the file to watch. If not in this object, you can set it using setFileName()
parent the parent object for this object

Definition at line 214 of file dirwatch.cpp.

QCA::FileWatch::~FileWatch (  ) 

Definition at line 221 of file dirwatch.cpp.


Member Function Documentation

void QCA::FileWatch::changed (  )  [signal]

The changed signal is emitted when the file is changed (e.g.

modified, deleted)

QString QCA::FileWatch::fileName (  )  const

The name of the file that is being monitored.

Definition at line 226 of file dirwatch.cpp.

void QCA::FileWatch::setFileName ( const QString &  file  ) 

Change the file being monitored.

Parameters:
file the name of the file to monitor

Definition at line 231 of file dirwatch.cpp.


The documentation for this class was generated from the following files:
  • qca_support.h
  • dirwatch.cpp

qca

Skip menu "qca"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE Support

Skip menu "KDE Support"
  • akonadi
  • Decibel
  • grantlee
  • kdewin
  • phonon
  •     Backend
  • polkit-qt
  • qca
  • qimageblitz
  • soprano
  • strigi
  •     searchclient
  •     streamanalyzer
  •     streams
Generated for KDE Support by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal