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 3060e78..d4e1559 100644 --- a/libkdepim/ksyncprefsdialog.h +++ b/libkdepim/ksyncprefsdialog.h | |||
@@ -1,128 +1,129 @@ | |||
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 chooseFileAB(); |
73 | void slotOK(); | 73 | void slotOK(); |
74 | void helpDevice(); | 74 | void helpDevice(); |
75 | void helpModel(); | 75 | void helpModel(); |
76 | void helpConnection(); | 76 | void helpConnection(); |
77 | 77 | ||
78 | protected: | 78 | protected: |
79 | void usrWriteConfig(); | 79 | void usrWriteConfig(); |
80 | 80 | ||
81 | void setupSyncAlgTab(); | 81 | void setupSyncAlgTab(); |
82 | 82 | ||
83 | private: | 83 | private: |
84 | int currentSelection; | 84 | int currentSelection; |
85 | QPtrList<KSyncProfile> mSyncProfiles; | 85 | QPtrList<KSyncProfile> mSyncProfiles; |
86 | QStringList mSyncProfileNames; | 86 | QStringList mSyncProfileNames; |
87 | QLineEdit * mMyMachineName; | 87 | QLineEdit * mMyMachineName; |
88 | QComboBox * mProfileBox; | 88 | QComboBox * mProfileBox; |
89 | QRadioButton* mIsLocal; | 89 | QRadioButton* mIsLocal; |
90 | QRadioButton* mIsNotLocal; | 90 | QRadioButton* mIsNotLocal; |
91 | QRadioButton* mIsPhone; | 91 | QRadioButton* mIsPhone; |
92 | QCheckBox* mIncludeInRing; | 92 | QCheckBox* mIncludeInRing; |
93 | QCheckBox* mIncludeInRingAB; | 93 | QCheckBox* mIncludeInRingAB; |
94 | void addProfile ( KSyncProfile* ); | 94 | void addProfile ( KSyncProfile* ); |
95 | void insertProfiles(); | 95 | void insertProfiles(); |
96 | void saveProfile(); | 96 | void saveProfile(); |
97 | QButtonGroup* proGr; | 97 | QButtonGroup* proGr; |
98 | 98 | ||
99 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; | 99 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; |
100 | 100 | ||
101 | 101 | ||
102 | QLineEdit * mRemotePostcommand; | 102 | QLineEdit * mRemotePostcommand; |
103 | QLineEdit * mRemotePrecommand; | 103 | QLineEdit * mRemotePrecommand; |
104 | QLineEdit * mRemoteFile; | 104 | QLineEdit * mRemoteFile; |
105 | QLineEdit * mLocalTempFile; | 105 | QLineEdit * mLocalTempFile; |
106 | 106 | ||
107 | QLineEdit * mRemotePostcommandAB; | 107 | QLineEdit * mRemotePostcommandAB; |
108 | QLineEdit * mRemotePrecommandAB; | 108 | QLineEdit * mRemotePrecommandAB; |
109 | QLineEdit * mRemoteFileAB; | 109 | QLineEdit * mRemoteFileAB; |
110 | QLineEdit * mLocalTempFileAB; | 110 | QLineEdit * mLocalTempFileAB; |
111 | 111 | ||
112 | QLineEdit * mPhoneDevice; | 112 | QLineEdit * mPhoneDevice; |
113 | QLineEdit * mPhoneConnection; | 113 | QLineEdit * mPhoneConnection; |
114 | QLineEdit * mPhoneModel; | 114 | QLineEdit * mPhoneModel; |
115 | 115 | ||
116 | QWidget* mSetupSyncAlgTab; | 116 | QWidget* mSetupSyncAlgTab; |
117 | QVBox* localFileWidget; | 117 | QVBox* localFileWidget; |
118 | QVBox* remoteFileWidget; | 118 | QVBox* remoteFileWidget; |
119 | QVBox* phoneWidget; | 119 | QVBox* phoneWidget; |
120 | QCheckBox* mWriteBackFile; | 120 | QCheckBox* mWriteBackFile; |
121 | QCheckBox* mWriteBackFuture; | 121 | QCheckBox* mWriteBackFuture; |
122 | QSpinBox* mWriteBackFutureWeeks; | 122 | QSpinBox* mWriteBackFutureWeeks; |
123 | QCheckBox* mWriteBackExisting; | 123 | QCheckBox* mWriteBackExisting; |
124 | QCheckBox* mAskForPreferences; | 124 | QCheckBox* mAskForPreferences; |
125 | QCheckBox* mShowSummaryAfterSync; | 125 | QCheckBox* mShowSummaryAfterSync; |
126 | QCheckBox* mWriteContactToSIM; | ||
126 | }; | 127 | }; |
127 | 128 | ||
128 | #endif | 129 | #endif |