kpilot
kpilotConfigDialog.h
Go to the documentation of this file.00001 #ifndef _KPILOT_KPILOTCONFIGDIALOG_H 00002 #define _KPILOT_KPILOTCONFIGDIALOG_H 00003 /* kpilotConfigDialog.h KPilot 00004 ** 00005 ** Copyright (C) 2001 by Dan Pilone 00006 ** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com> 00007 ** 00008 ** This file defines a specialization of KPilotDeviceLink 00009 ** that can actually handle some HotSync tasks, like backup 00010 ** and restore. It does NOT do conduit stuff. 00011 */ 00012 00013 /* 00014 ** This program is free software; you can redistribute it and/or modify 00015 ** it under the terms of the GNU General Public License as published by 00016 ** the Free Software Foundation; either version 2 of the License, or 00017 ** (at your option) any later version. 00018 ** 00019 ** This program is distributed in the hope that it will be useful, 00020 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 ** GNU General Public License for more details. 00023 ** 00024 ** You should have received a copy of the GNU General Public License 00025 ** along with this program in a file called COPYING; if not, write to 00026 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00027 ** MA 02110-1301, USA. 00028 */ 00029 00030 /* 00031 ** Bug reports and questions can be sent to kde-pim@kde.org 00032 */ 00033 00034 #include "plugin.h" 00035 00036 00037 // class KPilotConfigWidget; 00038 class StartExitConfigWidget; 00039 class SyncConfigWidget; 00040 class DeviceConfigWidget; 00041 class ViewersConfigWidget; 00042 class BackupConfigWidget; 00043 00044 class ConfigPage : public ConduitConfigBase 00045 { 00046 public: 00047 ConfigPage( QWidget *w, const char *n ) : ConduitConfigBase(w,n) { } ; 00048 protected: 00049 // Override base class virtual function. 00050 virtual QString maybeSaveText() const; 00051 } ; 00052 00053 class DeviceConfigPage : public ConfigPage 00054 { 00055 Q_OBJECT 00056 public: 00057 DeviceConfigPage( QWidget *, const char * ); 00058 00059 protected: 00060 virtual bool validate(); 00061 virtual void load(); 00062 virtual void commit(); 00063 00064 protected slots: 00065 void changePortType(int); 00066 00067 private: 00068 DeviceConfigWidget *fConfigWidget; 00069 00070 // Read and write the values of Encoding 00071 // and EncodingDD. 00072 void getEncoding(); 00073 void setEncoding(); 00074 } ; 00075 00076 00077 class KDE_EXPORT SyncConfigPage : public ConfigPage 00078 { 00079 public: 00080 SyncConfigPage( QWidget *, const char * ); 00081 00082 protected: 00083 virtual void load(); 00084 virtual void commit(); 00085 00086 private: 00087 SyncConfigWidget *fConfigWidget; 00088 } ; 00089 00090 class BackupConfigPage : public ConfigPage 00091 { 00092 Q_OBJECT 00093 public: 00094 BackupConfigPage( QWidget *, const char * ); 00095 00096 protected: 00097 virtual void load(); 00098 virtual void commit(); 00099 00100 protected slots: 00101 void slotSelectNoBackupDBs(); 00102 void slotSelectNoRestoreDBs(); 00103 00104 private: 00105 BackupConfigWidget *fConfigWidget; 00106 } ; 00107 00108 class StartExitConfigPage : public ConfigPage 00109 { 00110 public: 00111 StartExitConfigPage( QWidget *, const char * ); 00112 00113 protected: 00114 virtual void load(); 00115 virtual void commit(); 00116 00117 private: 00118 StartExitConfigWidget *fConfigWidget; 00119 } ; 00120 00121 class ViewersConfigPage : public ConfigPage 00122 { 00123 public: 00124 ViewersConfigPage( QWidget *, const char * ); 00125 00126 protected: 00127 virtual void load(); 00128 virtual void commit(); 00129 00130 private: 00131 ViewersConfigWidget *fConfigWidget; 00132 } ; 00133 00134 #endif