42 lines
1.6 KiB
C++
Executable File
42 lines
1.6 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Header file which holds all occuring JSON keys
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Philipp Dassow, SLST, 2017-12-05
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QtCore/QString>
|
|
|
|
namespace ServiceManagement
|
|
{
|
|
namespace WebSocketInterface
|
|
{
|
|
/**
|
|
* @brief Namespace which holds all occuring JSON keys as const QString objects
|
|
*/
|
|
namespace JsonKeys
|
|
{
|
|
// types for client --> server messages
|
|
inline QString SERVICE_PORTS_INFORMATION_REQUEST() { return QStringLiteral("servicePortsInformationRequest"); }
|
|
|
|
// types for server --> client messages
|
|
inline QString SERVICE_PORTS_INFORMATION() { return QStringLiteral("servicePortsInformation"); }
|
|
|
|
// data keys
|
|
inline QString EXERCISE_ID() { return QStringLiteral("exerciseId"); }
|
|
inline QString NAME() { return QStringLiteral("name"); }
|
|
inline QString NAME_ABBR() { return QStringLiteral("nameAbbrevation"); }
|
|
inline QString NUMBER() { return QStringLiteral("number"); }
|
|
inline QString PORTS() { return QStringLiteral("ports"); }
|
|
inline QString REPLAY_PARTITION_ID() { return QStringLiteral("replayPartitionId"); }
|
|
inline QString SERVICES() { return QStringLiteral("services"); }
|
|
inline QString TYPE_ID() { return QStringLiteral("typeId"); }
|
|
inline QString PROPERTIES() { return QStringLiteral("properties"); }
|
|
|
|
} // namespace JsonKeys
|
|
} // namespace WebSocketInterface
|
|
} // namespace ServiceManagement
|