2020-03-04 16:55:40 +01:00
|
|
|
#ifndef MACFILE_H
|
|
|
|
#define MACFILE_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2022-02-03 11:48:21 +01:00
|
|
|
* Copyright (C) 2020 Raspberry Pi Ltd
|
2020-03-04 16:55:40 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
|
|
|
|
class MacFile : public QFile
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-07-21 15:04:38 +02:00
|
|
|
enum authOpenResult {authOpenCancelled, authOpenSuccess, authOpenError };
|
|
|
|
|
2020-03-04 16:55:40 +01:00
|
|
|
MacFile(QObject *parent = nullptr);
|
|
|
|
virtual bool isSequential() const;
|
2020-07-21 15:04:38 +02:00
|
|
|
authOpenResult authOpen(const QByteArray &filename);
|
2020-03-04 16:55:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MACFILE_H
|