diff options
Diffstat (limited to 'konq-plugins/rsync/rsyncconfigdialog.h')
-rw-r--r-- | konq-plugins/rsync/rsyncconfigdialog.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/konq-plugins/rsync/rsyncconfigdialog.h b/konq-plugins/rsync/rsyncconfigdialog.h index 83314e8..9099ad3 100644 --- a/konq-plugins/rsync/rsyncconfigdialog.h +++ b/konq-plugins/rsync/rsyncconfigdialog.h @@ -22,6 +22,7 @@ #include <qmap.h> #include <qstringlist.h> #include <qlineedit.h> +#include <qradiobutton.h> #include <kurl.h> #include <kprocess.h> @@ -39,7 +40,7 @@ class RsyncConfigDialog : public KDialogBase const QString& text = QString::null, const QString& localfolder = QString::null, const QString& remotefolder = QString::null, - bool modal = false); + int syncmode = 1, bool modal = false); ~RsyncConfigDialog() {} // @@ -183,6 +184,14 @@ class RsyncConfigDialog : public KDialogBase bool wasCancelled() const; /** + * Returns index of selected synchronization mode + * 1: Upload + * 2: Download + * 3: Bidirectional + */ + int getSyncMode(); + + /** * Ignores the last cancel action if the cancel button was * pressed. Useful for kdialog when combined with a KMessageBox * to display a message like "Are you sure you want to cancel?" @@ -249,6 +258,9 @@ class RsyncConfigDialog : public KDialogBase KTextEdit* mTextBox; QTimer* mShowTimer; QLineEdit* m_rsync_txt; + QRadioButton *rsync_rb1; + QRadioButton *rsync_rb2; + QRadioButton *rsync_rb3; // protected: // virtual void virtual_hook( int id, void* data ); }; |