int RadialMenuManager::addRootMenu (DataVector & dv, int menuType, const Unicode::String & label, bool serverNotify) { if (menuType == 0) return 0; const ObjectMenuRequestData * const data = findMenuByType (dv, menuType); if (data) return 0; const uint8 id = findNextId (dv); dv.push_back (ObjectMenuRequestData (id, 0, static_cast<uint8>(menuType), label, true, serverNotify)); return id; }
Club *ClubController::createClub() { int clubId = findNextId(); Club club(clubId, QString("<Club %1>").arg(clubId), QString("<coach %1>").arg(clubId)); return addClub(club); }