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

Method Details

Plugins/FileTransfer/PluginFileTransfer.cpp:67–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67const QString CPluginFileTransfer::Details() const
68{
69 QString szDetails;
70 szDetails += "- " + tr("Dependency libraries") + "\n";
71#ifdef HAVE_LIBSSH
72 CChannelSSH channel(nullptr, nullptr);
73 szDetails += channel.GetDetails();
74#endif
75
76#if HAVE_CURL
77 szDetails += " - " + tr("libCurl") + " ";
78 curl_version_info_data *version_info = curl_version_info(CURLVERSION_NOW);
79 szDetails += tr("Version:") + " " + QString(version_info->version) + "\n";
80 szDetails += " - " + tr("Supported protocols:") + " ";
81 if (version_info->protocols) {
82 for (int i = 0; version_info->protocols[i]; i++) {
83 szDetails += " ";
84 szDetails += version_info->protocols[i];
85 }
86 }
87 szDetails += "\n";
88 #if CURL_VERSION_SSL
89 szDetails += " - " + QString("SSL supported:") + " " + QString(version_info->features & CURL_VERSION_SSL ? "Yes" : "No") + "\n";
90 #endif
91 #if CURL_VERSION_LIBSSH2
92 szDetails += " - " + QString("LIBSSH2 supported:") + " " + QString(version_info->features & CURL_VERSION_LIBSSH2 ? "Yes" : "No") + "\n";
93 #endif
94#endif
95 return szDetails;
96}
97
98COperate *CPluginFileTransfer::OnCreateOperate(const QString &szId)
99{

Callers

nothing calls this directly

Calls 1

GetDetailsMethod · 0.45

Tested by

no test coverage detected