kitchensync

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   public:
00043     ConfigGuiSyncmlObex( const QSync::Member &, TQWidget *parent = 0 );
00044 
00045     void load( const TQString &xml );
00046     TQString save() const;
00047 
00048   public slots:
00049      void slotConnectionChanged( int pos );
00050 
00051   private:
00052     // Connection
00053     typedef QPair<int, TQString> ConnectionType;
00054     typedef TQValueList<ConnectionType> ConnectionTypeList;
00055     ConnectionTypeList mConnectionTypes;
00056 
00057     TQComboBox *mConnection;
00058     BluetoothWidget *mBluetooth;
00059     UsbWidget *mUsb;
00060 
00061     // Options
00062     typedef QPair<int, TQString> SyncmlVersion;
00063     typedef TQValueList<SyncmlVersion> SyncmlVersionList;
00064     SyncmlVersionList mSyncmlVersions;
00065 
00066     TQStringList mIdentiferList;
00067     KLineEdit *mUsername;
00068     KLineEdit *mPassword;
00069     TQCheckBox *mUseStringTable;
00070     TQCheckBox *mOnlyReplace;
00071     TQSpinBox *mRecvLimit;
00072     TQSpinBox *mMaxObjSize;
00073     TQComboBox *mSyncmlVersion;
00074     KComboBox *mIdentifier;
00075     TQCheckBox *mWbxml;
00076 
00077     TQGridLayout *mGridLayout;
00078 
00079     KComboBox *mContactDb;
00080     KComboBox *mCalendarDb;
00081     KComboBox *mNoteDb;
00082 
00083   protected slots:
00084     void addLineEdit( TQWidget *parent, const TQString &text, KComboBox **edit, int row );
00085 };
00086 
00087 #endif