kitchensync
configguisyncmlobex.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef CONFIGGUISYNCMLOBEX_H
00023 #define CONFIGGUISYNCMLOBEX_H
00024
00025 #include <qdom.h>
00026
00027 #include "configgui.h"
00028 #include "connectionwidgets.h"
00029
00030 class QCheckBox;
00031 class QComboBox;
00032 class QGridLayout;
00033 class QSpinBox;
00034 class KComboBox;
00035 class KLineEdit;
00036 class KURLRequester;
00037
00038 class ConfigGuiSyncmlObex : public ConfigGui
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 ConfigGuiSyncmlObex( const QSync::Member &, QWidget *parent = 0 );
00044
00045 void load( const QString &xml );
00046 QString save() const;
00047
00048 public slots:
00049 void slotConnectionChanged( int pos );
00050
00051 private:
00052
00053 typedef QPair<int, QString> ConnectionType;
00054 typedef QValueList<ConnectionType> ConnectionTypeList;
00055 ConnectionTypeList mConnectionTypes;
00056
00057 QComboBox *mConnection;
00058 BluetoothWidget *mBluetooth;
00059 UsbWidget *mUsb;
00060
00061
00062 typedef QPair<int, QString> SyncmlVersion;
00063 typedef QValueList<SyncmlVersion> SyncmlVersionList;
00064 SyncmlVersionList mSyncmlVersions;
00065
00066 QStringList mIdentiferList;
00067 KLineEdit *mUsername;
00068 KLineEdit *mPassword;
00069 QCheckBox *mUseStringTable;
00070 QCheckBox *mOnlyReplace;
00071 QSpinBox *mRecvLimit;
00072 QSpinBox *mMaxObjSize;
00073 QComboBox *mSyncmlVersion;
00074 KComboBox *mIdentifier;
00075 QCheckBox *mWbxml;
00076
00077 QGridLayout *mGridLayout;
00078
00079 KComboBox *mContactDb;
00080 KComboBox *mCalendarDb;
00081 KComboBox *mNoteDb;
00082
00083 protected slots:
00084 void addLineEdit( QWidget *parent, const QString &text, KComboBox **edit, int row );
00085 };
00086
00087 #endif
|