kpilotConfigDialog.h
00001 #ifndef _KPILOT_KPILOTCONFIGDIALOG_H 00002 #define _KPILOT_KPILOTCONFIGDIALOG_H 00003 /* kpilotConfigDialog.h KPilot 00004 ** 00005 ** Copyright (C) 2001 by Dan Pilone 00006 ** 00007 ** This file defines a specialization of KPilotDeviceLink 00008 ** that can actually handle some HotSync tasks, like backup 00009 ** and restore. It does NOT do conduit stuff. 00010 */ 00011 00012 /* 00013 ** This program is free software; you can redistribute it and/or modify 00014 ** it under the terms of the GNU General Public License as published by 00015 ** the Free Software Foundation; either version 2 of the License, or 00016 ** (at your option) any later version. 00017 ** 00018 ** This program is distributed in the hope that it will be useful, 00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 ** GNU General Public License for more details. 00022 ** 00023 ** You should have received a copy of the GNU General Public License 00024 ** along with this program in a file called COPYING; if not, write to 00025 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00026 ** MA 02111-1307, USA. 00027 */ 00028 00029 /* 00030 ** Bug reports and questions can be sent to kde-pim@kde.org 00031 */ 00032 00033 #include "uiDialog.h" 00034 00035 class KPilotConfigWidget; 00036 00037 class KPilotConfigDialog : public UIDialog 00038 { 00039 Q_OBJECT 00040 public: 00041 KPilotConfigDialog(QWidget *,const char *,bool); 00042 virtual ~KPilotConfigDialog(); 00043 00044 protected: 00045 virtual bool validate(); 00046 virtual void commitChanges(); 00047 00048 protected slots: 00049 void changePortType(int); 00050 00051 private: 00052 KPilotConfigWidget *fConfigWidget; 00053 00054 void readConfig(); 00055 void disableUnusedOptions(); 00056 int getAddressDisplay() const; 00057 void setAddressDisplay(int); 00058 } ; 00059 00060 #endif