summaryrefslogtreecommitdiffstats
path: root/src/translators/textimporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/translators/textimporter.h')
-rw-r--r--src/translators/textimporter.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/translators/textimporter.h b/src/translators/textimporter.h
new file mode 100644
index 0000000..c4500e5
--- /dev/null
+++ b/src/translators/textimporter.h
@@ -0,0 +1,42 @@
+/***************************************************************************
+ copyright : (C) 2003-2006 by Robby Stephenson
+ email : robby@periapsis.org
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of version 2 of the GNU General Public License as *
+ * published by the Free Software Foundation; *
+ * *
+ ***************************************************************************/
+
+#ifndef TEXTIMPORTER_H
+#define TEXTIMPORTER_H
+
+#include "importer.h"
+
+namespace Tellico {
+ namespace Import {
+
+/**
+ * The TextImporter class is meant as an abstract class for any importer which reads text files.
+ *
+ * @author Robby Stephenson
+ */
+class TextImporter : public Importer {
+Q_OBJECT
+
+public:
+ /**
+ * In the constructor, the contents of the file are read.
+ *
+ * @param url The file to be imported
+ */
+ TextImporter(const KURL& url, bool useUTF8_=false);
+ TextImporter(const QString& text);
+};
+
+ } // end namespace
+} // end namespace
+#endif