24 #ifndef GAMMARAY_PROTOCOL_H
25 #define GAMMARAY_PROTOCOL_H
27 #include "gammaray_common_export.h"
28 #include <QAbstractItemModel>
30 #include <QModelIndex>
38 typedef qint32 PayloadSize;
39 typedef quint8 ObjectAddress;
40 typedef quint8 MessageType;
42 static const ObjectAddress InvalidObjectAddress = 0;
43 static const ObjectAddress LauncherAddress = 255;
44 static const MessageType InvalidMessageType = 0;
46 enum BuildInMessageType {
49 ObjectMonitored = InvalidMessageType + 1,
61 ModelRowColumnCountRequest,
68 ModelRowColumnCountReply,
84 SelectionModelCurrent,
95 typedef QVector<QPair<qint32, qint32> > ModelIndex;
98 GAMMARAY_COMMON_EXPORT ModelIndex
fromQModelIndex(
const QModelIndex &index);
101 GAMMARAY_COMMON_EXPORT QModelIndex
toQModelIndex(
const QAbstractItemModel *model,
const ModelIndex &index);
104 GAMMARAY_COMMON_EXPORT qint32
version();