moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kvoctrain / kvoctrain / kvt-core / MultipleChoice.h
blob91f7268718c67c2e328c33ac45b25685dd140f97
1 /***************************************************************************
3 $Id$
5 manage multiple choice suggestions for queries
7 -----------------------------------------------------------------------
9 begin : Mon Oct 29 18:09:29 1999
11 copyright : (C) 1999-2001 Ewald Arnold
12 (C) 2001 The KDE-EDU team
13 email : kvoctrain@ewald-arnold.de
15 -----------------------------------------------------------------------
17 ***************************************************************************/
19 /***************************************************************************
20 * *
21 * This program is free software; you can redistribute it and/or modify *
22 * it under the terms of the GNU General Public License as published by *
23 * the Free Software Foundation; either version 2 of the License, or *
24 * (at your option) any later version. *
25 * *
26 ***************************************************************************/
29 #ifndef MultipleChoice_included
30 #define MultipleChoice_included
32 #include <qstring.h>
34 #define MAX_MULTIPLE_CHOICE 5 // select one out of x
36 class MultipleChoice
39 public:
41 MultipleChoice() {}
43 MultipleChoice (
44 const QString &mc1,
45 const QString &mc2,
46 const QString &mc3,
47 const QString &mc4,
48 const QString &mc5
51 void setMC1 (const QString &s) { muc1 = s; }
52 void setMC2 (const QString &s) { muc2 = s; }
53 void setMC3 (const QString &s) { muc3 = s; }
54 void setMC4 (const QString &s) { muc4 = s; }
55 void setMC5 (const QString &s) { muc5 = s; }
57 QString mc1 () const { return muc1; }
58 QString mc2 () const { return muc2; }
59 QString mc3 () const { return muc3; }
60 QString mc4 () const { return muc4; }
61 QString mc5 () const { return muc5; }
63 QString mc (unsigned idx) const;
65 bool isEmpty() const;
66 void normalize();
67 void clear();
68 unsigned size();
70 protected:
72 QString muc1, muc2, muc3, muc4, muc5;
76 #endif // MultipleChoice_included