
Public Member Functions | |
| DumpStudyFileValidator (QWidget *parent) | |
| virtual | ~DumpStudyFileValidator () |
| virtual bool | canSave (const QString &file, bool permissions) |
| virtual bool | canOpen (const QString &, bool=true) |
| Check if the specified file exists and (optionally) can be read. | |
| virtual bool | canReadDir (const QString &, bool=true) |
| Check if the specified directory exists and (optionally) can be read. | |
| virtual bool | canWriteDir (const QString &, bool=true) |
| Check if the specified directory can be written. | |
| QWidget * | parent () const |
| Get parent widget. | |
| DumpStudyFileValidator.DumpStudyFileValidator | ( | QWidget * | parent | ) |
| virtual DumpStudyFileValidator.~DumpStudyFileValidator | ( | ) | [virtual] |
| bool DumpStudyFileValidator::canSave | ( | const QString & | file, |
| bool | permissions | ||
| ) | [virtual] |
Reimplemented from SUIT_FileValidator.
References SUIT_MessageBox.critical(), and SUIT_FileValidator.parent().
| bool SUIT_FileValidator::canOpen | ( | const QString & | fileName, |
| bool | checkPermission = true |
||
| ) | [virtual, inherited] |
If file does not exists or can not be read (if checkPermission is true) and parent() is not null, shows error message box.
| fileName | file path |
| checkPermission | if true (default) check also file permissions |
false if file does not exist or if it does not have read permissions (if checkPermission is true) References SUIT_MessageBox.critical(), and SUIT_FileValidator.parent().
| bool SUIT_FileValidator::canReadDir | ( | const QString & | dirName, |
| bool | checkPermission = true |
||
| ) | [virtual, inherited] |
If directory does not exists or can not be read (if checkPermission is true) and parent() is not null, shows error message box.
| dirName | directory path |
| checkPermission | if true (default) check also directory permissions |
false if directory does not exist or if it does not have read permissions (if checkPermission is true) References SUIT_MessageBox.critical(), and SUIT_FileValidator.parent().
| bool SUIT_FileValidator::canWriteDir | ( | const QString & | dirName, |
| bool | checkPermission = true |
||
| ) | [virtual, inherited] |
If directory does not exists or can not be modified (if checkPermission is true) and parent() is not null, shows error message box.
| dirName | directory path |
| checkPermission | if true (default) check also directory permissions |
false if directory does not exist or if it does not have write permissions (if checkPermission is true) References SUIT_MessageBox.critical(), and SUIT_FileValidator.parent().
| QWidget * SUIT_FileValidator::parent | ( | ) | const [inherited] |
References SUIT_FileValidator.myParent.