GammaRay API Documentation  2.8.0
Classes | Typedefs | Enumerations | Functions | Variables
GammaRay::Protocol Namespace Reference

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

Classes

struct  ItemSelectionRange
 Protocol representation of an QItemSelectionRange. More...
 
class  ModelIndexData
 

Typedefs

typedef QVector< ItemSelectionRangeItemSelection
 
typedef quint8 MessageType
 
typedef QVector< ModelIndexDataModelIndex
 
typedef quint16 ObjectAddress
 
typedef qint32 PayloadSize
 

Enumerations

enum  BuildInMessageType {
  ObjectMonitored = InvalidMessageType + 1, ObjectUnmonitored, ServerVersion, ServerDataVersionNegotiated,
  ObjectMapReply, ObjectAdded, ObjectRemoved, ClientDataVersionNegotiated,
  ModelRowColumnCountRequest, ModelContentRequest, ModelHeaderRequest, ModelSetDataRequest,
  ModelSortRequest, ModelSyncBarrier, SelectionModelStateRequest, ModelRowColumnCountReply,
  ModelContentReply, ModelContentChanged, ModelHeaderReply, ModelHeaderChanged,
  ModelRowsAdded, ModelRowsMoved, ModelRowsRemoved, ModelColumnsAdded,
  ModelColumnsMoved, ModelColumnsRemoved, ModelReset, ModelLayoutChanged,
  SelectionModelSelect, SelectionModelCurrent, MethodCall, PropertySyncRequest,
  PropertyValuesChanged, ServerInfo, ProbeSettings, ServerAddress,
  ServerLaunchError, MESSAGE_TYPE_COUNT
}
 

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 = std::numeric_limits<ObjectAddress>::max()
 

Detailed Description

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

Function Documentation

◆ broadcastFormatVersion()

qint32 GammaRay::Protocol::broadcastFormatVersion ( )

Broadcast format version.

◆ fromQModelIndex()

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

Serializes a QModelIndex.

◆ toQModelIndex()

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

Deserializes a QModelIndex.

◆ version()

qint32 GammaRay::Protocol::version ( )

Protocol version, must match exactly between client and server.


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