| 1 | // ---------------------------------- readLogFile.h ---------------------------------------------------------------------------cxx . . $ `<file>/src/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_Hcxx . . $ `src/readLogFile.h:32:9`! |
| 33 | |
| 34 | #include <QThread> |
| 35 | //============================================================================================================== |
| 36 | //Declaration of readLogFile class (this will read a log file from disk in a seperate thread) |
| 37 | class ReadLogFilecxx . . $ ReadLogFile# : public QThreadcxx . . $ QThread# |
| 38 | { |
| 39 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 40 | |
| 41 | public: |
| 42 | explicit ReadLogFilecxx . . $ ReadLogFile#ReadLogFile(749de1b6ae65bddd).(QObjectcxx . . $ QObject# *parent = 0); |
| 43 | ~cxx . . $ ReadLogFile#`~ReadLogFile`(ced63f7c635d850d).ReadLogFilecxx . . $ ReadLogFile#(); |
| 44 | |
| 45 | void setLogUrlcxx . . $ ReadLogFile#setLogUrl(7df51288a9ebd664).(QStringcxx . . $ QString# logUrl); //set the url of the logfile |
| 46 | int TotalErrorscxx . . $ ReadLogFile#TotalErrors(b126dc7c1de90089).(); //return the total number of errors found |
| 47 | |
| 48 | protected: |
| 49 | void runcxx . . $ ReadLogFile#run(49f6e7a06ebc5aa8).(); |
| 50 | void readFilecxx . . $ ReadLogFile#readFile(49f6e7a06ebc5aa8).(); |
| 51 | |
| 52 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 53 | void errorcxx . . $ ReadLogFile#error(3520e46b33348bf6).(const QStringcxx . . $ QString# &message ); |
| 54 | void newTextcxx . . $ ReadLogFile#newText(3520e46b33348bf6).(const QStringcxx . . $ QString# &logLine); |
| 55 | |
| 56 | private: |
| 57 | //QString logFileName; |
| 58 | QStringcxx . . $ QString# logUrlcxx . . $ ReadLogFile#logUrl.; |
| 59 | QStringcxx . . $ QString# textcxx . . $ ReadLogFile#text.; |
| 60 | int errorsTotalcxx . . $ ReadLogFile#errorsTotal.; |
| 61 | }; |
| 62 | |
| 63 | #endif |
| 64 | |
| 65 | // end of readLogfile.h --------------------------------------------------------------------------- |