IFileTypeInfo.h
Go to the documentation of this file.
1 #ifndef ifile_IFileTypeInfo_included
2 #define ifile_IFileTypeInfo_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 // ACF includes
9 #include <istd/IPolymorphic.h>
10 #include <istd/IChangeable.h>
11 
12 
13 namespace ifile
14 {
15 
16 
22 class IFileTypeInfo: virtual public istd::IPolymorphic
23 {
24 public:
29  {
33  QF_LOAD = 1 << 0,
37  QF_SAVE = 1 << 1,
41  QF_FILE = 1 << 2,
42 
46  QF_DIRECTORY = 1 << 3,
47 
51  QF_ANONYMOUS = 1 << 4
52  };
53 
62  virtual bool GetFileExtensions(QStringList& result, const istd::IChangeable* dataObjectPtr = NULL, int flags = -1, bool doAppend = false) const = 0;
63 
67  virtual QString GetTypeDescription(const QString* extensionPtr = NULL) const = 0;
68 };
69 
70 
71 } // namespace ifile
72 
73 
74 #endif // !ifile_IFileTypeInfo_included
75 
76 
QueryFlags
Describe detailed options of query.
Definition: IFileTypeInfo.h:28
Operations without specified path (anonymous) should be considered.
Definition: IFileTypeInfo.h:51
Provide loading and saving of objects.
Definition: IFileTypeInfo.h:22
virtual bool GetFileExtensions(QStringList &result, const istd::IChangeable *dataObjectPtr=NULL, int flags=-1, bool doAppend=false) const =0
Get file extensions supported by this loader.
Check for load operation.
Definition: IFileTypeInfo.h:33
Operations with specified directory name should be considered.
Definition: IFileTypeInfo.h:46
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const =0
Get description of object type associated with single extension.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Check for save operation.
Definition: IFileTypeInfo.h:37
#define NULL
Definition: istd.h:64
Operations with specified file name should be considered.
Definition: IFileTypeInfo.h:41

© 2007-2017 Witold Gantzke and Kirill Lepskiy