Diffstat (limited to 'libkdepim/ksyncprefsdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/ksyncprefsdialog.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkdepim/ksyncprefsdialog.h b/libkdepim/ksyncprefsdialog.h index e8a9709..d8c02de 100644 --- a/libkdepim/ksyncprefsdialog.h +++ b/libkdepim/ksyncprefsdialog.h | |||
@@ -1,170 +1,171 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef _KSYNCPREFSDIALOG_H | 23 | #ifndef _KSYNCPREFSDIALOG_H |
24 | #define _KSYNCPREFSDIALOG_H | 24 | #define _KSYNCPREFSDIALOG_H |
25 | 25 | ||
26 | 26 | ||
27 | #include <kdialogbase.h> | 27 | #include <kdialogbase.h> |
28 | #include <qptrlist.h> | 28 | #include <qptrlist.h> |
29 | #include <qtable.h> | 29 | #include <qtable.h> |
30 | #include <qhbox.h> | 30 | #include <qhbox.h> |
31 | 31 | ||
32 | //#include <libkdepim/kprefsdialog.h> | 32 | //#include <libkdepim/kprefsdialog.h> |
33 | 33 | ||
34 | class KColorButton; | 34 | class KColorButton; |
35 | class QSpinBox;; | 35 | class QSpinBox;; |
36 | class QRadioButton; | 36 | class QRadioButton; |
37 | class QCheckBox; | 37 | class QCheckBox; |
38 | class QSlider; | 38 | class QSlider; |
39 | class KURLRequester; | 39 | class KURLRequester; |
40 | class QComboBox; | 40 | class QComboBox; |
41 | class QButtonGroup; | 41 | class QButtonGroup; |
42 | class QLineEdit; | 42 | class QLineEdit; |
43 | class QVBox; | 43 | class QVBox; |
44 | class QStringList; | 44 | class QStringList; |
45 | class KSyncProfile; | 45 | class KSyncProfile; |
46 | 46 | ||
47 | /** Dialog to change the korganizer configuration. | 47 | /** Dialog to change the korganizer configuration. |
48 | */ | 48 | */ |
49 | class KSyncPrefsDialog : public KDialog | 49 | class KSyncPrefsDialog : public KDialog |
50 | { | 50 | { |
51 | Q_OBJECT | 51 | Q_OBJECT |
52 | public: | 52 | public: |
53 | /** Initialize dialog and pages */ | 53 | /** Initialize dialog and pages */ |
54 | KSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); | 54 | KSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); |
55 | ~KSyncPrefsDialog(); | 55 | ~KSyncPrefsDialog(); |
56 | void usrReadConfig(); | 56 | void usrReadConfig(); |
57 | void setLocalMachineName ( const QString& name ); | 57 | void setLocalMachineName ( const QString& name ); |
58 | QString getLocalMachineName ( ); | 58 | QString getLocalMachineName ( ); |
59 | 59 | ||
60 | QStringList getSyncProfileNames(); | 60 | QStringList getSyncProfileNames(); |
61 | 61 | ||
62 | public slots: | 62 | public slots: |
63 | protected slots: | 63 | protected slots: |
64 | void accept(); | 64 | void accept(); |
65 | void deleteProfile(); | 65 | void deleteProfile(); |
66 | void newProfile(); | 66 | void newProfile(); |
67 | void cloneProfile(); | 67 | void cloneProfile(); |
68 | void kindChanged(bool); | 68 | void kindChanged(bool); |
69 | void fillSSH(); | 69 | void fillSSH(); |
70 | void fillFTP(); | 70 | void fillFTP(); |
71 | void textChanged( const QString & ); | 71 | void textChanged( const QString & ); |
72 | void profileChanged( int ); | 72 | void profileChanged( int ); |
73 | void chooseFile(); | 73 | void chooseFile(); |
74 | void chooseFileAB(); | 74 | void chooseFileAB(); |
75 | void chooseFilePWM(); | 75 | void chooseFilePWM(); |
76 | void slotOK(); | 76 | void slotOK(); |
77 | void helpDevice(); | 77 | void helpDevice(); |
78 | void helpModel(); | 78 | void helpModel(); |
79 | void helpConnection(); | 79 | void helpConnection(); |
80 | 80 | ||
81 | protected: | 81 | protected: |
82 | void usrWriteConfig(); | 82 | void usrWriteConfig(); |
83 | void setupSyncAlgTab(); | 83 | void setupSyncAlgTab(); |
84 | void readFilter(); | 84 | void readFilter(); |
85 | void readResources(); | 85 | void readResources(); |
86 | private: | 86 | private: |
87 | void updateMyCaption(); | ||
87 | int currentSelection; | 88 | int currentSelection; |
88 | QPtrList<KSyncProfile> mSyncProfiles; | 89 | QPtrList<KSyncProfile> mSyncProfiles; |
89 | QStringList mSyncProfileNames; | 90 | QStringList mSyncProfileNames; |
90 | QStringList mFilterKapi; | 91 | QStringList mFilterKapi; |
91 | QStringList mFilterKopi; | 92 | QStringList mFilterKopi; |
92 | QStringList mResourcesKopi; | 93 | QStringList mResourcesKopi; |
93 | QStringList mResourcesKapi; | 94 | QStringList mResourcesKapi; |
94 | QLineEdit * mMyMachineName; | 95 | QLineEdit * mMyMachineName; |
95 | QComboBox * mProfileBox; | 96 | QComboBox * mProfileBox; |
96 | QRadioButton* mIsLocal; | 97 | QRadioButton* mIsLocal; |
97 | QRadioButton* mIsNotLocal; | 98 | QRadioButton* mIsNotLocal; |
98 | QRadioButton* mIsPhone; | 99 | QRadioButton* mIsPhone; |
99 | QRadioButton* mIsPi; | 100 | QRadioButton* mIsPi; |
100 | QRadioButton* mIsPiSpecific; | 101 | QRadioButton* mIsPiSpecific; |
101 | QCheckBox* mIncludeInRing; | 102 | QCheckBox* mIncludeInRing; |
102 | QCheckBox* mIncludeInRingAB; | 103 | QCheckBox* mIncludeInRingAB; |
103 | QCheckBox* mIncludeInRingPWM; | 104 | QCheckBox* mIncludeInRingPWM; |
104 | void addProfile ( KSyncProfile* ); | 105 | void addProfile ( KSyncProfile* ); |
105 | void insertProfiles(); | 106 | void insertProfiles(); |
106 | void saveProfile(); | 107 | void saveProfile(); |
107 | QButtonGroup* proGr; | 108 | QButtonGroup* proGr; |
108 | QHBox * mTableBox; | 109 | QHBox * mTableBox; |
109 | QTable* mResTableKopi; | 110 | QTable* mResTableKopi; |
110 | QTable* mResTableKapi; | 111 | QTable* mResTableKapi; |
111 | QTable* mResTablePwmpi; | 112 | QTable* mResTablePwmpi; |
112 | 113 | ||
113 | QComboBox * mFilterOutCal; | 114 | QComboBox * mFilterOutCal; |
114 | QComboBox * mFilterInCal; | 115 | QComboBox * mFilterInCal; |
115 | QComboBox * mFilterOutAB; | 116 | QComboBox * mFilterOutAB; |
116 | QComboBox * mFilterInAB; | 117 | QComboBox * mFilterInAB; |
117 | 118 | ||
118 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; | 119 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; |
119 | 120 | ||
120 | 121 | ||
121 | QLineEdit * mRemotePostcommand; | 122 | QLineEdit * mRemotePostcommand; |
122 | QLineEdit * mRemotePrecommand; | 123 | QLineEdit * mRemotePrecommand; |
123 | QLineEdit * mRemoteFile; | 124 | QLineEdit * mRemoteFile; |
124 | QLineEdit * mLocalTempFile; | 125 | QLineEdit * mLocalTempFile; |
125 | 126 | ||
126 | QLineEdit * mRemotePostcommandAB; | 127 | QLineEdit * mRemotePostcommandAB; |
127 | QLineEdit * mRemotePrecommandAB; | 128 | QLineEdit * mRemotePrecommandAB; |
128 | QLineEdit * mRemoteFileAB; | 129 | QLineEdit * mRemoteFileAB; |
129 | QLineEdit * mLocalTempFileAB; | 130 | QLineEdit * mLocalTempFileAB; |
130 | 131 | ||
131 | QLineEdit * mRemotePostcommandPWM; | 132 | QLineEdit * mRemotePostcommandPWM; |
132 | QLineEdit * mRemotePrecommandPWM; | 133 | QLineEdit * mRemotePrecommandPWM; |
133 | QLineEdit * mRemoteFilePWM; | 134 | QLineEdit * mRemoteFilePWM; |
134 | QLineEdit * mLocalTempFilePWM; | 135 | QLineEdit * mLocalTempFilePWM; |
135 | 136 | ||
136 | 137 | ||
137 | QLineEdit * mRemotePw; | 138 | QLineEdit * mRemotePw; |
138 | QLineEdit * mRemoteIP; | 139 | QLineEdit * mRemoteIP; |
139 | QLineEdit * mRemotePort; | 140 | QLineEdit * mRemotePort; |
140 | 141 | ||
141 | QLineEdit * mRemotePwAB; | 142 | QLineEdit * mRemotePwAB; |
142 | QLineEdit * mRemoteIPAB; | 143 | QLineEdit * mRemoteIPAB; |
143 | QLineEdit * mRemotePortAB; | 144 | QLineEdit * mRemotePortAB; |
144 | 145 | ||
145 | QLineEdit * mRemotePwPWM; | 146 | QLineEdit * mRemotePwPWM; |
146 | QLineEdit * mRemoteIPPWM; | 147 | QLineEdit * mRemoteIPPWM; |
147 | QLineEdit * mRemotePortPWM; | 148 | QLineEdit * mRemotePortPWM; |
148 | 149 | ||
149 | QLineEdit * mPhoneDevice; | 150 | QLineEdit * mPhoneDevice; |
150 | QLineEdit * mPhoneConnection; | 151 | QLineEdit * mPhoneConnection; |
151 | QLineEdit * mPhoneModel; | 152 | QLineEdit * mPhoneModel; |
152 | 153 | ||
153 | QWidget* mSetupSyncAlgTab; | 154 | QWidget* mSetupSyncAlgTab; |
154 | QVBox* localFileWidget; | 155 | QVBox* localFileWidget; |
155 | QVBox* remoteFileWidget; | 156 | QVBox* remoteFileWidget; |
156 | QVBox* phoneWidget; | 157 | QVBox* phoneWidget; |
157 | QVBox* piWidget; | 158 | QVBox* piWidget; |
158 | QCheckBox* mWriteBackFile; | 159 | QCheckBox* mWriteBackFile; |
159 | QCheckBox* mWriteBackFuture; | 160 | QCheckBox* mWriteBackFuture; |
160 | QSpinBox* mWriteBackFutureWeeks; | 161 | QSpinBox* mWriteBackFutureWeeks; |
161 | QSpinBox* mWriteBackPastWeeks; | 162 | QSpinBox* mWriteBackPastWeeks; |
162 | QCheckBox* mWriteBackExisting; | 163 | QCheckBox* mWriteBackExisting; |
163 | QCheckBox* mAskForPreferences; | 164 | QCheckBox* mAskForPreferences; |
164 | QCheckBox* mShowSummaryAfterSync; | 165 | QCheckBox* mShowSummaryAfterSync; |
165 | QCheckBox* mWriteContactToSIM; | 166 | QCheckBox* mWriteContactToSIM; |
166 | QCheckBox* mIsKapiFileL; | 167 | QCheckBox* mIsKapiFileL; |
167 | QCheckBox* mIsKapiFileR; | 168 | QCheckBox* mIsKapiFileR; |
168 | }; | 169 | }; |
169 | 170 | ||
170 | #endif | 171 | #endif |