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