1bb02e0acSNicolas Bonnefon /*
2bb02e0acSNicolas Bonnefon * Copyright (C) 2009, 2010 Nicolas Bonnefon and other contributors
3bb02e0acSNicolas Bonnefon *
4bb02e0acSNicolas Bonnefon * This file is part of glogg.
5bb02e0acSNicolas Bonnefon *
6bb02e0acSNicolas Bonnefon * glogg is free software: you can redistribute it and/or modify
7bb02e0acSNicolas Bonnefon * it under the terms of the GNU General Public License as published by
8bb02e0acSNicolas Bonnefon * the Free Software Foundation, either version 3 of the License, or
9bb02e0acSNicolas Bonnefon * (at your option) any later version.
10bb02e0acSNicolas Bonnefon *
11bb02e0acSNicolas Bonnefon * glogg is distributed in the hope that it will be useful,
12bb02e0acSNicolas Bonnefon * but WITHOUT ANY WARRANTY; without even the implied warranty of
13bb02e0acSNicolas Bonnefon * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14bb02e0acSNicolas Bonnefon * GNU General Public License for more details.
15bb02e0acSNicolas Bonnefon *
16bb02e0acSNicolas Bonnefon * You should have received a copy of the GNU General Public License
17bb02e0acSNicolas Bonnefon * along with glogg. If not, see <http://www.gnu.org/licenses/>.
18bb02e0acSNicolas Bonnefon */
19bb02e0acSNicolas Bonnefon
20bb02e0acSNicolas Bonnefon // This file implements AbstractLogData.
21bb02e0acSNicolas Bonnefon // This base class is primarily an interface class and should not
22bb02e0acSNicolas Bonnefon // implement anything.
23bb02e0acSNicolas Bonnefon // It exists so that AbstractLogView can manipulate an abtract set of data
24bb02e0acSNicolas Bonnefon // (either full or filtered).
25bb02e0acSNicolas Bonnefon
26bb02e0acSNicolas Bonnefon #include "abstractlogdata.h"
27bb02e0acSNicolas Bonnefon
AbstractLogData()28bb02e0acSNicolas Bonnefon AbstractLogData::AbstractLogData()
29bb02e0acSNicolas Bonnefon {
30bb02e0acSNicolas Bonnefon }
31bb02e0acSNicolas Bonnefon
32bb02e0acSNicolas Bonnefon // Simple wrapper in order to use a clean Template Method
getLineString(qint64 line) const33bb02e0acSNicolas Bonnefon QString AbstractLogData::getLineString( qint64 line ) const
34bb02e0acSNicolas Bonnefon {
35bb02e0acSNicolas Bonnefon return doGetLineString(line);
36bb02e0acSNicolas Bonnefon }
37bb02e0acSNicolas Bonnefon
38bb02e0acSNicolas Bonnefon // Simple wrapper in order to use a clean Template Method
getExpandedLineString(qint64 line) const39bb02e0acSNicolas Bonnefon QString AbstractLogData::getExpandedLineString( qint64 line ) const
40bb02e0acSNicolas Bonnefon {
41bb02e0acSNicolas Bonnefon return doGetExpandedLineString(line);
42bb02e0acSNicolas Bonnefon }
43bb02e0acSNicolas Bonnefon
44bb02e0acSNicolas Bonnefon // Simple wrapper in order to use a clean Template Method
getLines(qint64 first_line,int number) const45bb02e0acSNicolas Bonnefon QStringList AbstractLogData::getLines( qint64 first_line, int number ) const
46bb02e0acSNicolas Bonnefon {
47bb02e0acSNicolas Bonnefon return doGetLines( first_line, number );
48bb02e0acSNicolas Bonnefon }
49bb02e0acSNicolas Bonnefon
50bb02e0acSNicolas Bonnefon // Simple wrapper in order to use a clean Template Method
getExpandedLines(qint64 first_line,int number) const51bb02e0acSNicolas Bonnefon QStringList AbstractLogData::getExpandedLines( qint64 first_line, int number ) const
52bb02e0acSNicolas Bonnefon {
53bb02e0acSNicolas Bonnefon return doGetExpandedLines( first_line, number );
54bb02e0acSNicolas Bonnefon }
55bb02e0acSNicolas Bonnefon
56bb02e0acSNicolas Bonnefon // Simple wrapper in order to use a clean Template Method
getNbLine() const57bb02e0acSNicolas Bonnefon qint64 AbstractLogData::getNbLine() const
58bb02e0acSNicolas Bonnefon {
59bb02e0acSNicolas Bonnefon return doGetNbLine();
60bb02e0acSNicolas Bonnefon }
61bb02e0acSNicolas Bonnefon
62bb02e0acSNicolas Bonnefon // Simple wrapper in order to use a clean Template Method
getMaxLength() const63bb02e0acSNicolas Bonnefon int AbstractLogData::getMaxLength() const
64bb02e0acSNicolas Bonnefon {
65bb02e0acSNicolas Bonnefon return doGetMaxLength();
66bb02e0acSNicolas Bonnefon }
67bb02e0acSNicolas Bonnefon
68bb02e0acSNicolas Bonnefon // Simple wrapper in order to use a clean Template Method
getLineLength(qint64 line) const69bb02e0acSNicolas Bonnefon int AbstractLogData::getLineLength( qint64 line ) const
70bb02e0acSNicolas Bonnefon {
71bb02e0acSNicolas Bonnefon return doGetLineLength( line );
72bb02e0acSNicolas Bonnefon }
735fa25391SNicolas Bonnefon
setDisplayEncoding(Encoding encoding)74*209000a6SNicolas Bonnefon void AbstractLogData::setDisplayEncoding( Encoding encoding )
755fa25391SNicolas Bonnefon {
765fa25391SNicolas Bonnefon doSetDisplayEncoding( encoding );
775fa25391SNicolas Bonnefon }
78