00001 /****************************************************************************** 00002 * 00003 * This file is part of Gibberish. 00004 * 00005 * Gibberish is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * Gibberish is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with Foobar; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 * 00019 *****************************************************************************/ 00020 00026 #ifndef _H_SCORE 00027 #define _H_SCORE 00028 00029 #include <QList> 00030 00041 class Score 00042 { 00043 public: 00044 Score(); 00045 00046 void addGivenAnswer( int answer ); 00047 void incrementCorrectAnswerCount(); 00048 int getCorrectAnswerCount(); 00049 QList<int> getAnswersGiven(); 00050 00051 private: 00052 int correctAnswerCount; 00053 QList<int> answersGiven; 00054 }; 00055 00056 #endif