Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
 QtSingleApplication (int &argc, char **argv, Type type)
 
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 ( const QString &  id,
int &  argc,
char **  argv 
)

References watcher.

Member Function Documentation

void HelpBrowser_Application::addWatchPath ( const QString &  thePath)

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

References watcher.

void HelpBrowser_Application::clearWatcher ( bool  isDeleteFile = true)

References removeWatchPath(), and watcher.

QFileSystemWatcher * HelpBrowser_Application::fileSysWatcher ( ) const

References watcher.

void HelpBrowser_Application::removeWatchPath ( const QString &  thePath)

Removes the path to the file system watcher.

References watcher.

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

QFileSystemWatcher* HelpBrowser_Application::watcher
private

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