case MessageModel::MsgIdRole: return QVariant::fromValue<MsgId>(msgId());
case MessageModel::BufferIdRole: return QVariant::fromValue<BufferId>(bufferId());
case MessageModel::TypeRole: return msgType();
case MessageModel::MsgIdRole: return QVariant::fromValue<MsgId>(msgId());
case MessageModel::BufferIdRole: return QVariant::fromValue<BufferId>(bufferId());
case MessageModel::TypeRole: return msgType();