author | ulf69 <ulf69> | 2004-08-02 18:35:42 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-02 18:35:42 (UTC) |
commit | 3379a4f0774ae37f3e53e31f2aece6caa1bdf8f9 (patch) (unidiff) | |
tree | b1ebd91a338ca69c45f9b5a5aa530989181b16f8 /kabc/syncprefwidget.h | |
parent | 3253686ca101ab27c92fa7a0d372be2d0e07003a (diff) | |
download | kdepimpi-3379a4f0774ae37f3e53e31f2aece6caa1bdf8f9.zip kdepimpi-3379a4f0774ae37f3e53e31f2aece6caa1bdf8f9.tar.gz kdepimpi-3379a4f0774ae37f3e53e31f2aece6caa1bdf8f9.tar.bz2 |
a syncwidget, based on zautrix kopi sync-widget that scan be used from inside the "configure resource" dialog.
-rw-r--r-- | kabc/syncprefwidget.h | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/kabc/syncprefwidget.h b/kabc/syncprefwidget.h new file mode 100644 index 0000000..3709d78 --- a/dev/null +++ b/kabc/syncprefwidget.h | |||
@@ -0,0 +1,121 @@ | |||
1 | /* | ||
2 | This file is part of KABC/Pi. | ||
3 | Copyright (c) 2004 Ulf Schenk | ||
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 | |||
24 | /* | ||
25 | $Id$ | ||
26 | */ | ||
27 | |||
28 | #ifndef _SYNCPREFWIDGET_H | ||
29 | #define _SYNCPREFWIDGET_H | ||
30 | |||
31 | #include <kresources/syncwidget.h> | ||
32 | |||
33 | /*US | ||
34 | //#include <qframe.h> | ||
35 | //#include <qdict.h> | ||
36 | #include <qvbox.h> | ||
37 | #include <qhbox.h> | ||
38 | //#include <qcolor.h> | ||
39 | //#include <qlistview.h> | ||
40 | |||
41 | #include <kdialogbase.h> | ||
42 | |||
43 | #include <libkdepim/kprefsdialog.h> | ||
44 | */ | ||
45 | |||
46 | //US class KColorButton; | ||
47 | //US class QSpinBox;; | ||
48 | class QRadioButton; | ||
49 | class QCheckBox; | ||
50 | class QVBox; | ||
51 | //US class QSlider; | ||
52 | //US class KURLRequester; | ||
53 | //US class QComboBox; | ||
54 | class QLineEdit; | ||
55 | //US class QStringList; | ||
56 | //US class KSyncProfile; | ||
57 | |||
58 | |||
59 | /** Dialog to change the korganizer configuration. | ||
60 | */ | ||
61 | class SyncPrefWidget : public KRES::SyncWidget | ||
62 | { | ||
63 | Q_OBJECT | ||
64 | public: | ||
65 | SyncPrefWidget(QWidget *parent=0); | ||
66 | ~SyncPrefWidget(); | ||
67 | //US void usrReadConfig(); | ||
68 | |||
69 | public slots: | ||
70 | protected slots: | ||
71 | //US void accept(); | ||
72 | //US void deleteProfile(); | ||
73 | //US void newProfile(); | ||
74 | //US void cloneProfile(); | ||
75 | //US void kindChanged(bool); | ||
76 | //US void fillSSH(); | ||
77 | //US void fillFTP(); | ||
78 | //US void textChanged( const QString & ); | ||
79 | //US void profileChanged( int ); | ||
80 | //US void chooseFile(); | ||
81 | //US void slotOK(); | ||
82 | |||
83 | protected: | ||
84 | //US void usrWriteConfig(); | ||
85 | |||
86 | void init(); | ||
87 | |||
88 | private: | ||
89 | |||
90 | |||
91 | //US int currentSelection; | ||
92 | //US QPtrList<KSyncProfile> mSyncProfiles; | ||
93 | //US QStringList mSyncProfileNames; | ||
94 | //US QLineEdit * mMyMachineName; | ||
95 | //US QComboBox * mProfileBox; | ||
96 | //US QRadioButton* mIsLocal; | ||
97 | QCheckBox* mIsNotLocal; | ||
98 | QCheckBox* mIncludeInRing; | ||
99 | //US void addProfile ( KSyncProfile* ); | ||
100 | //US void insertProfiles(); | ||
101 | //US void saveProfile(); | ||
102 | //US QButtonGroup* proGr; | ||
103 | |||
104 | QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; | ||
105 | |||
106 | |||
107 | QLineEdit * mRemotePostcommand; | ||
108 | QLineEdit * mRemotePrecommand; | ||
109 | QLineEdit * mRemoteFile; | ||
110 | QLineEdit * mLocalTempFile; | ||
111 | //US QWidget* mSetupSyncAlgTab; | ||
112 | |||
113 | //US QVBox* localFileWidget; | ||
114 | QVBox* remoteFileWidget; | ||
115 | QCheckBox* mWriteBackFile; | ||
116 | QCheckBox* mWriteBackExisting; | ||
117 | QCheckBox* mAskForPreferences; | ||
118 | QCheckBox* mShowSummaryAfterSync; | ||
119 | }; | ||
120 | |||
121 | #endif | ||