Diffstat (limited to 'libkdepim/ksyncprefsdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/ksyncprefsdialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libkdepim/ksyncprefsdialog.cpp b/libkdepim/ksyncprefsdialog.cpp index 857ceac..a1eebec 100644 --- a/libkdepim/ksyncprefsdialog.cpp +++ b/libkdepim/ksyncprefsdialog.cpp | |||
@@ -189,17 +189,18 @@ void KSyncPrefsDialog::setupSyncAlgTab() | |||
189 | mIsNotLocal = new QRadioButton ( i18n("Remote file (w down/upload command)"), gr ); | 189 | mIsNotLocal = new QRadioButton ( i18n("Remote file (w down/upload command)"), gr ); |
190 | connect (mIsLocal, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); | 190 | connect (mIsLocal, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); |
191 | mIsPhone = new QRadioButton ( i18n("Mobile device (cell phone)"), gr ); | 191 | mIsPhone = new QRadioButton ( i18n("Mobile device (cell phone)"), gr ); |
192 | connect (mIsPhone, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); | 192 | connect (mIsPhone, SIGNAL( toggled(bool)), this, SLOT (kindChanged(bool) ) ); |
193 | 193 | ||
194 | 194 | ||
195 | phoneWidget = new QVBox( topFrame); | 195 | phoneWidget = new QVBox( topFrame); |
196 | topLayout->addMultiCellWidget(phoneWidget, iii,iii,0,1); | 196 | topLayout->addMultiCellWidget(phoneWidget, iii,iii,0,1); |
197 | ++iii; | 197 | ++iii; |
198 | mWriteContactToSIM= new QCheckBox( i18n("Sync contacts with phone SIM card (If not, sync with phone memory)"), phoneWidget ); | ||
198 | QHBox* temphb = new QHBox( phoneWidget ); | 199 | QHBox* temphb = new QHBox( phoneWidget ); |
199 | new QLabel( i18n("I/O device: "), temphb ); | 200 | new QLabel( i18n("I/O device: "), temphb ); |
200 | mPhoneDevice = new QLineEdit( temphb); | 201 | mPhoneDevice = new QLineEdit( temphb); |
201 | button = new QPushButton( i18n("Help..."), temphb ); | 202 | button = new QPushButton( i18n("Help..."), temphb ); |
202 | connect ( button, SIGNAL( clicked()), this, SLOT ( helpDevice() ) ); | 203 | connect ( button, SIGNAL( clicked()), this, SLOT ( helpDevice() ) ); |
203 | 204 | ||
204 | 205 | ||
205 | temphb = new QHBox( phoneWidget ); | 206 | temphb = new QHBox( phoneWidget ); |
@@ -335,16 +336,17 @@ void KSyncPrefsDialog::profileChanged( int item ) | |||
335 | mLocalTempFile->setText(prof->getLocalTempFile()); | 336 | mLocalTempFile->setText(prof->getLocalTempFile()); |
336 | mRemoteFile->setText(prof->getRemoteFileName()) ; | 337 | mRemoteFile->setText(prof->getRemoteFileName()) ; |
337 | 338 | ||
338 | mRemotePrecommandAB->setText(prof->getPreSyncCommandAB()); | 339 | mRemotePrecommandAB->setText(prof->getPreSyncCommandAB()); |
339 | mRemotePostcommandAB->setText(prof->getPostSyncCommandAB()); | 340 | mRemotePostcommandAB->setText(prof->getPostSyncCommandAB()); |
340 | mLocalTempFileAB->setText(prof->getLocalTempFileAB()); | 341 | mLocalTempFileAB->setText(prof->getLocalTempFileAB()); |
341 | mRemoteFileAB->setText(prof->getRemoteFileNameAB()) ; | 342 | mRemoteFileAB->setText(prof->getRemoteFileNameAB()) ; |
342 | 343 | ||
344 | mWriteContactToSIM->setChecked( prof->getWriteContactToSIM()); | ||
343 | mPhoneDevice->setText(prof->getPhoneDevice()); | 345 | mPhoneDevice->setText(prof->getPhoneDevice()); |
344 | mPhoneConnection->setText(prof->getPhoneConnection()); | 346 | mPhoneConnection->setText(prof->getPhoneConnection()); |
345 | mPhoneModel->setText(prof->getPhoneModel()); | 347 | mPhoneModel->setText(prof->getPhoneModel()); |
346 | 348 | ||
347 | mShowSummaryAfterSync->setChecked( prof->getShowSummaryAfterSync()); | 349 | mShowSummaryAfterSync->setChecked( prof->getShowSummaryAfterSync()); |
348 | mAskForPreferences->setChecked( prof->getAskForPreferences()); | 350 | mAskForPreferences->setChecked( prof->getAskForPreferences()); |
349 | mWriteBackExisting->setChecked( prof->getWriteBackExisting() ); | 351 | mWriteBackExisting->setChecked( prof->getWriteBackExisting() ); |
350 | mWriteBackFile->setChecked( prof->getWriteBackFile()); | 352 | mWriteBackFile->setChecked( prof->getWriteBackFile()); |
@@ -466,16 +468,18 @@ void KSyncPrefsDialog::saveProfile() | |||
466 | prof->setIncludeInRingSync( mIncludeInRing->isChecked() ); | 468 | prof->setIncludeInRingSync( mIncludeInRing->isChecked() ); |
467 | prof->setIncludeInRingSyncAB( mIncludeInRingAB->isChecked() ); | 469 | prof->setIncludeInRingSyncAB( mIncludeInRingAB->isChecked() ); |
468 | int syncprefs = rem->isChecked()*1+newest->isChecked()*2+ ask->isChecked()*3+ f_loc->isChecked()*4+ f_rem->isChecked()*5 ;//+ both->isChecked()*6 ; | 470 | int syncprefs = rem->isChecked()*1+newest->isChecked()*2+ ask->isChecked()*3+ f_loc->isChecked()*4+ f_rem->isChecked()*5 ;//+ both->isChecked()*6 ; |
469 | prof->setSyncPrefs( syncprefs); | 471 | prof->setSyncPrefs( syncprefs); |
470 | prof->setIsLocalFileSync( mIsLocal->isChecked() ); | 472 | prof->setIsLocalFileSync( mIsLocal->isChecked() ); |
471 | prof->setIsPhoneSync( mIsPhone->isChecked() ); | 473 | prof->setIsPhoneSync( mIsPhone->isChecked() ); |
472 | prof->setWriteBackFuture(mWriteBackFuture->isChecked()); | 474 | prof->setWriteBackFuture(mWriteBackFuture->isChecked()); |
473 | prof->setWriteBackFutureWeeks(mWriteBackFutureWeeks->value()); | 475 | prof->setWriteBackFutureWeeks(mWriteBackFutureWeeks->value()); |
476 | |||
477 | prof->setWriteContactToSIM(mWriteContactToSIM->isChecked()); | ||
474 | prof->setPhoneDevice( mPhoneDevice->text() ); | 478 | prof->setPhoneDevice( mPhoneDevice->text() ); |
475 | prof->setPhoneConnection( mPhoneConnection->text() ); | 479 | prof->setPhoneConnection( mPhoneConnection->text() ); |
476 | prof->setPhoneModel( mPhoneModel->text() ); | 480 | prof->setPhoneModel( mPhoneModel->text() ); |
477 | 481 | ||
478 | } | 482 | } |
479 | 483 | ||
480 | } | 484 | } |
481 | 485 | ||