| 165 | } |
| 166 | |
| 167 | int 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 | |
| 186 | int CRemoteFileSystem::RemoveChild(int index) |
| 187 | { |