aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cerence/cerencecommon/xt9dbfile.h
blob: a99aefac396354484d9debee68c228cb62c3db2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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