OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
Terminal.cpp File Reference

Namespaces

namespace  intern
 

Macros

#define OT_JSON_COLLECTION_Version   "Version"
 
#define OT_JSON_COLLECTION_Data   "Data"
 
#define OT_JSON_COLLECTION_ItemType   "ItemType"
 
#define OT_JSON_COLLECTION_ItemName   "ItemName"
 
#define OT_JSON_COLLECTION_Childs   "Childs"
 
#define OT_JSON_REQUEST_Url   "URL"
 
#define OT_JSON_REQUEST_Message   "Message"
 
#define OT_JSON_REQUEST_Endpoint   "Endpoint"
 
#define INFO_COLLECTION_VERSION   "1.0"
 
#define INFO_ITEM_TYPE_Filter   "Filter"
 
#define INFO_ITEM_TYPE_Request   "Request"
 
#define TERMINAL_TXT_RECEIVER_MANUAL   "<Manual>"
 
#define TERMINAL_TXT_RECEIVER_EDIT   "<Edit>"
 
#define TERMINAL_TXT_ENDPOINT_EXECUTE   "Execute"
 
#define TERMINAL_TXT_ENDPOINT_QUEUE   "Queue"
 
#define TERMINAL_TXT_ENDPOINT_EXECUTE_OW_TLS   "Execute One Way TLS"
 
#define TERMINAL_TXT_RESPONSE_LENGTH_PREFIX   "Response legnth: "
 
#define TERMINAL_LOG(___message)   OTOOLKIT_LOG("Terminal", ___message)
 
#define TERMINAL_LOGW(___message)   OTOOLKIT_LOGW("Terminal", ___message)
 
#define TERMINAL_LOGE(___message)   OTOOLKIT_LOGE("Terminal", ___message)
 
#define TERMINAL_KEYSEQ_Save   "Ctrl+S"
 
#define TERMINAL_KEYSEQ_Send   "Ctrl+Return"
 
#define TERMINAL_KEYSEQ_Rename   "Ctrl+R"
 
#define TERMINAL_KEYSEQ_Delete   "Del"
 
#define TERMINAL_KEYSEQ_Clone   "Ctrl+D"
 
#define TERMINAL_JSON_MEM_CHECK_EXISTS(___jsonObject, ___memberName, ___errorReturnCase)   if (!___jsonObject.contains(___memberName)) { TERMINAL_LOGE(QString("JSON object member \"") + ___memberName + "\" is missing"); ___errorReturnCase; }
 
#define TERMINAL_JSON_MEM_CHECK_TYPE(___jsonObject, ___memberName, ___memberType, ___errorReturnCase)   if (!___jsonObject[___memberName].is##___memberType()) { TERMINAL_LOGE(QString("JSON object member \"") + ___memberName + "\" is not a " + #___memberType); ___errorReturnCase; }
 
#define TERMINAL_JSON_MEM_CHECK(___jsonObject, ___memberName, ___memberType, ___errorReturnCase)   TERMINAL_JSON_MEM_CHECK_EXISTS(___jsonObject, ___memberName, ___errorReturnCase); TERMINAL_JSON_MEM_CHECK_TYPE(___jsonObject, ___memberName, ___memberType, ___errorReturnCase)
 

Functions

const Qt::ItemFlags intern::FilterFlags (Qt::ItemIsEnabled|Qt::ItemIsSelectable|Qt::ItemIsEditable)
 
const Qt::ItemFlags intern::RequestFlags (Qt::ItemIsEnabled|Qt::ItemIsSelectable|Qt::ItemIsEditable)
 

Detailed Description

Author
Alexander Kuester (alexk95)
Date
August 2023

Macro Definition Documentation

◆ INFO_COLLECTION_VERSION

#define INFO_COLLECTION_VERSION   "1.0"

◆ INFO_ITEM_TYPE_Filter

#define INFO_ITEM_TYPE_Filter   "Filter"

◆ INFO_ITEM_TYPE_Request

#define INFO_ITEM_TYPE_Request   "Request"

◆ OT_JSON_COLLECTION_Childs

#define OT_JSON_COLLECTION_Childs   "Childs"

