Diffstat (limited to 'korganizer/kosyncprefsdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kosyncprefsdialog.h | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/korganizer/kosyncprefsdialog.h b/korganizer/kosyncprefsdialog.h new file mode 100644 index 0000000..d2d8c6f --- a/dev/null +++ b/korganizer/kosyncprefsdialog.h | |||
@@ -0,0 +1,109 @@ | |||
1 | /* | ||
2 | This file is part of KOrganizer. | ||
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | ||
4 | |||
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 | ||
7 | the Free Software Foundation; either version 2 of the License, or | ||
8 | (at your option) any later version. | ||
9 | |||
10 | This program is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | GNU General Public License for more details. | ||
14 | |||
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 | ||
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
18 | |||
19 | As a special exception, permission is given to link this program | ||
20 | with any edition of Qt, and distribute the resulting executable, | ||
21 | without including the source code for Qt in the source distribution. | ||
22 | */ | ||
23 | #ifndef _KOPREFSDIALOG_H | ||
24 | #define _KOPREFSDIALOG_H | ||
25 | |||
26 | //#include <qframe.h> | ||
27 | //#include <qdict.h> | ||
28 | #include <qvbox.h> | ||
29 | #include <qhbox.h> | ||
30 | //#include <qcolor.h> | ||
31 | //#include <qlistview.h> | ||
32 | |||
33 | #include <kdialogbase.h> | ||
34 | |||
35 | #include <libkdepim/kprefsdialog.h> | ||
36 | |||
37 | class KColorButton; | ||
38 | class QSpinBox;; | ||
39 | class QRadioButton; | ||
40 | class QCheckBox; | ||
41 | class QSlider; | ||
42 | class KURLRequester; | ||
43 | class QComboBox; | ||
44 | class QLineEdit; | ||
45 | class QStringList; | ||
46 | class KSyncProfile; | ||
47 | |||
48 | /** Dialog to change the korganizer configuration. | ||
49 | */ | ||
50 | class KOSyncPrefsDialog : public KDialog | ||
51 | { | ||
52 | Q_OBJECT | ||
53 | public: | ||
54 | /** Initialize dialog and pages */ | ||
55 | KOSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); | ||
56 | ~KOSyncPrefsDialog(); | ||
57 | void usrReadConfig(); | ||
58 | |||
59 | public slots: | ||
60 | protected slots: | ||
61 | void accept(); | ||
62 | void deleteProfile(); | ||
63 | void newProfile(); | ||
64 | void cloneProfile(); | ||
65 | void kindChanged(bool); | ||
66 | void fillSSH(); | ||
67 | void fillFTP(); | ||
68 | void textChanged( const QString & ); | ||
69 | void profileChanged( int ); | ||
70 | void chooseFile(); | ||
71 | void slotOK(); | ||
72 | |||
73 | protected: | ||
74 | void usrWriteConfig(); | ||
75 | |||
76 | void setupSyncAlgTab(); | ||
77 | |||
78 | private: | ||
79 | int currentSelection; | ||
80 | QPtrList<KSyncProfile> mSyncProfiles; | ||
81 | QStringList mSyncProfileNames; | ||
82 | QLineEdit * mMyMachineName; | ||
83 | QComboBox * mProfileBox; | ||
84 | QRadioButton* mIsLocal; | ||
85 | QRadioButton* mIsNotLocal; | ||
86 | QCheckBox* mIncludeInRing; | ||
87 | void addProfile ( KSyncProfile* ); | ||
88 | void insertProfiles(); | ||
89 | void saveProfile(); | ||
90 | QButtonGroup* proGr; | ||
91 | |||
92 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; | ||
93 | |||
94 | |||
95 | QLineEdit * mRemotePostcommand; | ||
96 | QLineEdit * mRemotePrecommand; | ||
97 | QLineEdit * mRemoteFile; | ||
98 | QLineEdit * mLocalTempFile; | ||
99 | QWidget* mSetupSyncAlgTab; | ||
100 | |||
101 | QVBox* localFileWidget; | ||
102 | QVBox* remoteFileWidget; | ||
103 | QCheckBox* mWriteBackFile; | ||
104 | QCheckBox* mWriteBackExisting; | ||
105 | QCheckBox* mAskForPreferences; | ||
106 | QCheckBox* mShowSummaryAfterSync; | ||
107 | }; | ||
108 | |||
109 | #endif | ||