ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
src
utils
QLockedFile.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2009 - 2021 Arzel Jérôme <myst6re@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
4
#pragma once
5
6
#include <QtCore>
7
#ifdef Q_OS_WIN
8
#include <windows.h>
9
#include <winbase.h>
10
#else
11
#include <sys/stat.h>
12
#include <sys/types.h>
13
#include <sys/file.h>
14
#include <fcntl.h>
15
#include <unistd.h>
16
#endif
17
#include <ff7tkutils_export.h>
18
19
class
FF7TKUTILS_EXPORT
QLockedFile
:
public
QFile
20
{
21
Q_OBJECT
22
public
:
23
QLockedFile
();
24
explicit
QLockedFile
(
const
QString &name);
25
explicit
QLockedFile
(QObject *parent);
26
QLockedFile
(
const
QString &name, QObject *parent);
27
~
QLockedFile
();
28
void
close();
29
bool
open(OpenMode mode);
30
signals:
31
32
public
slots:
33
private
:
34
#ifdef Q_OS_WIN
35
HANDLE handle;
36
#endif
37
};
QLockedFile
Definition:
QLockedFile.h:19
Generated by
1.8.17