ACF
$AcfVersion:0$
Acf
Include
ifile
IFilePersistenceInfo.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/IPolymorphic.h
>
10
11
12
namespace
ifile
13
{
14
15
21
class
IFilePersistenceInfo
:
virtual
public
istd::IPolymorphic
22
{
23
public
:
24
enum
OperationType
25
{
26
OT_UNKNOWN
,
27
OT_LOAD
,
28
OT_SAVE
29
};
30
31
enum
PathType
32
{
33
PT_COMPLETE
,
34
OT_FILENAME
,
35
OT_DIR
36
};
37
41
virtual
QString
GetLastFilePath
(
OperationType
operationType =
OT_UNKNOWN
,
PathType
pathType =
PT_COMPLETE
)
const
= 0;
42
};
43
44
45
}
// namespace ifile
46
47
IPolymorphic.h
ifile::IFilePersistenceInfo
Provide some information about file loader state.
Definition
IFilePersistenceInfo.h:22
ifile::IFilePersistenceInfo::GetLastFilePath
virtual QString GetLastFilePath(OperationType operationType=OT_UNKNOWN, PathType pathType=PT_COMPLETE) const =0
Returns the last opened file name.
ifile::IFilePersistenceInfo::OperationType
OperationType
Definition
IFilePersistenceInfo.h:25
ifile::IFilePersistenceInfo::OT_SAVE
@ OT_SAVE
Definition
IFilePersistenceInfo.h:28
ifile::IFilePersistenceInfo::OT_LOAD
@ OT_LOAD
Definition
IFilePersistenceInfo.h:27
ifile::IFilePersistenceInfo::OT_UNKNOWN
@ OT_UNKNOWN
Definition
IFilePersistenceInfo.h:26
ifile::IFilePersistenceInfo::PathType
PathType
Definition
IFilePersistenceInfo.h:32
ifile::IFilePersistenceInfo::OT_FILENAME
@ OT_FILENAME
Definition
IFilePersistenceInfo.h:34
ifile::IFilePersistenceInfo::OT_DIR
@ OT_DIR
Definition
IFilePersistenceInfo.h:35
ifile::IFilePersistenceInfo::PT_COMPLETE
@ PT_COMPLETE
Definition
IFilePersistenceInfo.h:33
istd::IPolymorphic
Base interface for all used interfaces and implementations.
Definition
IPolymorphic.h:18
ifile
Contains interfaces and implementations of file system related components.
Definition
CApplicationInfoBasedFileNameComp.h:11
Generated by
1.9.8