diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-11-20 12:15:15 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-12-12 16:40:29 +0100 |
commit | 9f5fdbf83ebcfbf4efa0f2dd0cf0bdbe1922445e (patch) | |
tree | 7d9dbaf5cb433e370308ff759287aa271f7d1a28 /src/sync/syncwidget.cpp | |
parent | Let sync work with ftp sites :D (diff) | |
download | rekonq-9f5fdbf83ebcfbf4efa0f2dd0cf0bdbe1922445e.tar.xz |
here we are, rekonq ftp remote sync done!
With this commit, I think we reached the "sync" status with remote ftp
sites.
This means we basically have a first sync feature and we can heavily
test it to eventually add more options in the future (webdav?
ownCloud? firefox Sync? etc...)
Diffstat (limited to 'src/sync/syncwidget.cpp')
-rw-r--r-- | src/sync/syncwidget.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/sync/syncwidget.cpp b/src/sync/syncwidget.cpp index c8fc1368..a7adfd3d 100644 --- a/src/sync/syncwidget.cpp +++ b/src/sync/syncwidget.cpp @@ -43,12 +43,16 @@ SyncWidget::SyncWidget(QWidget *parent) setupUi(this); kcfg_syncEnabled->setChecked(ReKonfig::syncEnabled()); + kcfg_syncBookmarks->setChecked(ReKonfig::syncBookmarks()); kcfg_syncHistory->setChecked(ReKonfig::syncHistory()); kcfg_syncPasswords->setChecked(ReKonfig::syncPasswords()); - kcfg_syncUrl->setText(ReKonfig::syncUrl()); + + kcfg_syncHost->setText(ReKonfig::syncHost()); kcfg_syncUser->setText(ReKonfig::syncUser()); kcfg_syncPass->setText(ReKonfig::syncPass()); + kcfg_syncPath->setText(ReKonfig::syncPath()); + kcfg_syncPort->setValue(ReKonfig::syncPort()); bool isSyncEnabled = ReKonfig::syncEnabled(); enablewidgets(isSyncEnabled); @@ -65,12 +69,16 @@ SyncWidget::SyncWidget(QWidget *parent) void SyncWidget::save() { ReKonfig::setSyncEnabled(kcfg_syncEnabled->isChecked()); + ReKonfig::setSyncBookmarks(kcfg_syncBookmarks->isChecked()); ReKonfig::setSyncHistory(kcfg_syncHistory->isChecked()); ReKonfig::setSyncPasswords(kcfg_syncPasswords->isChecked()); - ReKonfig::setSyncUrl(kcfg_syncUrl->text()); + + ReKonfig::setSyncHost(kcfg_syncHost->text()); ReKonfig::setSyncUser(kcfg_syncUser->text()); ReKonfig::setSyncPass(kcfg_syncPass->text()); + ReKonfig::setSyncPath(kcfg_syncPath->text()); + ReKonfig::setSyncPort(kcfg_syncPort->value()); rApp->syncManager()->firstTimeSync(); } @@ -114,4 +122,3 @@ void SyncWidget::syncNow() // TODO do something in the sync UI... } - |