Qt 4.8
Classes | Public Functions | Public Variables | List of all members
QWSQCopMessageEvent Struct Reference

#include <qwsevent_qws.h>

Inheritance diagram for QWSQCopMessageEvent:
QWSEvent QWSProtocolItem

Classes

struct  SimpleData
 

Public Functions

 QWSQCopMessageEvent ()
 
void setData (const char *d, int len, bool allocateMem=true)
 
void setDataDirect (const char *d, int len)
 
- Public Functions inherited from QWSEvent
QWSMouseEventasMouse ()
 
 QWSEvent (int t, int len, char *ptr)
 
int window ()
 
int window () const
 
- Public Functions inherited from QWSProtocolItem
void copyFrom (const QWSProtocolItem *item)
 
 QWSProtocolItem (int t, int len, char *ptr)
 
bool read (QIODevice *s)
 
void write (QIODevice *s)
 
virtual ~QWSProtocolItem ()
 

Public Variables

QByteArray channel
 
QByteArray data
 
QByteArray message
 
struct QWSQCopMessageEvent::SimpleData simpleData
 
- Public Variables inherited from QWSProtocolItem
int bytesRead
 
bool deleteRaw
 
char * rawDataPtr
 
int rawLen
 
char * simpleDataPtr
 
int simpleLen
 
int type
 

Additional Inherited Members

- Public Types inherited from QWSEvent
enum  Type {
  NoEvent, Connected, Mouse, Focus,
  Key, Region, Creation, PropertyNotify,
  PropertyReply, SelectionClear, SelectionRequest, SelectionNotify,
  MaxWindowRect, QCopMessage, WindowOperation, IMEvent,
  IMQuery, IMInit, Embed, Font,
  ScreenTransformation, NEvent
}
 This enum describes the origin of the event. More...
 
- Static Public Functions inherited from QWSEvent
static QWSEventfactory (int type)
 

Detailed Description

Definition at line 324 of file qwsevent_qws.h.

Constructors and Destructors

◆ QWSQCopMessageEvent()

QWSQCopMessageEvent::QWSQCopMessageEvent ( )
inline

Definition at line 325 of file qwsevent_qws.h.

327  reinterpret_cast<char*>(&simpleData))
328  { memset(reinterpret_cast<char*>(&simpleData),0,sizeof(simpleData)); }
struct QWSQCopMessageEvent::SimpleData simpleData
QWSEvent(int t, int len, char *ptr)
Definition: qwsevent_qws.h:61

Functions

◆ setData()

void QWSQCopMessageEvent::setData ( const char *  d,
int  len,
bool  allocateMem = true 
)
inlinevirtual

Reimplemented from QWSProtocolItem.

Definition at line 330 of file qwsevent_qws.h.

330  {
331  QWSEvent::setData(d, len, allocateMem);
332  char* p = rawDataPtr;
334  p += simpleData.lchannel;
336  p += simpleData.lmessage;
338  }
double d
Definition: qnumeric_p.h:62
virtual void setData(const char *data, int len, bool allocateMem=true)
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
struct QWSQCopMessageEvent::SimpleData simpleData

◆ setDataDirect()

void QWSQCopMessageEvent::setDataDirect ( const char *  d,
int  len 
)
inline

Definition at line 340 of file qwsevent_qws.h.

340  {
341  QWSEvent::setData(d, len, false);
342  deleteRaw = true;
343  }
double d
Definition: qnumeric_p.h:62
virtual void setData(const char *data, int len, bool allocateMem=true)

Properties

◆ channel

QByteArray QWSQCopMessageEvent::channel

◆ data

QByteArray QWSQCopMessageEvent::data

Definition at line 354 of file qwsevent_qws.h.

Referenced by QApplication::qwsProcessEvent().

◆ message

QByteArray QWSQCopMessageEvent::message

◆ simpleData

struct QWSQCopMessageEvent::SimpleData QWSQCopMessageEvent::simpleData

The documentation for this struct was generated from the following file: