All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
GeopsyGui::DirectoryMonitor Class Reference

Brief description of class still missing. More...

#include <DirectoryMonitor.h>

List of all members.

Public Member Functions

 DirectoryMonitor (QWidget *parent=0)
void removeAllFiles ()
void removeFile (QString path)
 ~DirectoryMonitor ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References QGpCoreTools::tr(), and TRACE.

    : QWidget(parent)
{
  TRACE;
  setupUi(this);

  connect(&_timer, SIGNAL(timeout()), this, SLOT(checkForNewFiles()));
  status->setText(tr("Not active"));

  _loadedCount=0;

  Settings::getWidget(this, "DirectoryMonitor" );
}

References TRACE.

{
  TRACE;
  if(_timer.isActive()) {
    _timer.stop();
  }
  Settings::setWidget(this, "DirectoryMonitor" );
}

Member Function Documentation

Called when the user closes the current database

Referenced by GeopsyMainWindow::clearAll().

{
  _fileMap.clear();
  _loadedCount=0;
  showStatus();
}

Called when the user remove a file from database

Referenced by GeopsyMainWindow::filesRemoved().

{
  if(_fileMap.contains(path)) {
    _fileMap.remove(path);
    _loadedCount--;
    showStatus();
  }
}

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