summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprefsdialog.h
Unidiff
Diffstat (limited to 'libkdepim/ksyncprefsdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprefsdialog.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libkdepim/ksyncprefsdialog.h b/libkdepim/ksyncprefsdialog.h
index 24543e1..e8a9709 100644
--- a/libkdepim/ksyncprefsdialog.h
+++ b/libkdepim/ksyncprefsdialog.h
@@ -5,48 +5,50 @@
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>
30#include <qhbox.h>
29 31
30//#include <libkdepim/kprefsdialog.h> 32//#include <libkdepim/kprefsdialog.h>
31 33
32class KColorButton; 34class KColorButton;
33class QSpinBox;; 35class QSpinBox;;
34class QRadioButton; 36class QRadioButton;
35class QCheckBox; 37class QCheckBox;
36class QSlider; 38class QSlider;
37class KURLRequester; 39class KURLRequester;
38class QComboBox; 40class QComboBox;
39class QButtonGroup; 41class QButtonGroup;
40class QLineEdit; 42class QLineEdit;
41class QVBox; 43class QVBox;
42class QStringList; 44class QStringList;
43class KSyncProfile; 45class KSyncProfile;
44 46
45/** Dialog to change the korganizer configuration. 47/** Dialog to change the korganizer configuration.
46 */ 48 */
47class KSyncPrefsDialog : public KDialog 49class KSyncPrefsDialog : public KDialog
48{ 50{
49 Q_OBJECT 51 Q_OBJECT
50 public: 52 public:
51 /** Initialize dialog and pages */ 53 /** Initialize dialog and pages */
52 KSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false); 54 KSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false);
@@ -59,67 +61,75 @@ class KSyncPrefsDialog : public KDialog
59 61
60 public slots: 62 public slots:
61 protected slots: 63 protected slots:
62 void accept(); 64 void accept();
63 void deleteProfile(); 65 void deleteProfile();
64 void newProfile(); 66 void newProfile();
65 void cloneProfile(); 67 void cloneProfile();
66 void kindChanged(bool); 68 void kindChanged(bool);
67 void fillSSH(); 69 void fillSSH();
68 void fillFTP(); 70 void fillFTP();
69 void textChanged( const QString & ); 71 void textChanged( const QString & );
70 void profileChanged( int ); 72 void profileChanged( int );
71 void chooseFile(); 73 void chooseFile();
72 void chooseFileAB(); 74 void chooseFileAB();
73 void chooseFilePWM(); 75 void chooseFilePWM();
74 void slotOK(); 76 void slotOK();
75 void helpDevice(); 77 void helpDevice();
76 void helpModel(); 78 void helpModel();
77 void helpConnection(); 79 void helpConnection();
78 80
79 protected: 81 protected:
80 void usrWriteConfig(); 82 void usrWriteConfig();
81 void setupSyncAlgTab(); 83 void setupSyncAlgTab();
82 void readFilter(); 84 void readFilter();
85 void readResources();
83 private: 86 private:
84 int currentSelection; 87 int currentSelection;
85 QPtrList<KSyncProfile> mSyncProfiles; 88 QPtrList<KSyncProfile> mSyncProfiles;
86 QStringList mSyncProfileNames; 89 QStringList mSyncProfileNames;
87 QStringList mFilterKapi; 90 QStringList mFilterKapi;
88 QStringList mFilterKopi; 91 QStringList mFilterKopi;
92 QStringList mResourcesKopi;
93 QStringList mResourcesKapi;
89 QLineEdit * mMyMachineName; 94 QLineEdit * mMyMachineName;
90 QComboBox * mProfileBox; 95 QComboBox * mProfileBox;
91 QRadioButton* mIsLocal; 96 QRadioButton* mIsLocal;
92 QRadioButton* mIsNotLocal; 97 QRadioButton* mIsNotLocal;
93 QRadioButton* mIsPhone; 98 QRadioButton* mIsPhone;
94 QRadioButton* mIsPi; 99 QRadioButton* mIsPi;
100 QRadioButton* mIsPiSpecific;
95 QCheckBox* mIncludeInRing; 101 QCheckBox* mIncludeInRing;
96 QCheckBox* mIncludeInRingAB; 102 QCheckBox* mIncludeInRingAB;
97 QCheckBox* mIncludeInRingPWM; 103 QCheckBox* mIncludeInRingPWM;
98 void addProfile ( KSyncProfile* ); 104 void addProfile ( KSyncProfile* );
99 void insertProfiles(); 105 void insertProfiles();
100 void saveProfile(); 106 void saveProfile();
101 QButtonGroup* proGr; 107 QButtonGroup* proGr;
108 QHBox * mTableBox;
109 QTable* mResTableKopi;
110 QTable* mResTableKapi;
111 QTable* mResTablePwmpi;
102 112
103 QComboBox * mFilterOutCal; 113 QComboBox * mFilterOutCal;
104 QComboBox * mFilterInCal; 114 QComboBox * mFilterInCal;
105 QComboBox * mFilterOutAB; 115 QComboBox * mFilterOutAB;
106 QComboBox * mFilterInAB; 116 QComboBox * mFilterInAB;
107 117
108 QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; 118 QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both;
109 119
110 120
111 QLineEdit * mRemotePostcommand; 121 QLineEdit * mRemotePostcommand;
112 QLineEdit * mRemotePrecommand; 122 QLineEdit * mRemotePrecommand;
113 QLineEdit * mRemoteFile; 123 QLineEdit * mRemoteFile;
114 QLineEdit * mLocalTempFile; 124 QLineEdit * mLocalTempFile;
115 125
116 QLineEdit * mRemotePostcommandAB; 126 QLineEdit * mRemotePostcommandAB;
117 QLineEdit * mRemotePrecommandAB; 127 QLineEdit * mRemotePrecommandAB;
118 QLineEdit * mRemoteFileAB; 128 QLineEdit * mRemoteFileAB;
119 QLineEdit * mLocalTempFileAB; 129 QLineEdit * mLocalTempFileAB;
120 130
121 QLineEdit * mRemotePostcommandPWM; 131 QLineEdit * mRemotePostcommandPWM;
122 QLineEdit * mRemotePrecommandPWM; 132 QLineEdit * mRemotePrecommandPWM;
123 QLineEdit * mRemoteFilePWM; 133 QLineEdit * mRemoteFilePWM;
124 QLineEdit * mLocalTempFilePWM; 134 QLineEdit * mLocalTempFilePWM;
125 135