kitchensync

configguignokii.h

00001 /*
00002     This file is part of KitchenSync.
00003 
00004     Copyright (c) 2006 David Förster <david@dfoerster.de>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
00019     USA.
00020 */
00021 #ifndef CONFIGGUIGNOKII_H
00022 #define CONFIGGUIGNOKII_H
00023 
00024 #include "configgui.h"
00025 #include "connectionwidgets.h"
00026 
00027 #include <tqvaluelist.h>
00028 #include <tqpair.h>
00029 
00030 class TQLabel;
00031 class TQLineEdit;
00032 class TQComboBox;
00033 
00034 class ConfigGuiGnokii : public ConfigGui
00035 {
00036   Q_OBJECT
00037   TQ_OBJECT
00038 
00039   public:
00040     ConfigGuiGnokii( const QSync::Member &, TQWidget *parent );
00041 
00042     void load( const TQString &xml );
00043     TQString save() const;
00044 
00045   private:
00046     TQComboBox *mConnection;
00047     KComboBox *mPort;
00048     TQLabel    *mPortLabel;
00049     KComboBox *mModel;
00050 
00051     BluetoothWidget *mBluetooth;
00052 
00053     typedef TQPair<TQString, TQString> ConnectionType;
00054     typedef TQValueList<ConnectionType> ConnectionTypeList;
00055     ConnectionTypeList mConnectionTypes;
00056 
00057    protected slots:
00058      void slotConnectionChanged( int nth );
00059      void slotModelChanged();
00060     
00061 };
00062 
00063 #endif