kpilot/kpilot

pilotDaemonDCOP.h

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 requestFastSyncNext() = 0;
00060     virtual ASYNC requestRegularSyncNext() = 0;
00062     virtual int nextSyncType() const = 0;
00064     virtual ASYNC requestSyncOptions(bool test, bool local) = 0;
00065 
00070     virtual ASYNC quitNow() = 0;
00071     virtual ASYNC reloadSettings() = 0; // Indicate changed config file.
00072     virtual ASYNC setTempDevice(QString d) =0; // use this device
00073     virtual void stopListening() = 0;
00074     virtual void startListening() = 0;
00075     virtual bool isListening() =0 ;
00076 
00080     virtual QString statusString() = 0;
00081     virtual QString shortStatusString() = 0;
00082 
00086     virtual QDateTime lastSyncDate() = 0;
00087     virtual QStringList configuredConduitList() = 0;
00088     virtual QString logFileName() = 0;
00089     virtual QString userName() = 0;
00090     virtual QString pilotDevice() = 0;
00091     virtual bool killDaemonOnExit() = 0;
00092 
00096     virtual void addInstallFiles(const QStringList &) = 0;
00097 
00098 
00099 k_dcop_signals:
00100     void kpilotDaemonStatusChanged();
00101     // used to push status information
00102     void kpilotDaemonStatusDetails( QDateTime, QString, QStringList, QString, QString, QString, bool );
00103 } ;
00104 
00105 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys