Workspace 6.21.5
Public Member Functions | Public Attributes | List of all members
FileFilter Class Reference

An object group containing file filter options.

#include <Workspace/DataExecution/DataObjects/filefilter.h>

Inheritance diagram for FileFilter:
[legend]

Public Member Functions

 FileFilter ()
 
 FileFilter (const FileFilter &obj)
 
FileFilterclone () const override
 
QDir::Filters getAsQDirFilterFlags () const
 
bool operator== (const FileFilter &rhs) const
 
- Public Member Functions inherited from ObjectGroup
 ~ObjectGroup () override
 
bool add (const QString &name, DataObject &obj)
 
bool canSerialize () const override
 
ObjectGroupclone () const override=0
 
bool empty () const
 
void ensureGroupHasData ()
 
void erase (int index)
 
DataObjectgetChild (const QString &name)
 
const DataObjectgetChild (const QString &name) const
 
DataObjectgetDataObject (int index)
 
const DataObjectgetDataObject (int index) const
 
int getIndex (const QString &name) const
 
const QString & getName (int index) const
 
virtual QString getPreferedWidget (const QString &name) const
 
bool hasData () const
 
bool haveName (const QString &name) const
 
bool insert (const QString &name, DataObject &obj, int index=-1)
 
bool load (const QJsonDocument &doc)
 
bool load (const SerializedItem &item) override
 
bool save (QJsonDocument &doc) const
 
bool save (SerializedItem &item) const override
 
unsigned size () const
 
- Public Member Functions inherited from Clonable
virtual ~Clonable ()=default
 
virtual Clonableclone () const =0
 
- Public Member Functions inherited from Serialize
virtual ~Serialize ()=default
 
virtual bool canSerialize () const =0
 
virtual bool load (const SerializedItem &item)=0
 
virtual bool save (SerializedItem &item) const =0
 

Public Attributes

TypedObject< bool > allDirs
 
TypedObject< bool > caseSensitive
 
TypedObject< bool > dirs
 
TypedObject< bool > drives
 
TypedObject< bool > executable
 
TypedObject< bool > files
 
TypedObject< bool > hidden
 
TypedObject< bool > modified
 
TypedObject< bool > noDot
 
TypedObject< bool > noDotDot
 
TypedObject< bool > noSymLinks
 
TypedObject< bool > readable
 
TypedObject< bool > system
 
TypedObject< bool > writable
 

Additional Inherited Members

- Protected Member Functions inherited from ObjectGroup
 ObjectGroup ()
 
void clear ()
 
ObjectGroupoperator= (const ObjectGroup &rhs)
 
bool operator== (const ObjectGroup &rhs) const
 
void swap (ObjectGroup &rhs)
 

Constructor & Destructor Documentation

◆ FileFilter() [1/2]

◆ FileFilter() [2/2]

FileFilter ( const FileFilter obj)

Member Function Documentation

◆ clone()

FileFilter * clone ( ) const
overridevirtual
Returns
A clone of this object.
Note
Subclasses would normally return their own type rather than the Clonable type. The C++ language rules allow a more derived type to be returned from a virtual function and the compiler will still treat it as a valid override.

We redeclare this function only so that the more derived return type is available without casting.

Implements ObjectGroup.

◆ getAsQDirFilterFlags()

QDir::Filters getAsQDirFilterFlags ( ) const

Returns a QDir::Filter enum for use with QDir filter operations.

◆ operator==()

bool operator== ( const FileFilter rhs) const

Member Data Documentation

◆ allDirs

TypedObject<bool> allDirs

◆ caseSensitive

TypedObject<bool> caseSensitive

◆ dirs

TypedObject<bool> dirs

◆ drives

TypedObject<bool> drives

◆ executable

TypedObject<bool> executable

◆ files

TypedObject<bool> files

◆ hidden

TypedObject<bool> hidden

◆ modified

TypedObject<bool> modified

◆ noDot

TypedObject<bool> noDot

◆ noDotDot

TypedObject<bool> noDotDot

◆ noSymLinks

TypedObject<bool> noSymLinks

◆ readable

TypedObject<bool> readable

◆ system

TypedObject<bool> system

◆ writable

TypedObject<bool> writable