Debian Codegraph @

src/readLogFile.h

raw symbols SCIP
1 // ---------------------------------- readLogFile.h ---------------------------------------------------------------------------
2 // Header file for readLogFile.cpp
3 /*
4 ===============================================================================================================================
5 ===============================================================================================================================
6 This file is part of "luckyBackup" project
7 Copyright, Loukas Avgeriou
8 luckyBackup is distributed under the terms of the GNU General Public License
9 luckyBackup is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 luckyBackup is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with luckyBackup. If not, see <http://www.gnu.org/licenses/>.
21
22
23 project version : Please see "main.cpp" for project version
24
25 developer : luckyb
26 last modified : 27 Aug 2010
27 ===============================================================================================================================
28 ===============================================================================================================================
29 */
30
31 #ifndef READLOGFILE_H
32 #define READLOGFILE_H
33
34 #include <QThread>
35 //==============================================================================================================
36 //Declaration of readLogFile class (this will read a log file from disk in a seperate thread)
37 class ReadLogFile : public QThread
38 {
39 Q_OBJECT
40
41 public:
42 explicit ReadLogFile(QObject *parent = 0);
43 ~ReadLogFile();
44
45 void setLogUrl(QString logUrl); //set the url of the logfile
46 int TotalErrors(); //return the total number of errors found
47
48 protected:
49 void run();
50 void readFile();
51
52 signals:
53 void error(const QString &message );
54 void newText(const QString &logLine);
55
56 private:
57 //QString logFileName;
58 QString logUrl;
59 QString text;
60 int errorsTotal;
61 };
62
63 #endif
64
65 // end of readLogfile.h ---------------------------------------------------------------------------