author | zautrix <zautrix> | 2004-08-01 16:27:04 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 16:27:04 (UTC) |
commit | f968c6f5541463caadee98e200c2ba035fa20959 (patch) (unidiff) | |
tree | e71549b7ba1312a55f0311ed74754943d22af22a /libkdepim/ksyncprefsdialog.h | |
parent | 3a4186926d078692ad3c2261b70406c391f27554 (diff) | |
download | kdepimpi-f968c6f5541463caadee98e200c2ba035fa20959.zip kdepimpi-f968c6f5541463caadee98e200c2ba035fa20959.tar.gz kdepimpi-f968c6f5541463caadee98e200c2ba035fa20959.tar.bz2 |
Extended the sync config dialog
Diffstat (limited to 'libkdepim/ksyncprefsdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/ksyncprefsdialog.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/libkdepim/ksyncprefsdialog.h b/libkdepim/ksyncprefsdialog.h index c663d22..8c2c59c 100644 --- a/libkdepim/ksyncprefsdialog.h +++ b/libkdepim/ksyncprefsdialog.h | |||
@@ -1,111 +1,120 @@ | |||
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 | 29 | ||
30 | //#include <libkdepim/kprefsdialog.h> | 30 | //#include <libkdepim/kprefsdialog.h> |
31 | 31 | ||
32 | class KColorButton; | 32 | class KColorButton; |
33 | class QSpinBox;; | 33 | class QSpinBox;; |
34 | class QRadioButton; | 34 | class QRadioButton; |
35 | class QCheckBox; | 35 | class QCheckBox; |
36 | class QSlider; | 36 | class QSlider; |
37 | class KURLRequester; | 37 | class KURLRequester; |
38 | class QComboBox; | 38 | class QComboBox; |
39 | class QButtonGroup; | 39 | class QButtonGroup; |
40 | class QLineEdit; | 40 | class QLineEdit; |
41 | class QVBox; | 41 | class QVBox; |
42 | class QStringList; | 42 | class QStringList; |
43 | class KSyncProfile; | 43 | class KSyncProfile; |
44 | 44 | ||
45 | /** Dialog to change the korganizer configuration. | 45 | /** Dialog to change the korganizer configuration. |
46 | */ | 46 | */ |
47 | class KSyncPrefsDialog : public KDialog | 47 | class KSyncPrefsDialog : public KDialog |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | public: | 50 | public: |
51 | /** Initialize dialog and pages */ | 51 | /** Initialize dialog and pages */ |
52 | KSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); | 52 | KSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); |
53 | ~KSyncPrefsDialog(); | 53 | ~KSyncPrefsDialog(); |
54 | void usrReadConfig(); | 54 | void usrReadConfig(); |
55 | void setLocalMachineName ( const QString& name ); | 55 | void setLocalMachineName ( const QString& name ); |
56 | QString getLocalMachineName ( ); | 56 | QString getLocalMachineName ( ); |
57 | 57 | ||
58 | QStringList getSyncProfileNames(); | 58 | QStringList getSyncProfileNames(); |
59 | 59 | ||
60 | public slots: | 60 | public slots: |
61 | protected slots: | 61 | protected slots: |
62 | void accept(); | 62 | void accept(); |
63 | void deleteProfile(); | 63 | void deleteProfile(); |
64 | void newProfile(); | 64 | void newProfile(); |
65 | void cloneProfile(); | 65 | void cloneProfile(); |
66 | void kindChanged(bool); | 66 | void kindChanged(bool); |
67 | void fillSSH(); | 67 | void fillSSH(); |
68 | void fillFTP(); | 68 | void fillFTP(); |
69 | void textChanged( const QString & ); | 69 | void textChanged( const QString & ); |
70 | void profileChanged( int ); | 70 | void profileChanged( int ); |
71 | void chooseFile(); | 71 | void chooseFile(); |
72 | void chooseFileAB(); | ||
72 | void slotOK(); | 73 | void slotOK(); |
73 | 74 | ||
74 | protected: | 75 | protected: |
75 | void usrWriteConfig(); | 76 | void usrWriteConfig(); |
76 | 77 | ||
77 | void setupSyncAlgTab(); | 78 | void setupSyncAlgTab(); |
78 | 79 | ||
79 | private: | 80 | private: |
80 | int currentSelection; | 81 | int currentSelection; |
81 | QPtrList<KSyncProfile> mSyncProfiles; | 82 | QPtrList<KSyncProfile> mSyncProfiles; |
82 | QStringList mSyncProfileNames; | 83 | QStringList mSyncProfileNames; |
83 | QLineEdit * mMyMachineName; | 84 | QLineEdit * mMyMachineName; |
84 | QComboBox * mProfileBox; | 85 | QComboBox * mProfileBox; |
85 | QRadioButton* mIsLocal; | 86 | QRadioButton* mIsLocal; |
86 | QRadioButton* mIsNotLocal; | 87 | QRadioButton* mIsNotLocal; |
87 | QCheckBox* mIncludeInRing; | 88 | QCheckBox* mIncludeInRing; |
88 | QCheckBox* mIncludeInRingAB; | 89 | QCheckBox* mIncludeInRingAB; |
89 | void addProfile ( KSyncProfile* ); | 90 | void addProfile ( KSyncProfile* ); |
90 | void insertProfiles(); | 91 | void insertProfiles(); |
91 | void saveProfile(); | 92 | void saveProfile(); |
92 | QButtonGroup* proGr; | 93 | QButtonGroup* proGr; |
93 | 94 | ||
94 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; | 95 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; |
95 | 96 | ||
96 | 97 | ||
97 | QLineEdit * mRemotePostcommand; | 98 | QLineEdit * mRemotePostcommand; |
98 | QLineEdit * mRemotePrecommand; | 99 | QLineEdit * mRemotePrecommand; |
99 | QLineEdit * mRemoteFile; | 100 | QLineEdit * mRemoteFile; |
100 | QLineEdit * mLocalTempFile; | 101 | QLineEdit * mLocalTempFile; |
101 | QWidget* mSetupSyncAlgTab; | ||
102 | 102 | ||
103 | QLineEdit * mRemotePostcommandAB; | ||
104 | QLineEdit * mRemotePrecommandAB; | ||
105 | QLineEdit * mRemoteFileAB; | ||
106 | QLineEdit * mLocalTempFileAB; | ||
107 | |||
108 | |||
109 | QWidget* mSetupSyncAlgTab; | ||
103 | QVBox* localFileWidget; | 110 | QVBox* localFileWidget; |
104 | QVBox* remoteFileWidget; | 111 | QVBox* remoteFileWidget; |
105 | QCheckBox* mWriteBackFile; | 112 | QCheckBox* mWriteBackFile; |
106 | QCheckBox* mWriteBackExisting; | 113 | QCheckBox* mWriteBackFuture; |
107 | QCheckBox* mAskForPreferences; | 114 | QSpinBox* mWriteBackFutureWeeks; |
108 | QCheckBox* mShowSummaryAfterSync; | 115 | QCheckBox* mWriteBackExisting; |
116 | QCheckBox* mAskForPreferences; | ||
117 | QCheckBox* mShowSummaryAfterSync; | ||
109 | }; | 118 | }; |
110 | 119 | ||
111 | #endif | 120 | #endif |