summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprefsdialog.h
Unidiff
Diffstat (limited to 'libkdepim/ksyncprefsdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprefsdialog.h110
1 files changed, 110 insertions, 0 deletions
diff --git a/libkdepim/ksyncprefsdialog.h b/libkdepim/ksyncprefsdialog.h
new file mode 100644
index 0000000..90fa286
--- a/dev/null
+++ b/libkdepim/ksyncprefsdialog.h
@@ -0,0 +1,110 @@
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 _KSYNCPREFSDIALOG_H
24#define _KSYNCPREFSDIALOG_H
25
26
27#include <kdialogbase.h>
28#include <qptrlist.h>
29
30//#include <libkdepim/kprefsdialog.h>
31
32class KColorButton;
33class QSpinBox;;
34class QRadioButton;
35class QCheckBox;
36class QSlider;
37class KURLRequester;
38class QComboBox;
39class QButtonGroup;
40class QLineEdit;
41class QVBox;
42class QStringList;
43class KSyncProfile;
44
45/** Dialog to change the korganizer configuration.
46 */
47class KSyncPrefsDialog : public KDialog
48{
49 Q_OBJECT
50 public:
51 /** Initialize dialog and pages */
52 KSyncPrefsDialog(QWidget *parent=0,char *name=0,bool modal=false);
53 ~KSyncPrefsDialog();
54 void usrReadConfig();
55 void setLocalMachineName ( const QString& name );
56 QString getLocalMachineName ( );
57
58 QStringList getSyncProfileNames();
59
60 public slots:
61 protected slots:
62 void accept();
63 void deleteProfile();
64 void newProfile();
65 void cloneProfile();
66 void kindChanged(bool);
67 void fillSSH();
68 void fillFTP();
69 void textChanged( const QString & );
70 void profileChanged( int );
71 void chooseFile();
72 void slotOK();
73
74 protected:
75 void usrWriteConfig();
76
77 void setupSyncAlgTab();
78
79 private:
80 int currentSelection;
81 QPtrList<KSyncProfile> mSyncProfiles;
82 QStringList mSyncProfileNames;
83 QLineEdit * mMyMachineName;
84 QComboBox * mProfileBox;
85 QRadioButton* mIsLocal;
86 QRadioButton* mIsNotLocal;
87 QCheckBox* mIncludeInRing;
88 void addProfile ( KSyncProfile* );
89 void insertProfiles();
90 void saveProfile();
91 QButtonGroup* proGr;
92
93 QRadioButton* loc, *rem, *newest, *ask, *f_loc,* f_rem, *both;
94
95
96 QLineEdit * mRemotePostcommand;
97 QLineEdit * mRemotePrecommand;
98 QLineEdit * mRemoteFile;
99 QLineEdit * mLocalTempFile;
100 QWidget* mSetupSyncAlgTab;
101
102 QVBox* localFileWidget;
103 QVBox* remoteFileWidget;
104 QCheckBox* mWriteBackFile;
105 QCheckBox* mWriteBackExisting;
106 QCheckBox* mAskForPreferences;
107 QCheckBox* mShowSummaryAfterSync;
108};
109
110#endif