#ifndef PYTHONQTWRAPPER_QCRYPTOGRAPHICHASH_H #define PYTHONQTWRAPPER_QCRYPTOGRAPHICHASH_H #include #include #include #include #include #include class PythonQtWrapper_QCryptographicHash : public QObject { Q_OBJECT public: Q_ENUMS(Algorithm ) enum Algorithm{ Md4 = QCryptographicHash::Md4, Md5 = QCryptographicHash::Md5, Sha1 = QCryptographicHash::Sha1}; public slots: QCryptographicHash* new_QCryptographicHash(QCryptographicHash::Algorithm method); void delete_QCryptographicHash(QCryptographicHash* obj) { delete obj; } void addData(QCryptographicHash* theWrappedObject, const QByteArray& data); void reset(QCryptographicHash* theWrappedObject); QByteArray static_QCryptographicHash_hash(const QByteArray& data, QCryptographicHash::Algorithm method); QByteArray result(QCryptographicHash* theWrappedObject) const; }; #endif // PYTHONQTWRAPPER_QCRYPTOGRAPHICHASH_H