Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
SystemFileWatcher Class Reference

SystemFileWatcher provides monitoring of files and directories in the local system. More...

Public Member Functions

bool addPath (QString)
 Add a file or directory to watch for changes. More...
 
bool removePath (QString)
 Stop watching a file or directory for changes. More...
 
void fileChanged (QString)
 This event is emitted when a file being watched has changed. More...
 
void directoryChanged (QString)
 This event is emitted when a directory being watched has changed. More...
 

Detailed Description

SystemFileWatcher provides monitoring of files and directories in the local system.

Member Function Documentation

◆ addPath()

bool SystemFileWatcher::addPath ( QString  )

Add a file or directory to watch for changes.

Parameters
path,thefull path of the file or directory to watch
Returns
bool, true if successful, false otherwise

◆ directoryChanged()

void SystemFileWatcher::directoryChanged ( QString  )

This event is emitted when a directory being watched has changed.

Parameters
path,thefull path of the directory

IPC event.

◆ fileChanged()

void SystemFileWatcher::fileChanged ( QString  )

This event is emitted when a file being watched has changed.

Parameters
path,thefull path of the file

IPC event.

◆ removePath()

bool SystemFileWatcher::removePath ( QString  )

Stop watching a file or directory for changes.

Parameters
path,thefull path of the file or directory to stop watching
Returns
bool, true if successful, false otherwise

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