retro-imager/mac/macfile.h
Floris Bos 7e4f5c9045 Mac: open preferences for user if Imager is not allowed access
Normally the system will prompt the user to allow Imager access
to removable volumes.
Open preferences and ask user to allow Imager manually in a
corner case in which this does not occur.
2020-07-21 15:04:38 +02:00

22 lines
446 B
C++

#ifndef MACFILE_H
#define MACFILE_H
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2020 Raspberry Pi (Trading) Limited
*/
#include <QFile>
class MacFile : public QFile
{
Q_OBJECT
public:
enum authOpenResult {authOpenCancelled, authOpenSuccess, authOpenError };
MacFile(QObject *parent = nullptr);
virtual bool isSequential() const;
authOpenResult authOpen(const QByteArray &filename);
};
#endif // MACFILE_H