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

Method GetName

Plugins/FileTransfer/RemoteFileSystemModel.cpp:229–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229QString CRemoteFileSystem::GetName()
230{
231 QString szName;
232 QString szPath = GetPath();
233 if(szPath == '/')
234 return szPath;
235 int nIndex = szPath.lastIndexOf('/');
236 if(-1 == nIndex)
237 return QString();
238 szName = szPath.right(szPath.size() - nIndex - 1);
239 if(GetState() == State::Getting)
240 szName += "(" + tr("getting") + " ......)";
241 return szName;
242}
243
244quint64 CRemoteFileSystem::GetSize()
245{

Callers 15

CDlgSettingsTerminalMethod · 0.45
NameMethod · 0.45
CDlgSettingsLibVncMethod · 0.45
AppendChildMethod · 0.45
setDataMethod · 0.45
foreachFunction · 0.45
CDlgSetFreeRDPMethod · 0.45
NameMethod · 0.45
CDlgSettingsRawStreamMethod · 0.45
NameMethod · 0.45
Q_LOGGING_CATEGORYFunction · 0.45
NameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected