-rw-r--r-- | libkdepim/ksyncprofile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp index a43ebe2..2bf4e6c 100644 --- a/libkdepim/ksyncprofile.cpp +++ b/libkdepim/ksyncprofile.cpp | |||
@@ -54,65 +54,65 @@ KSyncProfile* KSyncProfile::clone() | |||
54 | myClone->setPreSyncCommandPWM( mPreSyncCommandPWM ); | 54 | myClone->setPreSyncCommandPWM( mPreSyncCommandPWM ); |
55 | myClone->setPostSyncCommandPWM( mPostSyncCommandPWM ); | 55 | myClone->setPostSyncCommandPWM( mPostSyncCommandPWM ); |
56 | myClone->setLocalTempFilePWM( mLocalTempFilePWM); | 56 | myClone->setLocalTempFilePWM( mLocalTempFilePWM); |
57 | myClone->setRemoteFileNamePWM( mRemoteFileNamePWM ); | 57 | myClone->setRemoteFileNamePWM( mRemoteFileNamePWM ); |
58 | myClone->setShowSummaryAfterSync( mShowSummaryAfterSync ); | 58 | myClone->setShowSummaryAfterSync( mShowSummaryAfterSync ); |
59 | myClone->setAskForPreferences( mAskForPreferences); | 59 | myClone->setAskForPreferences( mAskForPreferences); |
60 | myClone->setWriteBackExisting(mWriteBackExisting ); | 60 | myClone->setWriteBackExisting(mWriteBackExisting ); |
61 | myClone->setWriteBackFile( mWriteBackFile); | 61 | myClone->setWriteBackFile( mWriteBackFile); |
62 | myClone->setWriteBackFuture( mWriteBackFuture ); | 62 | myClone->setWriteBackFuture( mWriteBackFuture ); |
63 | myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks ); | 63 | myClone->setWriteBackFutureWeeks( mWriteBackFutureWeeks ); |
64 | myClone->setIncludeInRingSync( mIncludeInRingSync ); | 64 | myClone->setIncludeInRingSync( mIncludeInRingSync ); |
65 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); | 65 | myClone->setIncludeInRingSyncAB( mIncludeInRingSyncAB ); |
66 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); | 66 | myClone->setIncludeInRingSyncPWM( mIncludeInRingSyncPWM ); |
67 | myClone->setSyncPrefs( mSyncPrefs); | 67 | myClone->setSyncPrefs( mSyncPrefs); |
68 | myClone->setIsLocalFileSync( mIsLocalFileSync ); | 68 | myClone->setIsLocalFileSync( mIsLocalFileSync ); |
69 | myClone->setIsPhoneSync( mIsPhoneSync ); | 69 | myClone->setIsPhoneSync( mIsPhoneSync ); |
70 | myClone->setWriteContactToSIM( mWriteContactToSIM ); | 70 | myClone->setWriteContactToSIM( mWriteContactToSIM ); |
71 | myClone->setName( "noName" ); | 71 | myClone->setName( "noName" ); |
72 | //myClone->setIdentifier( "noID" ); | 72 | //myClone->setIdentifier( "noID" ); |
73 | return myClone; | 73 | return myClone; |
74 | } | 74 | } |
75 | 75 | ||
76 | 76 | ||
77 | void KSyncProfile::setDefault() | 77 | void KSyncProfile::setDefault() |
78 | { | 78 | { |
79 | mPreSyncCommand = i18n("command for downloading remote file to local device"); | 79 | mPreSyncCommand = i18n("command for downloading remote file to local device"); |
80 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); | 80 | mPostSyncCommand = i18n("command for uploading local temp file to remote device"); |
81 | mLocalTempFile = "/tmp/mycalendar.ics"; | 81 | mLocalTempFile = "/tmp/mycalendar.ics"; |
82 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; | 82 | mRemoteFileName = "/home/polo/kdepim/apps/korganizer/localfile.ics"; |
83 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); | 83 | mPreSyncCommandAB = i18n("command for downloading remote file to local device"); |
84 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); | 84 | mPostSyncCommandAB = i18n("command for uploading local temp file to remote device"); |
85 | mLocalTempFileAB = "/tmp/std.vcf"; | 85 | mLocalTempFileAB = "/tmp/std.vcf"; |
86 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/kabc/localfile.vcf"; | 86 | mRemoteFileNameAB = "/home/polo/kdepim/apps/kabc/localfile.vcf"; |
87 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); | 87 | mPreSyncCommandPWM = i18n("command for downloading remote file to local device"); |
88 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); | 88 | mPostSyncCommandPWM = i18n("command for uploading local temp file to remote device"); |
89 | mLocalTempFilePWM = "/tmp/passwords.pwm"; | 89 | mLocalTempFilePWM = "/tmp/passwords.pwm"; |
90 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; | 90 | mRemoteFileNamePWM = "/home/polo/kdepim/apps/pwmanager/localfile.pwm"; |
91 | mShowSummaryAfterSync = true; | 91 | mShowSummaryAfterSync = true; |
92 | mAskForPreferences = true; | 92 | mAskForPreferences = true; |
93 | mWriteBackExisting = false; | 93 | mWriteBackExisting = false; |
94 | mWriteBackFuture = false; | 94 | mWriteBackFuture = false; |
95 | mWriteBackFutureWeeks = 12; | 95 | mWriteBackFutureWeeks = 12; |
96 | mWriteBackFile = true; | 96 | mWriteBackFile = true; |
97 | mIncludeInRingSync = false; | 97 | mIncludeInRingSync = false; |
98 | mIncludeInRingSyncAB = false; | 98 | mIncludeInRingSyncAB = false; |
99 | mIncludeInRingSyncPWM = false; | 99 | mIncludeInRingSyncPWM = false; |
100 | mSyncPrefs = SYNC_PREF_ASK; | 100 | mSyncPrefs = SYNC_PREF_ASK; |
101 | mIsLocalFileSync = true; | 101 | mIsLocalFileSync = true; |
102 | mName = "noName"; | 102 | mName = "noName"; |
103 | mIsPhoneSync = false; | 103 | mIsPhoneSync = false; |
104 | mWriteContactToSIM = false; | 104 | mWriteContactToSIM = false; |
105 | mPhoneDevice = "/dev/ircomm"; | 105 | mPhoneDevice = "/dev/ircomm"; |
106 | mPhoneConnection = "irda"; | 106 | mPhoneConnection = "irda"; |
107 | mPhoneModel = "6310i"; | 107 | mPhoneModel = "6310i"; |
108 | } | 108 | } |
109 | void KSyncProfile::readConfig(KConfig *config ) | 109 | void KSyncProfile::readConfig(KConfig *config ) |
110 | { | 110 | { |
111 | if (config) | 111 | if (config) |
112 | { | 112 | { |
113 | 113 | ||
114 | config->setGroup( mName ); | 114 | config->setGroup( mName ); |
115 | 115 | ||
116 | mName = config->readEntry( "Name", mName ); | 116 | mName = config->readEntry( "Name", mName ); |
117 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); | 117 | mPreSyncCommand = config->readEntry( "PreSyncCommand",mPreSyncCommand ); |
118 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); | 118 | mPostSyncCommand = config->readEntry( "PostSyncCommand", mPostSyncCommand ); |