#include <HelpBrowser_Application.h>
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) |
QWidget * | activationWindow () const |
void | initialize (bool dummy=true) |
Private Attributes | |
QFileSystemWatcher * | watcher |
Additional Inherited Members | |
Signals inherited from QtSingleApplication | |
void | messageReceived (const QString &message) |
HelpBrowser_Application::HelpBrowser_Application | ( | const QString & | id, |
int & | argc, | ||
char ** | argv | ||
) |
Constructor.
References watcher.
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 | ) |
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.
QFileSystemWatcher * HelpBrowser_Application::fileSysWatcher | ( | ) | const |
Returns the file system watcher for monitoring files for modifications.
References watcher.
void HelpBrowser_Application::removeWatchPath | ( | const QString & | thePath | ) |
Removes the path to the file system watcher.
References watcher.
|
slot |
Updates the statement of watcher. If file becomes empty it is removed and calls quit() function for application.
References removeWatchPath(), and watcher.
|
private |