Files
amnezia-client/client/platforms/ios/QRCodeReaderBase.h
T

32 lines
599 B
C++
Raw Normal View History

2022-07-27 03:22:46 +03:00
#ifndef QRCODEREADERBASE_H
#define QRCODEREADERBASE_H
2022-07-06 11:04:46 +06:00
#include <QObject>
#include <QRect>
class QRCodeReader: public QObject {
Q_OBJECT
public:
QRCodeReader();
QRect cameraSize();
public slots:
void startReading();
void stopReading();
void setCameraSize(QRect value);
2026-05-08 21:35:08 +03:00
void setTorchEnabled(bool on);
2026-05-07 22:50:14 +03:00
/// Called from AVFoundation delegate on the main queue; emits codeReaded.
void notifyCodeRead(const QString &code);
2022-07-06 11:04:46 +06:00
signals:
void codeReaded(QString code);
private:
void* m_qrCodeReader;
QRect m_cameraSize;
};
2022-07-27 03:22:46 +03:00
#endif // QRCODEREADERBASE_H