You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tellico/src/translators/textimporter.cpp

30 lines
1.2 KiB

/***************************************************************************
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; *
* *
***************************************************************************/
#include "textimporter.h"
#include "../filehandler.h"
using Tellico::Import::TextImporter;
TextImporter::TextImporter(const KURL& url_, bool useUTF8_)
: Import::Importer(url_) {
if(url_.isValid()) {
setText(FileHandler::readTextFile(url_, false, useUTF8_));
}
}
TextImporter::TextImporter(const TQString& text_) : Import::Importer(text_) {
}
#include "textimporter.moc"