| 103 | } |
| 104 | |
| 105 | int CParameterProxyUI::Accept() |
| 106 | { |
| 107 | int nRet = 0; |
| 108 | int type = m_cbType->currentData().toInt(); |
| 109 | switch(type) |
| 110 | { |
| 111 | case (int)CParameterProxy::TYPE::SockesV5: { |
| 112 | nRet = m_uiSockesV5->Accept(); |
| 113 | if(nRet) return nRet; |
| 114 | break; |
| 115 | } |
| 116 | case (int)CParameterProxy::TYPE::Http: { |
| 117 | nRet = m_uiHttp->Accept(); |
| 118 | if(nRet) return nRet; |
| 119 | break; |
| 120 | } |
| 121 | case (int)CParameterProxy::TYPE::SSHTunnel: { |
| 122 | nRet = m_uiSSH->Accept(); |
| 123 | if(nRet) return nRet; |
| 124 | break; |
| 125 | } |
| 126 | default: |
| 127 | break; |
| 128 | } |
| 129 | |
| 130 | m_Proxy->SetUsedType((CParameterProxy::TYPE)type); |
| 131 | |
| 132 | return 0; |
| 133 | } |
nothing calls this directly
no test coverage detected