Version: 9.12.0
HelpBrowser_Application Class Reference

#include <HelpBrowser_Application.h>

Inheritance diagram for HelpBrowser_Application:
Inheritance graph

Public Slots

void updateWatchStatement (const QString &thePath)
 
- Public Slots inherited from QtSingleApplication
bool sendMessage (const QString &message, int timeout=5000)
 
void activateWindow ()
 

Public Member Functions

 HelpBrowser_Application (const QString &id, int &argc, char **argv)
 Constructor. More...
 
QFileSystemWatcher * fileSysWatcher () const
 Returns the file system watcher for monitoring files for modifications. More...
 
void addWatchPath (const QString &thePath)
 
void removeWatchPath (const QString &thePath)
 
void clearWatcher (bool isDeleteFile=true)
 Removes the specified paths from the file system watcher and corresponding files if isDeleteFile flag is set. By default, this flag is true. More...
 
- Public Member Functions inherited from QtSingleApplication
 QtSingleApplication (int &argc, char **argv, bool GUIenabled=true)
 
 QtSingleApplication (const QString &id, int &argc, char **argv)
 
bool isRunning ()
 
QString id () const
 
void setActivationWindow (QWidget *aw, bool activateOnMessage=true)
 
QWidgetactivationWindow () const
 
void initialize (bool dummy=true)
 

Private Attributes

QFileSystemWatcher * watcher
 

Additional Inherited Members

- Signals inherited from QtSingleApplication
void messageReceived (const QString &message)
 

Constructor & Destructor Documentation

◆ HelpBrowser_Application()

HelpBrowser_Application::HelpBrowser_Application ( const QString &  id,
int &  argc,
char **  argv 
)

Constructor.

References watcher.

Member Function Documentation

◆ addWatchPath()

void HelpBrowser_Application::addWatchPath ( const QString &  thePath)

Adds the path to the file system watcher if the file exists.

References watcher.

◆ clearWatcher()

void HelpBrowser_Application::clearWatcher ( bool  isDeleteFile = true)

Removes the specified paths from the file system watcher and corresponding files if isDeleteFile flag is set. By default, this flag is true.

References removeWatchPath(), and watcher.

◆ fileSysWatcher()

QFileSystemWatcher * HelpBrowser_Application::fileSysWatcher ( ) const

Returns the file system watcher for monitoring files for modifications.

References watcher.

◆ removeWatchPath()

void HelpBrowser_Application::removeWatchPath ( const QString &  thePath)

Removes the path to the file system watcher.

References watcher.

◆ updateWatchStatement

void HelpBrowser_Application::updateWatchStatement ( const QString &  thePath)
slot

Updates the statement of watcher. If file becomes empty it is removed and calls quit() function for application.

References removeWatchPath(), and watcher.

Member Data Documentation

◆ watcher

QFileSystemWatcher* HelpBrowser_Application::watcher
private

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