diff options
Diffstat (limited to 'src/plugins/cerence/cerencecommon/xt9dbfile.h')
-rw-r--r-- | src/plugins/cerence/cerencecommon/xt9dbfile.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/plugins/cerence/cerencecommon/xt9dbfile.h b/src/plugins/cerence/cerencecommon/xt9dbfile.h new file mode 100644 index 00000000..a99aefac --- /dev/null +++ b/src/plugins/cerence/cerencecommon/xt9dbfile.h @@ -0,0 +1,32 @@ +// Copyright (C) 2021 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#ifndef XT9DBFILE_H +#define XT9DBFILE_H + +#include <QFile> + +QT_BEGIN_NAMESPACE +namespace QtVirtualKeyboard { + +class Xt9DbFile +{ +public: + Xt9DbFile(const QString &fileName); + + QString fileName() const; + const void *roData(); + void *rwData(qint64 size); + qint64 size() const; + +private: + QFile file; + void *_data; + qint64 _size; + bool _rw; +}; + +} // namespace QtVirtualKeyboard +QT_END_NAMESPACE + +#endif // XT9DBFILE_H |