kpilot/lib

kpilotlocallink.h

00001 #ifndef _KPILOT_KPILOTLOCALLINK_H
00002 #define _KPILOT_KPILOTLOCALLINK_H
00003 /* kpilotlocallink.h            KPilot
00004 **
00005 ** Copyright (C) 1998-2001 by Dan Pilone
00006 ** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
00007 ** Copyright (C) 2006 Adriaan de Groot <groot@kde.org>
00008 **
00009 */
00010 
00011 /*
00012 ** This program is free software; you can redistribute it and/or modify
00013 ** it under the terms of the GNU Lesser General Public License as published by
00014 ** the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
00021 **
00022 ** You should have received a copy of the GNU Lesser 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 #include "kpilotlink.h"
00033 
00040 class KDE_EXPORT KPilotLocalLink : public KPilotLink
00041 {
00042 Q_OBJECT
00043 public:
00044     KPilotLocalLink( QObject *parent=0L, const char *name=0L );
00045     virtual ~KPilotLocalLink();
00046 
00047     virtual QString statusString() const;
00048     virtual bool isConnected() const;
00049     virtual void reset( const QString & );
00050     virtual void close();
00051     virtual void reset();
00052     virtual bool tickle();
00053     virtual const KPilotCard *getCardInfo(int card);
00054     virtual void endOfSync();
00055     virtual void finishSync();
00056     virtual int openConduit();
00057     virtual int getNextDatabase(int index,struct DBInfo *);
00058     virtual int findDatabase(const char *name, struct DBInfo*,
00059         int index=0, unsigned long type=0, unsigned long creator=0);
00060     virtual bool retrieveDatabase(const QString &path, struct DBInfo *db);
00061     virtual DBInfoList getDBList(int cardno=0, int flags=dlpDBListRAM);
00062     virtual PilotDatabase *database( const QString &name );
00063 
00064 public slots:
00065     void ready();
00066 
00067 protected:
00068     virtual bool installFile(const QString &, const bool deleteFile);
00069     virtual void addSyncLogEntryImpl( const QString &s );
00070     virtual int pilotSocket() const { return -1; } ;
00071 
00072 protected:
00073     bool fReady;
00074     QString fPath;
00075 
00076     class Private;
00077     Private *d;
00078 
00079     unsigned int findAvailableDatabases( Private &, const QString &path );
00080 } ;
00081 
00082 
00083 #endif
00084 
KDE Home | KDE Accessibility Home | Description of Access Keys