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

Method AppendChild

Plugins/FileTransfer/RemoteFileSystemModel.cpp:167–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167int CRemoteFileSystem::AppendChild(CRemoteFileSystem *pChild)
168{
169 Q_ASSERT_X(pChild->GetType(), "AppendChild", "Must set all the properties before call them");
170
171 // if(m_vChild.contains(pChild)) {
172 // qDebug(log) << pChild->GetName() << "is exist";
173 // return 0;
174 // }
175 if(-1 != IndexOf(pChild->GetPath()))
176 {
177 qDebug(log) << pChild->GetName() << "is exist";
178 return 0;
179 }
180
181 m_vChild.append(pChild);
182 pChild->SetParent(this);
183 return 0;
184}
185
186int CRemoteFileSystem::RemoveChild(int index)
187{

Callers 1

foreachFunction · 0.80

Calls 4

GetPathMethod · 0.80
SetParentMethod · 0.80
GetTypeMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected