update dict
[QFreeRecite.git] / src / core / Exporter.h
blobd3b7ff029908cc00019d328255d82cb822be2d4c
1 /**
2 * FileName: Exporter.h.
3 * Used to export the words from a task.
5 * Copyright (C) 2008 Kermit Mei <kermit.mei@gmail.com>
6 * All Rights Reserved.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 3 as
11 * published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation.
22 * Written by Kermit Mei <kermit.mei@gmail.com>
24 * Many of the ideas implemented here are from the author's experiment.
25 * But the dictionary's format coincide with the other word recite software
26 * to help the users get more available data. And the review times designed
27 * by means of the theory named Forgetting Curve which dicoveried by the
28 * German psychologist named Hermann Ebbinghaus(1850–1909).
30 **/
32 #ifndef RECITER_H_
33 #define RECITER_H_
35 #include "Scanner.h"
37 namespace freeRecite {
39 class Exporter : public Scanner
41 public:
42 Exporter()
43 { /* Do Nothing Here! */ }
44 virtual ~Exporter();
46 //Load the task. This method is a implementation of Scnner::load();
47 virtual bool load(time_t initID);
49 virtual bool load(const char *fileName);
51 /**
52 * Test with the result. The argument 'result' is true
53 * when the word which the user input is correct.
54 **/
55 void test(bool result = true);
59 } //namespace freeRecite end
61 #endif //RECITER_H_