/** * @RDE_HEADER@ * Header file which holds basic JSON keys * $Id$ * $HeadURL$ * $Author$ * Created by Philipp Dassow, SLSt, 2017-11-28 */ #pragma once #include namespace LtsWebSocket { /** * @brief Namespace which holds all occuring JSON keys as const QString objects */ namespace JsonKeys { // root keys inline QString DATA() { return QStringLiteral("data"); } inline QString UUID_() { return QStringLiteral("uuid"); } // Windows: typedef GUID UUUID; ... inline QString TYPE() { return QStringLiteral("type"); } inline QString TYPEID() { return QStringLiteral("typeId"); } // types for server --> client messages inline QString ERROR_() { return QStringLiteral("error"); } // data keys inline QString ERROR_MESSAGE() { return QStringLiteral("errorMessage"); } inline QString ERROR_CLASS() { return QStringLiteral("errorClass"); } } // namespace JsonKeys } // namespace LtsWebSocket