PythonQtWrapper_QCryptographicHash.cpp
33 lines
| 1009 B
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QCryptographicHash.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qcryptographichash.h> | ||||
QCryptographicHash* PythonQtWrapper_QCryptographicHash::new_QCryptographicHash(QCryptographicHash::Algorithm method) | ||||
{ | ||||
return new QCryptographicHash(method); } | ||||
florianlink
|
r28 | void PythonQtWrapper_QCryptographicHash::addData(QCryptographicHash* theWrappedObject, const QByteArray& data) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->addData(data)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QCryptographicHash::reset(QCryptographicHash* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->reset()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QByteArray PythonQtWrapper_QCryptographicHash::static_QCryptographicHash_hash(const QByteArray& data, QCryptographicHash::Algorithm method) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return (QCryptographicHash::hash(data, method)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QByteArray PythonQtWrapper_QCryptographicHash::result(QCryptographicHash* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->result()); | ||
florianlink
|
r13 | } | ||