kpilot

loggerDCOP.h

Go to the documentation of this file.
00001 #ifndef _KPILOT_LOGWIDGETDCOP_H
00002 #define _KPILOT_LOGWIDGETDCOP_H
00003 /* logWidgetDCOP.h          KPilotDaemon
00004 **
00005 ** Copyright (C) 2000 by Adriaan de Groot
00006 ** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00007 **
00008 ** This file defines the DCOP interface for the generalized log widget.
00009 */
00010 
00011 /*
00012 ** This program is free software; you can redistribute it and/or modify
00013 ** it under the terms of the GNU General Public License as published by
00014 ** the Free Software Foundation; either version 2 of the License, or
00015 ** (at your option) any later version.
00016 **
00017 ** This program is distributed in the hope that it will be useful,
00018 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00020 ** GNU General Public License for more details.
00021 **
00022 ** You should have received a copy of the GNU General Public License
00023 ** along with this program in a file called COPYING; if not, write to
00024 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
00025 ** MA 02110-1301, USA.
00026 */
00027 
00028 /*
00029 ** Bug reports and questions can be sent to kde-pim@kde.org
00030 */
00031 
00032 
00033 #include <dcopobject.h>
00034 
00035 
00036 class LoggerDCOP : virtual public DCOPObject
00037 {
00038     K_DCOP
00039 
00040 k_dcop:
00041     // Indicates the start of a sync process
00042     virtual ASYNC logStartSync() = 0 ;
00043     // Indicates the end of a sync process
00044     virtual ASYNC logEndSync() = 0 ;
00045     // Adds a single message to the log, with formatting 
00046     // showing it's an error message.
00047     virtual ASYNC logError(QString) = 0 ;
00048     // Adds a regular message.
00049     virtual ASYNC logMessage(QString) = 0 ;
00050     // Adds a message if the string is non-null, and
00051     // sets the progress bar to @p n%. Limit @p n
00052     // to the range 0 .. 100.
00053     virtual ASYNC logProgress(QString,int n) = 0 ;
00054 } ;
00055 
00056 
00057 
00058 #endif