ACF $AcfVersion:0$
IFileTypeInfo.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QString>
7
8// ACF includes
9#include <istd/IChangeable.h>
10
11
12namespace ifile
13{
14
15
21class IFileTypeInfo: virtual public istd::IPolymorphic
22{
23public:
28 {
32 QF_LOAD = 1 << 0,
36 QF_SAVE = 1 << 1,
40 QF_FILE = 1 << 2,
41
45 QF_DIRECTORY = 1 << 3,
46
50 QF_ANONYMOUS = 1 << 4
51 };
52
61 virtual bool GetFileExtensions(QStringList& result, const istd::IChangeable* dataObjectPtr = NULL, int flags = -1, bool doAppend = false) const = 0;
62
66 virtual QString GetTypeDescription(const QString* extensionPtr = NULL) const = 0;
67};
68
69
70} // namespace ifile
71
72
Provide loading and saving of objects.
QueryFlags
Describe detailed options of query.
@ QF_ANONYMOUS
Operations without specified path (anonymous) should be considered.
@ QF_DIRECTORY
Operations with specified directory name should be considered.
@ QF_FILE
Operations with specified file name should be considered.
@ QF_LOAD
Check for load operation.
@ QF_SAVE
Check for save operation.
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.
virtual QString GetTypeDescription(const QString *extensionPtr=NULL) const =0
Get description of object type associated with single extension.
Common interface for data model objects, which can be changed.
Definition IChangeable.h:28
Base interface for all used interfaces and implementations.
#define NULL
Definition istd.h:74
Contains interfaces and implementations of file system related components.