QString OJapiBallot::originator() const { if (m_pEventBallot->EGetEventClass() == CEventBallotReceived::c_eEventClass) { TContact * pContactSender = m_pEventBallot->PGetContactForReply_YZ(); if (pContactSender != NULL) return pContactSender->TreeItem_SGetNameDisplay(); } return m_pEventBallot->PGetProfile()->m_strNameProfile; // At the moment, the originator is the profile/role who sent the ballot }