/home/jon/Projects/gibberish/src/include/LessonSettings.h

Go to the documentation of this file.
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_LESSON_SETTINGS
00027 #define _H_LESSON_SETTINGS
00028 
00029 #include <QTime>
00030 
00041 class LessonSettings
00042 {
00043         public:
00044                 LessonSettings();
00045 
00046                 void setNativeLang( QString nLang );
00047                 void setForeignLang( QString fLang);
00048                 void setLessonType( int lType );
00049                 void setTime( QTime time );
00050                 void setNativeFirst( bool isNativeFirst );
00051                 void setUseTimer( bool useTimer );      
00052 
00053                 bool isUseTimer();
00054                 bool isNativeFirst();
00055                 QTime getTime();
00056                 QString getNativeLang();
00057                 QString getForeignLang();
00058                 int  getLessonType();
00059 
00060         private:
00061                 int     lType;
00062                 QString nativeLang;
00063                 QString foreignLang;
00064                 QTime time;
00065                 bool nativeFirst;
00066                 bool useTimer;
00067 };
00068 
00069 #endif

Generated on Sat Sep 16 21:02:41 2006 for Gibberish by  doxygen 1.4.6