MCPcopy Create free account
hub / github.com/acl-dev/acl / check

Method check

app/net_tools/net_toolsDlg.cpp:972–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970}
971
972void Cnet_toolsDlg::check()
973{
974 UpdateData(TRUE);
975
976 if (m_smtpAddr.IsEmpty() || m_pop3Addr.IsEmpty()
977 || m_smtpUser.IsEmpty() || m_smtpPass.IsEmpty()
978 || m_recipients.IsEmpty() || m_smtpPort == 0
979 || m_connecTimeout == 0 || m_rwTimeout == 0)
980 {
981 GetDlgItem(IDC_PING)->EnableWindow(FALSE);
982 GetDlgItem(IDC_NSLOOKUP)->EnableWindow(FALSE);
983 GetDlgItem(IDC_SEND_MAIL)->EnableWindow(FALSE);
984 GetDlgItem(IDC_RECV_MAIL)->EnableWindow(FALSE);
985 GetDlgItem(IDC_TESTALL)->EnableWindow(FALSE);
986 return;
987 }
988
989 int nok = 0;
990
991 if (m_ipFilePath.IsEmpty() || m_nPkt == 0
992 || m_delay == 0 || m_pingTimeout == 0
993 || m_pktSize == 0)
994 {
995 GetDlgItem(IDC_PING)->EnableWindow(FALSE);
996 GetDlgItem(IDC_TESTALL)->EnableWindow(FALSE);
997 }
998 else
999 {
1000 GetDlgItem(IDC_PING)->EnableWindow(TRUE);
1001 nok++;
1002 }
1003
1004 if (m_domainFilePath.IsEmpty() || m_dnsIp.IsEmpty()
1005 || m_dnsPort == 0 || m_lookupTimeout == 0)
1006 {
1007 GetDlgItem(IDC_NSLOOKUP)->EnableWindow(FALSE);
1008 GetDlgItem(IDC_TESTALL)->EnableWindow(FALSE);
1009 }
1010 else
1011 {
1012 GetDlgItem(IDC_NSLOOKUP)->EnableWindow(TRUE);
1013 nok++;
1014 }
1015
1016 if (m_attachFilePath.IsEmpty())
1017 {
1018 GetDlgItem(IDC_SEND_MAIL)->EnableWindow(FALSE);
1019 GetDlgItem(IDC_TESTALL)->EnableWindow(FALSE);
1020 }
1021 else
1022 {
1023 GetDlgItem(IDC_SEND_MAIL)->EnableWindow(TRUE);
1024 nok++;
1025 }
1026
1027 if (m_pop3Port == 0 || (m_recvLimit == 0 && !m_recvAll))
1028 {
1029 GetDlgItem(IDC_RECV_MAIL)->EnableWindow(FALSE);

Callers 5

websocket_runFunction · 0.45
test_websocket_mainFunction · 0.45
~rpc_managerMethod · 0.45
~rpc_managerMethod · 0.45
finishMethod · 0.45

Calls 1

IsEmptyMethod · 0.80

Tested by 1

test_websocket_mainFunction · 0.36