kpilot
logFile.h
Go to the documentation of this file.00001 #ifndef _KPILOT_LOGFILE_H 00002 #define _KPILOT_LOGFILE_H 00003 /* logFile.h KPilot 00004 ** 00005 ** Copyright (C) 2001 by Dan Pilone 00006 ** Copyright (C) 2004 by Reinhold Kainhofer 00007 ** 00008 ** This file defines the log window widget, which logs 00009 ** sync-messages during a HotSync. 00010 */ 00011 00012 /* 00013 ** This program is free software; you can redistribute it and/or modify 00014 ** it under the terms of the GNU General Public License as published by 00015 ** the Free Software Foundation; either version 2 of the License, or 00016 ** (at your option) any later version. 00017 ** 00018 ** This program is distributed in the hope that it will be useful, 00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 ** GNU General Public License for more details. 00022 ** 00023 ** You should have received a copy of the GNU General Public License 00024 ** along with this program in a file called COPYING; if not, write to 00025 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00026 ** MA 02110-1301, USA. 00027 */ 00028 00029 /* 00030 ** Bug reports and questions can be sent to kde-pim@kde.org. 00031 */ 00032 00033 #include "loggerDCOP.h" 00034 #include "qobject.h" 00035 00036 class QFile; 00037 class QTextStream; 00038 00039 class LogFile : public QObject, public LoggerDCOP 00040 { 00041 Q_OBJECT 00042 00043 public: 00044 LogFile(); 00045 ~LogFile() { } ; 00046 00050 virtual ASYNC logStartSync(); 00051 virtual ASYNC logEndSync(); 00052 virtual ASYNC logError(QString); 00053 virtual ASYNC logMessage(QString); 00054 virtual ASYNC logProgress(QString,int); 00055 00056 void addMessage(const QString &); 00057 00058 private: 00059 QFile*fOutfile; 00060 bool fSyncing; 00061 QTextStream fLogStream; 00062 } ; 00063 00064 #endif