Provides functionality to check the file or directory existance and permissions.  
 More...
#include <SUIT_FileValidator.h>
- See Also
 - SUIT_FileDlg class 
 
 
      
        
          | SUIT_FileValidator::SUIT_FileValidator  | 
          ( | 
          QWidget *  | 
          parent = 0 | ) | 
           | 
        
      
 
- Parameters
 - 
  
    | parent | parent widget (used as parent when displaying information message boxes)  | 
  
   
 
 
  
  
      
        
          | virtual SUIT_FileValidator::~SUIT_FileValidator  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
  
  
      
        
          | bool SUIT_FileValidator::canOpen  | 
          ( | 
          const QString &  | 
          fileName,  | 
         
        
           | 
           | 
          bool  | 
          checkPermission = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
If file does not exists or can not be read (if checkPermission is true) and parent() is not null, shows error message box.
- Parameters
 - 
  
    | fileName | file path  | 
    | checkPermission | if true (default) check also file permissions  | 
  
   
- Returns
 false if file does not exist or if it does not have read permissions (if checkPermission is true) 
References SUIT_MessageBox::critical(), and parent().
 
 
  
  
      
        
          | bool SUIT_FileValidator::canReadDir  | 
          ( | 
          const QString &  | 
          dirName,  | 
         
        
           | 
           | 
          bool  | 
          checkPermission = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
If directory does not exists or can not be read (if checkPermission is true) and parent() is not null, shows error message box.
- Parameters
 - 
  
    | dirName | directory path  | 
    | checkPermission | if true (default) check also directory permissions  | 
  
   
- Returns
 false if directory does not exist or if it does not have read permissions (if checkPermission is true) 
References SUIT_MessageBox::critical(), and parent().
 
 
  
  
      
        
          | bool SUIT_FileValidator::canSave  | 
          ( | 
          const QString &  | 
          fileName,  | 
         
        
           | 
           | 
          bool  | 
          checkPermission = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | bool SUIT_FileValidator::canWriteDir  | 
          ( | 
          const QString &  | 
          dirName,  | 
         
        
           | 
           | 
          bool  | 
          checkPermission = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
virtual   | 
  
 
If directory does not exists or can not be modified (if checkPermission is true) and parent() is not null, shows error message box.
- Parameters
 - 
  
    | dirName | directory path  | 
    | checkPermission | if true (default) check also directory permissions  | 
  
   
- Returns
 false if directory does not exist or if it does not have write permissions (if checkPermission is true) 
References SUIT_MessageBox::critical(), and parent().
 
 
      
        
          | QWidget * SUIT_FileValidator::parent  | 
          ( | 
           | ) | 
           const | 
        
      
 
- Returns
 - parent widget 
 
References myParent.
 
 
  
  
      
        
          | QWidget* SUIT_FileValidator::myParent | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: