summaryrefslogtreecommitdiffstats
path: root/src/translators/textimporter.cpp
blob: 341a874bdabea21527958be67f564b884bb81751 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/***************************************************************************
    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"