Signals | Public Member Functions
KephrenFtpWatcher Class Reference

Brief description of class still missing. More...

#include <KephrenFtpWatcher.h>

List of all members.

Signals

void fileCreated (const QString &path)

Public Member Functions

 KephrenFtpWatcher (QObject *parent=0)
void setInitialWatchDelay (int secs)
void setPath (const QString &path)
 ~KephrenFtpWatcher ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

KephrenFtpWatcher::KephrenFtpWatcher ( QObject *  parent = 0)

Description of constructor still missing

References TRACE.

    : QObject(parent), _intervalAverage(10,1.0)
{
  TRACE;
  _watchDelay.setInterval(60000);
  connect(&_watchDelay,SIGNAL(timeout()), this, SLOT(checkFiles()));
}

Description of destructor still missing

References TRACE.

{
  TRACE;
}

Member Function Documentation

void KephrenFtpWatcher::fileCreated ( const QString &  path) [signal]
void KephrenFtpWatcher::setInitialWatchDelay ( int  secs) [inline]

Referenced by TitanProcess::setInitialWatchDelay().

{_watchDelay.setInterval(secs*1000);}
void KephrenFtpWatcher::setPath ( const QString &  path)

References TRACE.

Referenced by TitanProcess::setSourcePath().

{
  TRACE;
  _baseDir.setPath(path);
  _watchDelay.start();
  _currentDir.setPath(_baseDir.absoluteFilePath(QDateTime::currentDateTime().toString("yyyy.MM.dd")));
  setNextDir();
  scan(_currentDir, _currentFiles);
  scan(_nextDir, _nextFiles);
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines