Logo Search packages:      
Sourcecode: kanatest version File versions  Download package

test.h

/*
 * Kanatest
 *
 * Copyright (C) 2001-2004, 2006 Tomasz Maka <pasp@users.sourceforge.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef _TEST_H
#define _TEST_H

#define                 NUMBER_OF_SIGNS         104
#define                 MIXED_SEPARATOR         1000        /* magic number for mixed mode */
#define                 ANSWER_LEN              8
#define                 KANA_SET_NAMES          15
#define                 KANA_MODE_NAMES         3
#define                 MAX_NUMBER_OF_SIGNS (NUMBER_OF_SIGNS*2)

#define         ANSWER_DELIMITER    ","
#define         MAX_RANSWERS        10

extern gint       question_counter;
extern gint       max_entries_in_test;

extern gint       questions_table[];
extern gchar      *kana_signs[];
extern gchar    *kana_signs_names[];
extern gchar    *kana_mode_names[];

void              test_init                   (void);
void            test_info               (void);
void              test_generate_tables    (gint number);
void              test_check_answer     (gchar *user_answer);
gchar*                  test_sec2str            (guint seconds, gboolean mshort);

#endif /* _TEST_H */


Generated by  Doxygen 1.6.0   Back to index