kpilot

kpilotDCOP.h

Go to the documentation of this file.
00001 #ifndef _KPILOT_KPILOTDCOP_H
00002 #define _KPILOT_KPILOTDCOP_H
00003 /* kpilotDCOP.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 KPilot.
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 KPilotDCOP : virtual public DCOPObject
00037 {
00038     K_DCOP
00039 
00040 public:
00041     enum DaemonMessages {
00042         None=0,
00043         StartOfHotSync=1,
00044         EndOfHotSync=2,
00045         DaemonQuit=4 } ;
00046     enum KPilotStatus {
00047         Startup=1,
00048         WaitingForDaemon=2,
00049         Normal=10,
00050         UIBusy=100,
00051         Error=101 } ;
00052 
00053 k_dcop:
00058     virtual ASYNC daemonStatus(int) = 0;
00059 
00064     virtual ASYNC configure() = 0;
00065     virtual ASYNC configureWizard() = 0;
00066 
00070     virtual int kpilotStatus() = 0;
00071 } ;
00072 
00073 
00074 
00075 #endif