moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kwordquiz / src / wqlistitem.h
blobd8a177c3950194e3f50e44880ab009eba5e77210
1 /* This file is part of KWordQuiz
2 Copyright (C) 2003 Peter Hedlund <peter@peterandlinda.com>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA.
19 #ifndef WQLISTITEM_H
20 #define WQLISTITEM_H
23 /**
24 @author Peter Hedlund
27 class WQListItem{
28 public:
29 WQListItem();
31 ~WQListItem();
32 void setQuestion(int i);
33 void setCorrect(int c);
34 void setOneOp(int i);
35 void setTwoOp(int i);
36 void setThreeOp(int i);
38 int question() {return m_question;}
39 int correct() const {return m_correct;}
40 int oneOp() {return m_oneOp;}
41 int twoOp() {return m_twoOp;}
42 int threeOp() {return m_threeOp;}
44 private:
45 int m_question; //the column containing the question
46 int m_correct;
47 int m_oneOp; //the row for correct or option 1
48 int m_twoOp; //the row for option 2
49 int m_threeOp; //the row for option 3
53 #endif