summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprefsdialog.h
Unidiff
Diffstat (limited to 'libkdepim/ksyncprefsdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprefsdialog.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libkdepim/ksyncprefsdialog.h b/libkdepim/ksyncprefsdialog.h
index 8c2c59c..3060e78 100644
--- a/libkdepim/ksyncprefsdialog.h
+++ b/libkdepim/ksyncprefsdialog.h
@@ -26,95 +26,103 @@
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
32class KColorButton; 32class KColorButton;
33class QSpinBox;; 33class QSpinBox;;
34class QRadioButton; 34class QRadioButton;
35class QCheckBox; 35class QCheckBox;
36class QSlider; 36class QSlider;
37class KURLRequester; 37class KURLRequester;
38class QComboBox; 38class QComboBox;
39class QButtonGroup; 39class QButtonGroup;
40class QLineEdit; 40class QLineEdit;
41class QVBox; 41class QVBox;
42class QStringList; 42class QStringList;
43class KSyncProfile; 43class KSyncProfile;
44 44
45/** Dialog to change the korganizer configuration. 45/** Dialog to change the korganizer configuration.
46 */ 46 */
47class KSyncPrefsDialog : public KDialog 47class 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();
75 void helpModel();
76 void helpConnection();
74 77
75 protected: 78 protected:
76 void usrWriteConfig(); 79 void usrWriteConfig();
77 80
78 void setupSyncAlgTab(); 81 void setupSyncAlgTab();
79 82
80 private: 83 private:
81 int currentSelection; 84 int currentSelection;
82 QPtrList<KSyncProfile> mSyncProfiles; 85 QPtrList<KSyncProfile> mSyncProfiles;
83 QStringList mSyncProfileNames; 86 QStringList mSyncProfileNames;
84 QLineEdit * mMyMachineName; 87 QLineEdit * mMyMachineName;
85 QComboBox * mProfileBox; 88 QComboBox * mProfileBox;
86 QRadioButton* mIsLocal; 89 QRadioButton* mIsLocal;
87 QRadioButton* mIsNotLocal; 90 QRadioButton* mIsNotLocal;
91 QRadioButton* mIsPhone;
88 QCheckBox* mIncludeInRing; 92 QCheckBox* mIncludeInRing;
89 QCheckBox* mIncludeInRingAB; 93 QCheckBox* mIncludeInRingAB;
90 void addProfile ( KSyncProfile* ); 94 void addProfile ( KSyncProfile* );
91 void insertProfiles(); 95 void insertProfiles();
92 void saveProfile(); 96 void saveProfile();
93 QButtonGroup* proGr; 97 QButtonGroup* proGr;
94 98
95 QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both; 99 QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both;
96 100
97 101
98 QLineEdit * mRemotePostcommand; 102 QLineEdit * mRemotePostcommand;
99 QLineEdit * mRemotePrecommand; 103 QLineEdit * mRemotePrecommand;
100 QLineEdit * mRemoteFile; 104 QLineEdit * mRemoteFile;
101 QLineEdit * mLocalTempFile; 105 QLineEdit * mLocalTempFile;
102 106
103 QLineEdit * mRemotePostcommandAB; 107 QLineEdit * mRemotePostcommandAB;
104 QLineEdit * mRemotePrecommandAB; 108 QLineEdit * mRemotePrecommandAB;
105 QLineEdit * mRemoteFileAB; 109 QLineEdit * mRemoteFileAB;
106 QLineEdit * mLocalTempFileAB; 110 QLineEdit * mLocalTempFileAB;
107 111
112 QLineEdit * mPhoneDevice;
113 QLineEdit * mPhoneConnection;
114 QLineEdit * mPhoneModel;
108 115
109 QWidget* mSetupSyncAlgTab; 116 QWidget* mSetupSyncAlgTab;
110 QVBox* localFileWidget; 117 QVBox* localFileWidget;
111 QVBox* remoteFileWidget; 118 QVBox* remoteFileWidget;
119 QVBox* phoneWidget;
112 QCheckBox* mWriteBackFile; 120 QCheckBox* mWriteBackFile;
113 QCheckBox* mWriteBackFuture; 121 QCheckBox* mWriteBackFuture;
114 QSpinBox* mWriteBackFutureWeeks; 122 QSpinBox* mWriteBackFutureWeeks;
115 QCheckBox* mWriteBackExisting; 123 QCheckBox* mWriteBackExisting;
116 QCheckBox* mAskForPreferences; 124 QCheckBox* mAskForPreferences;
117 QCheckBox* mShowSummaryAfterSync; 125 QCheckBox* mShowSummaryAfterSync;
118}; 126};
119 127
120#endif 128#endif