GammaRay  2.2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Typedefs | Enumerations | Functions | Variables
GammaRay::Protocol Namespace Reference

Helper functions and constants defining the communication protocol between client and server. More...

Typedefs

typedef quint8 MessageType
 
typedef QVector< QPair< qint32,
qint32 > > 
ModelIndex
 
typedef quint8 ObjectAddress
 
typedef qint32 PayloadSize
 

Enumerations

enum  BuildInMessageType {
  ObjectMonitored = InvalidMessageType + 1, ObjectUnmonitored, ServerVersion, ObjectMapReply,
  ObjectAdded, ObjectRemoved, ModelRowColumnCountRequest, ModelContentRequest,
  ModelHeaderRequest, ModelSetDataRequest, ModelSyncBarrier, ModelRowColumnCountReply,
  ModelContentReply, ModelContentChanged, ModelHeaderReply, ModelHeaderChanged,
  ModelRowsAdded, ModelRowsMoved, ModelRowsRemoved, ModelColumnsAdded,
  ModelColumnsMoved, ModelColumnsRemoved, ModelReset, ModelLayoutChanged,
  SelectionModelSelect, SelectionModelCurrent, MethodCall, ServerInfo,
  ProbeSettings, ServerPort
}
 

Functions

qint32 broadcastFormatVersion ()
 
ModelIndex fromQModelIndex (const QModelIndex &index)
 
QModelIndex toQModelIndex (const QAbstractItemModel *model, const ModelIndex &index)
 
qint32 version ()
 

Variables

static const MessageType InvalidMessageType = 0
 
static const ObjectAddress InvalidObjectAddress = 0
 
static const ObjectAddress LauncherAddress = 255
 

Detailed Description

Helper functions and constants defining the communication protocol between client and server.

Function Documentation

qint32 GammaRay::Protocol::broadcastFormatVersion ( )

Broadcast format version.

ModelIndex GammaRay::Protocol::fromQModelIndex ( const QModelIndex &  index)

Serializes a QModelIndex.

QModelIndex GammaRay::Protocol::toQModelIndex ( const QAbstractItemModel *  model,
const ModelIndex &  index 
)

Deserializes a QModelIndex.

qint32 GammaRay::Protocol::version ( )

Protocol version, must match exactly between client and server.


Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
http://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
http://www.kdab.com/kdab-products/gammaray/