void MainScreen::handleParticipantAdded(Participant p) { QVariantMap map; map["name"] = p.getName(); map["email"] = p.getEmail(); map["exl"] = p.getExList(); m_participants << map; m_mainPage->setProperty("numParticipants", m_participants.size()); }
bool IsValidPair(Participant& buyer, const Participant& receiver) { bool sameEmail = !buyer.getEmail().compare(receiver.getEmail(), Qt::CaseInsensitive); return( !sameEmail && !buyer.isExcluded(receiver.getEmail())); }