MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Id

Method Id

Plugins/RawStream/OperateRawStream.cpp:106–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106const QString COperateRawStream::Id()
107{
108 QString szId;
109 szId = COperate::Id();
110 if(CParameterRawStream::TYPE::TCP == m_Parameter.GetType()) {
111 auto &net = m_Parameter.m_Net;
112 if(!net.GetHost().isEmpty())
113 szId += "_" + net.GetHost()
114 + "_" + QString::number(net.GetPort());
115 }
116 static QRegularExpression exp("[-@:/#%!^&* \\.]");
117 szId = szId.replace(exp, "_");
118 return szId;
119}
120
121const QString COperateRawStream::Name()
122{

Callers

nothing calls this directly

Calls 4

GetHostMethod · 0.80
GetTypeMethod · 0.45
isEmptyMethod · 0.45
GetPortMethod · 0.45

Tested by

no test coverage detected