kitchensync Library API Documentation

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., 59 Temple Place - Suite 330, 00020 Boston, MA 02111-1307, 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 Kapabilities capabilities(); 00042 00043 SynceeList syncees(); 00044 00045 bool readSyncees(); 00046 bool writeSyncees(); 00047 00048 bool connectDevice(); 00049 bool disconnectDevice(); 00050 00051 KonnectorInfo info() const; 00052 00053 void setDestinationIP( const QString &IP ) { mDestinationIP = IP; } 00054 QString destinationIP() const { return mDestinationIP; } 00055 00056 void setUserName( const QString &name ) { mUserName = name; } 00057 QString userName() const { return mUserName; } 00058 00059 void setPassword( const QString &password ) { mPassword = password; } 00060 QString password() const { return mPassword; } 00061 00062 void setModel( const QString &model ) { mModel = model; } 00063 QString model() const { return mModel; } 00064 00065 void setModelName( const QString &name ) { mModelName = name; } 00066 QString modelName() const { return mModelName; } 00067 00068 protected: 00069 QString metaId() const; 00070 QIconSet iconSet() const; 00071 QString iconName() const; 00072 00073 private slots: 00074 void slotSync( SynceeList ); 00075 void slotError( const Error & ); 00076 void slotProg( const Progress & ); 00077 00078 private: 00079 QString mDestinationIP; 00080 QString mUserName; 00081 QString mPassword; 00082 QString mModel; 00083 QString mModelName; 00084 00085 SynceeList mSynceeList; 00086 00087 /* for compiling purposes */ 00088 class Private; 00089 Private *d; 00090 }; 00091 00092 } 00093 00094 #endif
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:18:59 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003