SilentEye 0.4.1
|
#include <data.h>
Public Types | |
enum | DataFormat { BYTES = 0, UINT32 = 1, UTF8 = 2, LATIN1 = 3, ASCII = 4, FILE = 5, F_UNDEF = 7 } |
Data format. More... | |
Public Member Functions | |
Data (const DataFormat) | |
Data (const QByteArray &, const DataFormat=F_UNDEF) | |
Data (const DataFormat, const QByteArray &, const QString="") | |
~Data () | |
DataFormat | format () const |
QString | name () const |
QByteArray | data () const |
void | setFormat (const DataFormat) |
void | setName (const QString) |
void | setData (const QByteArray &) |
QByteArray | toByteArray () const |
Private Attributes | |
QPointer< Logger > | m_logger |
Logger. | |
DataFormat | m_format |
Current data format. | |
QString | m_name |
Specific name (ex: filename) | |
QByteArray | m_data |
Information data. |
SilentEyeFramework::Data::Data | ( | const DataFormat | format | ) |
Definition at line 62 of file data.cpp.
References m_logger, and SEFormatBMP::setObjectName().
SilentEyeFramework::Data::Data | ( | const QByteArray & | bytes, |
const DataFormat | format = F_UNDEF |
||
) |
SilentEyeFramework::Data::Data | ( | const DataFormat | format, |
const QByteArray & | data, | ||
const QString | name = "" |
||
) |
Definition at line 69 of file data.cpp.
References m_logger, and SEFormatBMP::setObjectName().
QByteArray SilentEyeFramework::Data::data | ( | ) | const |
Data::DataFormat SilentEyeFramework::Data::format | ( | ) | const |
Definition at line 81 of file data.cpp.
References m_format.
Referenced by SilentEyeFramework::EncodedData::checkPartialData(), and Data().
QString SilentEyeFramework::Data::name | ( | ) | const |
void SilentEyeFramework::Data::setData | ( | const QByteArray & | ) |
void SilentEyeFramework::Data::setFormat | ( | const DataFormat | ) |
void SilentEyeFramework::Data::setName | ( | const QString | ) |
QByteArray SilentEyeFramework::Data::toByteArray | ( | ) | const |
QByteArray SilentEyeFramework::Data::m_data [private] |
Information data.
Definition at line 50 of file data.h.
Referenced by data(), Data(), and toByteArray().
DataFormat SilentEyeFramework::Data::m_format [private] |
Current data format.
Definition at line 46 of file data.h.
Referenced by Data(), format(), and toByteArray().
QPointer<Logger> SilentEyeFramework::Data::m_logger [private] |
QString SilentEyeFramework::Data::m_name [private] |
Specific name (ex: filename)
Definition at line 48 of file data.h.
Referenced by Data(), name(), and toByteArray().