| 1 |
/* dvbcut |
| 2 |
Copyright (c) 2005 Sven Over <[email protected]> |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or modify |
| 5 |
it under the terms of the GNU General Public License as published by |
| 6 |
the Free Software Foundation; either version 2 of the License, or |
| 7 |
(at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with this program; if not, write to the Free Software |
| 16 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 |
*/ |
| 18 |
|
| 19 |
/* $Id$ */ |
| 20 |
|
| 21 |
#ifndef _DVBCUT_LOGOUTPUT_H |
| 22 |
#define _DVBCUT_LOGOUTPUT_H |
| 23 |
|
| 24 |
class QString; |
| 25 |
|
| 26 |
/** |
| 27 |
@author Sven Over |
| 28 |
*/ |
| 29 |
class logoutput |
| 30 |
{ |
| 31 |
protected: |
| 32 |
int currentprogress; |
| 33 |
void printmsg(const QString &str, const QString head, const QString tail); |
| 34 |
|
| 35 |
public: |
| 36 |
logoutput() : currentprogress(0) |
| 37 |
{} |
| 38 |
virtual ~logoutput() |
| 39 |
{} |
| 40 |
|
| 41 |
int getprogress() |
| 42 |
{ |
| 43 |
return currentprogress; |
| 44 |
} |
| 45 |
virtual void setprogress(int permille); |
| 46 |
|
| 47 |
virtual void print(const QString &str); |
| 48 |
virtual void printheading(const QString &str); |
| 49 |
virtual void printinfo(const QString &str); |
| 50 |
virtual void printerror(const QString &str); |
| 51 |
virtual void printwarning(const QString &str); |
| 52 |
|
| 53 |
virtual bool cancelled() |
| 54 |
{ |
| 55 |
return false; |
| 56 |
} |
| 57 |
virtual void finish() |
| 58 |
{ |
| 59 |
return; |
| 60 |
} |
| 61 |
}; |
| 62 |
|
| 63 |
#endif |