kpilot

pilotDaemonDCOP.h

Go to the documentation of this file.
00001 #ifndef PILOTDAEMONDCOP_H
00002 #define PILOTDAEMONDCOP_H
00003 /* pilotDaemonDCOP.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
00009 ** the KPilotDaemon. The daemon has *two* interfaces:
00010 ** one belonging with KUniqueApplication and this one.
00011 */
00012 
00013 /*
00014 ** This program is free software; you can redistribute it and/or modify
00015 ** it under the terms of the GNU General Public License as published by
00016 ** the Free Software Foundation; either version 2 of the License, or
00017 ** (at your option) any later version.
00018 **
00019 ** This program is distributed in the hope that it will be useful,
00020 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00022 ** GNU General Public License for more details.
00023 **
00024 ** You should have received a copy of the GNU General Public License
00025 ** along with this program in a file called COPYING; if not, write to
00026 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00027 ** MA 02110-1301, USA.
00028 */
00029 
00030 /*
00031 ** Bug reports and questions can be sent to kde-pim@kde.org
00032 */
00033 
00034 
00035 #include <dcopobject.h>
00036 #include <qdatetime.h>
00037 #include <qstringlist.h>
00038 
00039 class PilotDaemonDCOP : virtual public DCOPObject
00040 {
00041     K_DCOP
00042 public:
00043 k_dcop:
00051     virtual ASYNC requestSync(int) = 0;
00056     virtual ASYNC requestSyncType(QString) = 0;
00058     virtual ASYNC requestRegularSyncNext() = 0;
00060     virtual int nextSyncType() const = 0;
00062     virtual ASYNC requestSyncOptions(bool test, bool local) = 0;
00063 
00068     virtual ASYNC quitNow() = 0;
00069     virtual ASYNC reloadSettings() = 0; // Indicate changed config file.
00070     virtual ASYNC setTempDevice(QString d) =0; // use this device
00071     virtual void stopListening() = 0;
00072     virtual void startListening() = 0;
00073     virtual bool isListening() =0 ;
00074 
00078     virtual QString statusString() = 0;
00079     virtual QString shortStatusString() = 0;
00080 
00084     virtual QDateTime lastSyncDate() = 0;
00085     virtual QStringList configuredConduitList() = 0;
00086     virtual QString logFileName() = 0;
00087     virtual QString userName() = 0;
00088     virtual QString pilotDevice() = 0;
00089     virtual bool killDaemonOnExit() = 0;
00090 
00094     virtual void addInstallFiles(const QStringList &) = 0;
00095 
00096 
00097 k_dcop_signals:
00098     void kpilotDaemonStatusChanged();
00099     // used to push status information
00100     void kpilotDaemonStatusDetails( QDateTime, QString, QStringList, QString, QString, QString, bool );
00101 } ;
00102 
00103 #endif