2020-05-11 21:44:53 +03:00
|
|
|
#ifndef CONVERTCHECKER_H
|
|
|
|
#define CONVERTCHECKER_H
|
|
|
|
#include <QObject>
|
|
|
|
#include <QMutex>
|
|
|
|
|
|
|
|
class ConvertChecker : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static ConvertChecker* instance();
|
|
|
|
Q_PROPERTY(bool pdf MEMBER _pdf)
|
2021-03-06 00:22:43 +03:00
|
|
|
Q_PROPERTY(bool calligra MEMBER _calligra)
|
2020-05-11 21:44:53 +03:00
|
|
|
|
2020-08-01 21:18:47 +03:00
|
|
|
Q_INVOKABLE quint32 pdfPages(QString pdf);
|
|
|
|
|
2020-05-11 21:44:53 +03:00
|
|
|
signals:
|
|
|
|
protected:
|
|
|
|
private:
|
|
|
|
static ConvertChecker* m_Instance;
|
|
|
|
|
|
|
|
ConvertChecker();
|
|
|
|
~ConvertChecker();
|
|
|
|
ConvertChecker(const ConvertChecker &);
|
|
|
|
ConvertChecker& operator=(const ConvertChecker &);
|
|
|
|
|
|
|
|
bool _pdf;
|
2021-03-06 00:22:43 +03:00
|
|
|
bool _calligra;
|
2020-05-11 21:44:53 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONVERTCHECKER_H
|