Definition at line 324 of file qwsevent_qws.h.
#include <qwsevent_qws.h>

Classes |
|
| struct | SimpleData |
Public Member Functions |
|
| QWSQCopMessageEvent () | |
| void | setData (const char *d, int len, bool allocateMem=true) |
| void | setDataDirect (const char *d, int len) |
Public Attributes |
|
| struct QWSQCopMessageEvent::SimpleData |
simpleData |
| QByteArray | channel |
| QByteArray | message |
| QByteArray | data |
| QWSQCopMessageEvent | ( | ) | [inline] |
Definition at line 325 of file qwsevent_qws.h.
: QWSEvent(QWSEvent::QCopMessage, sizeof(simpleData),
reinterpret_cast<char*>(&simpleData))
{ memset(reinterpret_cast<char*>(&simpleData),0,sizeof(simpleData)); }
| void setData | ( | const char * | d, |
| int | len, | ||
| bool | allocateMem =
true |
||
| ) | [inline, virtual] |
Reimplemented from QWSProtocolItem.
Definition at line 330 of file qwsevent_qws.h.
{
QWSEvent::setData(d, len, allocateMem);
char* p = rawDataPtr;
channel = QByteArray(p, simpleData.lchannel);
p += simpleData.lchannel;
message = QByteArray(p, simpleData.lmessage);
p += simpleData.lmessage;
data = QByteArray(p, simpleData.ldata);
}
| void setDataDirect | ( | const char * | d, |
| int | len | ||
| ) | [inline] |
Definition at line 340 of file qwsevent_qws.h.
{
QWSEvent::setData(d, len, false);
deleteRaw = true;
}
Definition at line 352 of file qwsevent_qws.h.
Definition at line 353 of file qwsevent_qws.h.
Definition at line 354 of file qwsevent_qws.h.