configguisyncmlobex.h
00001 /* 00002 This file is part of KitchenSync. 00003 00004 Copyright (c) 2005 Cornelius Schumacher <schumacher@kde.org> 00005 Copyright (c) 2006 Daniel Gollub <dgollub@suse.de> 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program 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 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00020 USA. 00021 */ 00022 #ifndef CONFIGGUISYNCMLOBEX_H 00023 #define CONFIGGUISYNCMLOBEX_H 00024 00025 #include <tqdom.h> 00026 00027 #include "configgui.h" 00028 #include "connectionwidgets.h" 00029 00030 class TQCheckBox; 00031 class TQComboBox; 00032 class TQGridLayout; 00033 class TQSpinBox; 00034 class KComboBox; 00035 class KLineEdit; 00036 class KURLRequester; 00037 00038 class ConfigGuiSyncmlObex : public ConfigGui 00039 { 00040 Q_OBJECT 00041 00042 00043 public: 00044 ConfigGuiSyncmlObex( const QSync::Member &, TQWidget *parent = 0 ); 00045 00046 void load( const TQString &xml ); 00047 TQString save() const; 00048 00049 public slots: 00050 void slotConnectionChanged( int pos ); 00051 00052 private: 00053 // Connection 00054 typedef TQPair<int, TQString> ConnectionType; 00055 typedef TQValueList<ConnectionType> ConnectionTypeList; 00056 ConnectionTypeList mConnectionTypes; 00057 00058 TQComboBox *mConnection; 00059 BluetoothWidget *mBluetooth; 00060 UsbWidget *mUsb; 00061 00062 // Options 00063 typedef TQPair<int, TQString> SyncmlVersion; 00064 typedef TQValueList<SyncmlVersion> SyncmlVersionList; 00065 SyncmlVersionList mSyncmlVersions; 00066 00067 TQStringList mIdentiferList; 00068 KLineEdit *mUsername; 00069 KLineEdit *mPassword; 00070 TQCheckBox *mUseStringTable; 00071 TQCheckBox *mOnlyReplace; 00072 TQSpinBox *mRecvLimit; 00073 TQSpinBox *mMaxObjSize; 00074 TQComboBox *mSyncmlVersion; 00075 KComboBox *mIdentifier; 00076 TQCheckBox *mWbxml; 00077 00078 TQGridLayout *mGridLayout; 00079 00080 KComboBox *mContactDb; 00081 KComboBox *mCalendarDb; 00082 KComboBox *mNoteDb; 00083 00084 protected slots: 00085 void addLineEdit( TQWidget *parent, const TQString &text, KComboBox **edit, int row ); 00086 }; 00087 00088 #endif