◆ OT_JSON_COLLECTION_Data

#define OT_JSON_COLLECTION_Data   "Data"

◆ OT_JSON_COLLECTION_ItemName

#define OT_JSON_COLLECTION_ItemName   "ItemName"

◆ OT_JSON_COLLECTION_ItemType

#define OT_JSON_COLLECTION_ItemType   "ItemType"

◆ OT_JSON_COLLECTION_Version

#define OT_JSON_COLLECTION_Version   "Version"

◆ OT_JSON_REQUEST_Endpoint

#define OT_JSON_REQUEST_Endpoint   "Endpoint"

◆ OT_JSON_REQUEST_Message

#define OT_JSON_REQUEST_Message   "Message"

◆ OT_JSON_REQUEST_Url

#define OT_JSON_REQUEST_Url   "URL"

◆ TERMINAL_JSON_MEM_CHECK

#define TERMINAL_JSON_MEM_CHECK ( ___jsonObject,
___memberName,
___memberType,
___errorReturnCase )   TERMINAL_JSON_MEM_CHECK_EXISTS(___jsonObject, ___memberName, ___errorReturnCase); TERMINAL_JSON_MEM_CHECK_TYPE(___jsonObject, ___memberName, ___memberType, ___errorReturnCase)

◆ TERMINAL_JSON_MEM_CHECK_EXISTS

#define TERMINAL_JSON_MEM_CHECK_EXISTS ( ___jsonObject,
___memberName,
___errorReturnCase )   if (!___jsonObject.contains(___memberName)) { TERMINAL_LOGE(QString("JSON object member \"") + ___memberName + "\" is missing"); ___errorReturnCase; }

◆ TERMINAL_JSON_MEM_CHECK_TYPE

#define TERMINAL_JSON_MEM_CHECK_TYPE ( ___jsonObject,
___memberName,
___memberType,
___errorReturnCase )   if (!___jsonObject[___memberName].is##___memberType()) { TERMINAL_LOGE(QString("JSON object member \"") + ___memberName + "\" is not a " + #___memberType); ___errorReturnCase; }

◆ TERMINAL_KEYSEQ_Clone

#define TERMINAL_KEYSEQ_Clone   "Ctrl+D"

◆ TERMINAL_KEYSEQ_Delete

#define TERMINAL_KEYSEQ_Delete   "Del"

◆ TERMINAL_KEYSEQ_Rename

#define TERMINAL_KEYSEQ_Rename   "Ctrl+R"

◆ TERMINAL_KEYSEQ_Save

#define TERMINAL_KEYSEQ_Save   "Ctrl+S"

◆ TERMINAL_KEYSEQ_Send

#define TERMINAL_KEYSEQ_Send   "Ctrl+Return"

◆ TERMINAL_LOG

#define TERMINAL_LOG ( ___message)    OTOOLKIT_LOG("Terminal", ___message)

◆ TERMINAL_LOGE

#define TERMINAL_LOGE ( ___message)    OTOOLKIT_LOGE("Terminal", ___message)

◆ TERMINAL_LOGW

#define TERMINAL_LOGW ( ___message)    OTOOLKIT_LOGW("Terminal", ___message)

◆ TERMINAL_TXT_ENDPOINT_EXECUTE

#define TERMINAL_TXT_ENDPOINT_EXECUTE   "Execute"

◆ TERMINAL_TXT_ENDPOINT_EXECUTE_OW_TLS

#define TERMINAL_TXT_ENDPOINT_EXECUTE_OW_TLS   "Execute One Way TLS"

◆ TERMINAL_TXT_ENDPOINT_QUEUE

#define TERMINAL_TXT_ENDPOINT_QUEUE   "Queue"

◆ TERMINAL_TXT_RECEIVER_EDIT

#define TERMINAL_TXT_RECEIVER_EDIT   "<Edit>"

◆ TERMINAL_TXT_RECEIVER_MANUAL

#define TERMINAL_TXT_RECEIVER_MANUAL   "<Manual>"

◆ TERMINAL_TXT_RESPONSE_LENGTH_PREFIX

#define TERMINAL_TXT_RESPONSE_LENGTH_PREFIX   "Response legnth: "