PythonQtWrapper_QCryptographicHash.h
28 lines
| 990 B
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QCRYPTOGRAPHICHASH_H | ||
#define PYTHONQTWRAPPER_QCRYPTOGRAPHICHASH_H | ||||
#include <qcryptographichash.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcryptographichash.h> | ||||
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; } | ||||
florianlink
|
r24 | void addData(QCryptographicHash* theWrappedObject, const QByteArray& data); | ||
void reset(QCryptographicHash* theWrappedObject); | ||||
florianlink
|
r28 | QByteArray static_QCryptographicHash_hash(const QByteArray& data, QCryptographicHash::Algorithm method); | ||
QByteArray result(QCryptographicHash* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QCRYPTOGRAPHICHASH_H | ||||