kitchensync

configguisyncmlobex.h
1 /*
2  This file is part of KitchenSync.
3 
4  Copyright (c) 2005 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (c) 2006 Daniel Gollub <dgollub@suse.de>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
20  USA.
21 */
22 #ifndef CONFIGGUISYNCMLOBEX_H
23 #define CONFIGGUISYNCMLOBEX_H
24 
25 #include <tqdom.h>
26 
27 #include "configgui.h"
28 #include "connectionwidgets.h"
29 
30 class TQCheckBox;
31 class TQComboBox;
32 class TQGridLayout;
33 class TQSpinBox;
34 class KComboBox;
35 class KLineEdit;
36 class KURLRequester;
37 
38 class ConfigGuiSyncmlObex : public ConfigGui
39 {
40  Q_OBJECT
41 
42 
43  public:
44  ConfigGuiSyncmlObex( const QSync::Member &, TQWidget *parent = 0 );
45 
46  void load( const TQString &xml );
47  TQString save() const;
48 
49  public slots:
50  void slotConnectionChanged( int pos );
51 
52  private:
53  // Connection
54  typedef TQPair<int, TQString> ConnectionType;
55  typedef TQValueList<ConnectionType> ConnectionTypeList;
56  ConnectionTypeList mConnectionTypes;
57 
58  TQComboBox *mConnection;
59  BluetoothWidget *mBluetooth;
60  UsbWidget *mUsb;
61 
62  // Options
63  typedef TQPair<int, TQString> SyncmlVersion;
64  typedef TQValueList<SyncmlVersion> SyncmlVersionList;
65  SyncmlVersionList mSyncmlVersions;
66 
67  TQStringList mIdentiferList;
68  KLineEdit *mUsername;
69  KLineEdit *mPassword;
70  TQCheckBox *mUseStringTable;
71  TQCheckBox *mOnlyReplace;
72  TQSpinBox *mRecvLimit;
73  TQSpinBox *mMaxObjSize;
74  TQComboBox *mSyncmlVersion;
75  KComboBox *mIdentifier;
76  TQCheckBox *mWbxml;
77 
78  TQGridLayout *mGridLayout;
79 
80  KComboBox *mContactDb;
81  KComboBox *mCalendarDb;
82  KComboBox *mNoteDb;
83 
84  protected slots:
85  void addLineEdit( TQWidget *parent, const TQString &text, KComboBox **edit, int row );
86 };
87 
88 #endif