MinesRankingWidget::MinesRankingWidget(QWidget *parent) : QWidget(parent) { initUi(); dataFileName = "ranking.xml"; readRanking(); updateUi(); }
void ranking (int record, char *name) { Ranking ranking; ranking = readRanking(); Score newScore = fromNameAndPointsToScore(record, name); insertNewScoreInRanking(&ranking, newScore); writeRanking(ranking); return; }