kitchensync

qtopiakonnector.h

00001 /*
00002     This file is part of KitchenSync.
00003 
00004     Copyright (c) 2002,2003 Holger Freyther <freyther@kde.org>
00005     Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020     Boston, MA 02110-1301, USA.
00021 */
00022 #ifndef KSYNC_QTOPIAKONNECTOR_H
00023 #define KSYNC_QTOPIAKONNECTOR_H
00024 
00025 #include <qiconset.h>
00026 #include <qptrlist.h>
00027 
00028 #include <konnector.h>
00029 
00030 namespace KSync {
00031 
00032 class QtopiaKonnector : public Konnector
00033 {
00034     Q_OBJECT
00035   public:
00036     QtopiaKonnector( const KConfig * );
00037     ~QtopiaKonnector();
00038 
00039     void writeConfig( KConfig *cfg );
00040 
00041     SynceeList syncees();
00042 
00043     bool readSyncees();
00044     bool writeSyncees();
00045 
00046     bool connectDevice();
00047     bool disconnectDevice();
00048 
00049     KonnectorInfo info() const;
00050     virtual QStringList supportedFilterTypes() const;
00051 
00052     void setDestinationIP( const QString &IP ) { mDestinationIP = IP; }
00053     QString destinationIP() const { return mDestinationIP; }
00054 
00055     void setUserName( const QString &name ) { mUserName = name; }
00056     QString userName() const { return mUserName; }
00057 
00058     void setPassword( const QString &password ) { mPassword = password; }
00059     QString password() const { return mPassword; }
00060 
00061     void setModel( const QString &model ) { mModel = model; }
00062     QString model() const { return mModel; }
00063 
00064     void setModelName( const QString &name ) { mModelName = name; }
00065     QString modelName() const { return mModelName; }
00066 
00067     void appendSyncee( KSync::Syncee * );
00068 
00069   protected:
00070     QIconSet iconSet() const;
00071     QString iconName() const;
00072 
00073   private slots:
00074     void slotSync( SynceeList );
00075 
00076   private:
00077     QString mDestinationIP;
00078     QString mUserName;
00079     QString mPassword;
00080     QString mModel;
00081     QString mModelName;
00082 
00083     SynceeList mSynceeList;
00084 
00085     /* for compiling purposes */
00086     class Private;
00087     Private *d;
00088 };
00089 
00090 }
00091 
00092 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys