Rev 239 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 239 | Rev 240 | ||
---|---|---|---|
1 | /*************************************************************************** |
1 | /*************************************************************************** |
2 | * Copyright (C) 2009 by Manuel Schrape * |
2 | * Copyright (C) 2009 by Manuel Schrape * |
3 | * manuel.schrape@gmx.de * |
3 | * manuel.schrape@gmx.de * |
4 | * and Andreas Bresser bresser@informatik.uni-bremen.de * |
4 | * and Andreas Bresser bresser@informatik.uni-bremen.de * |
5 | * * |
5 | * * |
6 | * This program is free software; you can redistribute it and/or modify * |
6 | * This program is free software; you can redistribute it and/or modify * |
7 | * it under the terms of the GNU General Public License as published by * |
7 | * it under the terms of the GNU General Public License as published by * |
8 | * the Free Software Foundation; either version 2 of the License. * |
8 | * the Free Software Foundation; either version 2 of the License. * |
9 | * * |
9 | * * |
10 | * This program is distributed in the hope that it will be useful, * |
10 | * This program is distributed in the hope that it will be useful, * |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
13 | * GNU General Public License for more details. * |
13 | * GNU General Public License for more details. * |
14 | * * |
14 | * * |
15 | * You should have received a copy of the GNU General Public License * |
15 | * You should have received a copy of the GNU General Public License * |
16 | * along with this program; if not, write to the * |
16 | * along with this program; if not, write to the * |
17 | * Free Software Foundation, Inc., * |
17 | * Free Software Foundation, Inc., * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
19 | ***************************************************************************/ |
19 | ***************************************************************************/ |
20 | 20 | ||
21 | #ifndef DEFAULTLOGGER_H |
21 | #ifndef DEFAULTLOGGER_H |
22 | #define DEFAULTLOGGER_H |
22 | #define DEFAULTLOGGER_H |
23 | 23 | ||
24 | #include <QString> |
24 | #include <QString> |
25 | #include "../Classes/cSettings.h" |
25 | #include "../Classes/cSettings.h" |
26 | 26 | ||
27 | //Interface für einen Logger |
27 | //Interface für einen Logger |
28 | class DefaultLogger |
28 | class DefaultLogger |
29 | { |
29 | { |
30 | public: |
30 | public: |
31 | //schreibe log |
31 | //schreibe log |
32 | virtual void write(int *) { }; |
32 | virtual void write(int *) { }; |
33 | 33 | ||
34 | //erzeuge neue Log-Datei/neuen Datensatz |
34 | //erzeuge neue Log-Datei/neuen Datensatz |
35 | virtual void newLog(QString) { }; |
35 | virtual void newLog() { }; |
36 | 36 | ||
37 | //alles bereit zum schreiben? |
37 | //alles bereit zum schreiben? |
38 | virtual bool ready() { return false; }; |
38 | virtual bool ready() { return false; }; |
39 | 39 | ||
40 | //alles schließen |
40 | //alles schließen |
41 | virtual void close() {}; |
41 | virtual void close() {}; |
42 | }; |
42 | }; |
43 | 43 | ||
44 | #endif |
44 | #endif |