Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+33
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Header file which holds basic JSON keys
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Philipp Dassow, SLSt, 2017-11-28
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QString>
|
||||
|
||||
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
|
||||
Reference in new issue
Block a user