316
316
Q_ASSERT( share );
317
317
Q_ASSERT( users );
319
for ( int i = 0; i < m_homes_users.size(); ++i )
321
if ( QString::compare( share->unc(), m_homes_users.at( i ).share.unc(), Qt::CaseInsensitive ) == 0 &&
322
((m_homes_users.at( i ).share.workgroupName().isEmpty() || share->workgroupName().isEmpty()) ||
323
QString::compare( share->workgroupName(), m_homes_users.at( i ).share.workgroupName(), Qt::CaseInsensitive ) == 0) )
325
*users = m_homes_users.at( i ).users;
319
if ( !m_homes_users.isEmpty() )
321
for ( int i = 0; i < m_homes_users.size(); ++i )
323
if ( QString::compare( share->unc(), m_homes_users.at( i ).share.unc(), Qt::CaseInsensitive ) == 0 &&
324
((m_homes_users.at( i ).share.workgroupName().isEmpty() || share->workgroupName().isEmpty()) ||
325
QString::compare( share->workgroupName(), m_homes_users.at( i ).share.workgroupName(), Qt::CaseInsensitive ) == 0) )
327
*users = m_homes_users.at( i ).users;
341
348
bool found = false;
343
for ( int i = 0; i < m_homes_users.size(); ++i )
350
if ( !m_homes_users.isEmpty() )
345
if ( QString::compare( share->unc(), m_homes_users.at( i ).share.unc(), Qt::CaseInsensitive ) == 0 &&
346
((m_homes_users.at( i ).share.workgroupName().isEmpty() || share->workgroupName().isEmpty()) ||
347
QString::compare( share->workgroupName(), m_homes_users.at( i ).share.workgroupName(), Qt::CaseInsensitive ) == 0) )
349
m_homes_users[i].users = *users;
352
for ( int i = 0; i < m_homes_users.size(); ++i )
354
if ( QString::compare( share->unc(), m_homes_users.at( i ).share.unc(), Qt::CaseInsensitive ) == 0 &&
355
((m_homes_users.at( i ).share.workgroupName().isEmpty() || share->workgroupName().isEmpty()) ||
356
QString::compare( share->workgroupName(), m_homes_users.at( i ).share.workgroupName(), Qt::CaseInsensitive ) == 0) )
358
m_homes_users[i].users = *users;
370
m_homes_users << Smb4KHomesUsers( *share, *users );
361
m_homes_users << Smb4KHomesUsers( *share, *users );