Qt 4.8
Public Types | Public Functions | Static Public Functions | List of all members
QWSCommand Struct Reference

#include <qwscommand_qws_p.h>

Inheritance diagram for QWSCommand:
QWSProtocolItem QWSAddPropertyCommand QWSChangeAltitudeCommand QWSConvertSelectionCommand QWSCreateCommand QWSDefineCursorCommand QWSEmbedCommand QWSFontCommand QWSGetPropertyCommand QWSGrabKeyboardCommand QWSGrabMouseCommand QWSIdentifyCommand QWSIMMouseCommand QWSIMResponseCommand QWSIMUpdateCommand QWSPlaySoundCommand QWSPositionCursorCommand QWSQCopRegisterChannelCommand QWSQCopSendCommand QWSRegionCommand QWSRegionDestroyCommand QWSRegionMoveCommand QWSRegionNameCommand QWSRemovePropertyCommand QWSRepaintRegionCommand QWSRequestFocusCommand QWSScreenTransformCommand QWSSelectCursorCommand QWSSetOpacityCommand QWSSetPropertyCommand QWSSetSelectionOwnerCommand

Public Types

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
}
 

Public Functions

 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)
 
virtual void setData (const char *data, int len, bool allocateMem=true)
 
void write (QIODevice *s)
 
virtual ~QWSProtocolItem ()
 

Static Public Functions

static QWSCommandfactory (int type)
 

Additional Inherited Members

- Public Variables inherited from QWSProtocolItem
int bytesRead
 
bool deleteRaw
 
char * rawDataPtr
 
int rawLen
 
char * simpleDataPtr
 
int simpleLen
 
int type
 

Detailed Description

Definition at line 90 of file qwscommand_qws_p.h.

Enumerations

◆ Type

Enumerator
Unknown 
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 

Definition at line 94 of file qwscommand_qws_p.h.

94  {
95  Unknown = 0,
96  Create,
97  Shutdown,
98  Region,
99  RegionMove,
101  SetProperty,
102  AddProperty,
104  GetProperty,
107  RequestFocus,
109  SetOpacity,
110  DefineCursor,
111  SelectCursor,
113  GrabMouse,
114  PlaySound,
116  QCopSend,
117  RegionName,
118  Identify,
119  GrabKeyboard,
121  IMMouse,
122  IMUpdate,
123  IMResponse,
124  Embed,
125  Font,
127  };

Constructors and Destructors

◆ QWSCommand()

QWSCommand::QWSCommand ( int  t,
int  len,
char *  ptr 
)
inline

Definition at line 92 of file qwscommand_qws_p.h.

92 : QWSProtocolItem(t,len,ptr) {}
const T * ptr(const T &t)
QWSProtocolItem(int t, int len, char *ptr)

Functions

◆ factory()

QWSCommand * QWSCommand::factory ( int  type)
static

Definition at line 499 of file qwscommand_qws.cpp.

Referenced by RequestAnalyzer::analyze(), qt_server_enqueue(), and QWSClient::readMoreCommand().

500 {
501  QWSCommand *command = 0;
502  switch (type) {
503  case QWSCommand::Create:
504  command = new QWSCreateCommand;
505  break;
507  command = new QWSCommand(type, 0, 0);
508  break;
509  case QWSCommand::Region:
510  command = new QWSRegionCommand;
511  break;
513  command = new QWSRegionMoveCommand;
514  break;
516  command = new QWSRegionDestroyCommand;
517  break;
519  command = new QWSAddPropertyCommand;
520  break;
522  command = new QWSSetPropertyCommand;
523  break;
525  command = new QWSRemovePropertyCommand;
526  break;
528  command = new QWSGetPropertyCommand;
529  break;
531  command = new QWSSetSelectionOwnerCommand;
532  break;
534  command = new QWSRequestFocusCommand;
535  break;
537  command = new QWSChangeAltitudeCommand;
538  break;
540  command = new QWSSetOpacityCommand;
541  break;
543  command = new QWSDefineCursorCommand;
544  break;
546  command = new QWSSelectCursorCommand;
547  break;
549  command = new QWSGrabMouseCommand;
550  break;
552  command = new QWSGrabKeyboardCommand;
553  break;
554 #ifndef QT_NO_SOUND
556  command = new QWSPlaySoundCommand;
557  break;
558 #endif
559 #ifndef QT_NO_COP
561  command = new QWSQCopRegisterChannelCommand;
562  break;
564  command = new QWSQCopSendCommand;
565  break;
566 #endif
568  command = new QWSRegionNameCommand;
569  break;
571  command = new QWSIdentifyCommand;
572  break;
574  command = new QWSRepaintRegionCommand;
575  break;
576 #ifndef QT_NO_QWS_INPUTMETHODS
578  command = new QWSIMUpdateCommand;
579  break;
580 
581  case QWSCommand::IMMouse:
582  command = new QWSIMMouseCommand;
583  break;
584 
586  command = new QWSIMResponseCommand;
587  break;
588 #endif
590  command = new QWSPositionCursorCommand;
591  break;
592 #ifndef QT_NO_QWSEMBEDWIDGET
593  case QWSCommand::Embed:
594  command = new QWSEmbedCommand;
595  break;
596 #endif
597  case QWSCommand::Font:
598  command = new QWSFontCommand;
599  break;
601  command = new QWSScreenTransformCommand;
602  break;
603  default:
604  qWarning("QWSCommand::factory : Type error - got %08x!", type);
605  }
606  return command;
607 }
Q_CORE_EXPORT void qWarning(const char *,...)
QWSCommand(int t, int len, char *ptr)

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