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

#include <qwscommand_qws_p.h>

Inheritance diagram for QWSIMResponseCommand:
QWSCommand QWSProtocolItem

Classes

struct  SimpleData
 

Public Functions

 QWSIMResponseCommand ()
 
void setData (const char *d, int len, bool allocateMem)
 
void setResult (const QVariant &v)
 
- Public Functions inherited from QWSCommand
 QWSCommand (int t, int len, char *ptr)
 
- 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

QVariant result
 
struct QWSIMResponseCommand::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 QWSCommand
enum  Type {
  Unknown = 0, Create, Shutdown, Region,
  RegionMove, RegionDestroy, SetProperty, AddProperty,
  RemoveProperty, GetProperty, SetSelectionOwner, ConvertSelection,
  RequestFocus, ChangeAltitude, SetOpacity, DefineCursor,
  SelectCursor, PositionCursor, GrabMouse, PlaySound,
  QCopRegisterChannel, QCopSend, RegionName, Identify,
  GrabKeyboard, RepaintRegion, IMMouse, IMUpdate,
  IMResponse, Embed, Font, ScreenTransform
}
 
- Static Public Functions inherited from QWSCommand
static QWSCommandfactory (int type)
 

Detailed Description

Definition at line 707 of file qwscommand_qws_p.h.

Constructors and Destructors

◆ QWSIMResponseCommand()

QWSIMResponseCommand::QWSIMResponseCommand ( )
inline

Definition at line 709 of file qwscommand_qws_p.h.

709  :
711  sizeof(simpleData), reinterpret_cast<char *>(&simpleData)) {}
struct QWSIMResponseCommand::SimpleData simpleData
QWSCommand(int t, int len, char *ptr)

Functions

◆ setData()

void QWSIMResponseCommand::setData ( const char *  d,
int  len,
bool  allocateMem 
)
inlinevirtual

Reimplemented from QWSProtocolItem.

Definition at line 713 of file qwscommand_qws_p.h.

713  {
714  QWSCommand::setData(d, len, allocateMem);
715 
717  QDataStream s(tmp);
718  s >> result;
719  }
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
static QByteArray fromRawData(const char *, int size)
Constructs a QByteArray that uses the first size bytes of the data array.
The QDataStream class provides serialization of binary data to a QIODevice.
Definition: qdatastream.h:71

◆ setResult()

void QWSIMResponseCommand::setResult ( const QVariant v)
inline

Definition at line 721 of file qwscommand_qws_p.h.

Referenced by QWSDisplay::sendIMResponse().

722  {
723  QByteArray tmp;
725  s << v;
726  setData(tmp.data(), tmp.size(), true);
727  }
char * data()
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:429
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
void setData(const char *d, int len, bool allocateMem)
int size() const
Returns the number of bytes in this byte array.
Definition: qbytearray.h:402
The QDataStream class provides serialization of binary data to a QIODevice.
Definition: qdatastream.h:71

Properties

◆ result

QVariant QWSIMResponseCommand::result

Definition at line 734 of file qwscommand_qws_p.h.

Referenced by QWSServerPrivate::invokeIMResponse().

◆ simpleData

struct QWSIMResponseCommand::SimpleData QWSIMResponseCommand::simpleData

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