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 <qvaluelist.h>
00028 #include <qpair.h>
00029 
00030 class QLabel;
00031 class QLineEdit;
00032 class QComboBox;
00033 
00034 class ConfigGuiGnokii : public ConfigGui
00035 {
00036   Q_OBJECT
00037 
00038   public:
00039     ConfigGuiGnokii( const QSync::Member &, QWidget *parent );
00040 
00041     void load( const QString &xml );
00042     QString save() const;
00043 
00044   private:
00045     QComboBox *mConnection;
00046     KComboBox *mPort;
00047     QLabel    *mPortLabel;
00048     KComboBox *mModel;
00049 
00050     BluetoothWidget *mBluetooth;
00051 
00052     typedef QPair<QString, QString> ConnectionType;
00053     typedef QValueList<ConnectionType> ConnectionTypeList;
00054     ConnectionTypeList mConnectionTypes;
00055 
00056    protected slots:
00057      void slotConnectionChanged( int nth );
00058      void slotModelChanged();
00059     
00060 };
00061 
00062 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys