Diffstat (limited to 'libopie2/opiepim/core/opimcontact.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimcontact.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie2/opiepim/core/opimcontact.cpp b/libopie2/opiepim/core/opimcontact.cpp index 48a74d0..36e9a93 100644 --- a/libopie2/opiepim/core/opimcontact.cpp +++ b/libopie2/opiepim/core/opimcontact.cpp | |||
@@ -1152,64 +1152,64 @@ void OPimContact::setBirthday( const QDate &v ) | |||
1152 | /*! \fn void OPimContact::setAnniversary( const QDate &date ) | 1152 | /*! \fn void OPimContact::setAnniversary( const QDate &date ) |
1153 | Sets the anniversary of the contact to \a date. If date is | 1153 | Sets the anniversary of the contact to \a date. If date is |
1154 | null, the current stored date will be removed. | 1154 | null, the current stored date will be removed. |
1155 | */ | 1155 | */ |
1156 | void OPimContact::setAnniversary( const QDate &v ) | 1156 | void OPimContact::setAnniversary( const QDate &v ) |
1157 | { | 1157 | { |
1158 | if ( v.isNull() ) | 1158 | if ( v.isNull() ) |
1159 | { | 1159 | { |
1160 | owarn << "Remove Anniversary" << oendl; | 1160 | owarn << "Remove Anniversary" << oendl; |
1161 | replace( Qtopia::Anniversary, QString::null ); | 1161 | replace( Qtopia::Anniversary, QString::null ); |
1162 | return ; | 1162 | return ; |
1163 | } | 1163 | } |
1164 | 1164 | ||
1165 | if ( v.isValid() ) | 1165 | if ( v.isValid() ) |
1166 | replace( Qtopia::Anniversary, OPimDateConversion::dateToString( v ) ); | 1166 | replace( Qtopia::Anniversary, OPimDateConversion::dateToString( v ) ); |
1167 | } | 1167 | } |
1168 | 1168 | ||
1169 | 1169 | ||
1170 | /*! \fn QDate OPimContact::birthday() const | 1170 | /*! \fn QDate OPimContact::birthday() const |
1171 | Returns the birthday of the contact. | 1171 | Returns the birthday of the contact. |
1172 | */ | 1172 | */ |
1173 | QDate OPimContact::birthday() const | 1173 | QDate OPimContact::birthday() const |
1174 | { | 1174 | { |
1175 | QString str = find( Qtopia::Birthday ); | 1175 | QString str = find( Qtopia::Birthday ); |
1176 | // qWarning ("Birthday %s", str.latin1() ); | 1176 | // owarn << "Birthday " << str << oendl; |
1177 | if ( !str.isEmpty() ) | 1177 | if ( !str.isEmpty() ) |
1178 | return OPimDateConversion::dateFromString ( str ); | 1178 | return OPimDateConversion::dateFromString ( str ); |
1179 | else | 1179 | else |
1180 | return QDate(); | 1180 | return QDate(); |
1181 | } | 1181 | } |
1182 | 1182 | ||
1183 | 1183 | ||
1184 | /*! \fn QDate OPimContact::anniversary() const | 1184 | /*! \fn QDate OPimContact::anniversary() const |
1185 | Returns the anniversary of the contact. | 1185 | Returns the anniversary of the contact. |
1186 | */ | 1186 | */ |
1187 | QDate OPimContact::anniversary() const | 1187 | QDate OPimContact::anniversary() const |
1188 | { | 1188 | { |
1189 | QDate empty; | 1189 | QDate empty; |
1190 | QString str = find( Qtopia::Anniversary ); | 1190 | QString str = find( Qtopia::Anniversary ); |
1191 | // qWarning ("Anniversary %s", str.latin1() ); | 1191 | // owarn << "Anniversary " << str << oendl; |
1192 | if ( !str.isEmpty() ) | 1192 | if ( !str.isEmpty() ) |
1193 | return OPimDateConversion::dateFromString ( str ); | 1193 | return OPimDateConversion::dateFromString ( str ); |
1194 | else | 1194 | else |
1195 | return empty; | 1195 | return empty; |
1196 | } | 1196 | } |
1197 | 1197 | ||
1198 | 1198 | ||
1199 | void OPimContact::insertEmail( const QString &v ) | 1199 | void OPimContact::insertEmail( const QString &v ) |
1200 | { | 1200 | { |
1201 | //odebug << "insertEmail " << v << "" << oendl; | 1201 | //odebug << "insertEmail " << v << "" << oendl; |
1202 | QString e = v.simplifyWhiteSpace(); | 1202 | QString e = v.simplifyWhiteSpace(); |
1203 | QString def = defaultEmail(); | 1203 | QString def = defaultEmail(); |
1204 | 1204 | ||
1205 | // if no default, set it as the default email and don't insert | 1205 | // if no default, set it as the default email and don't insert |
1206 | if ( def.isEmpty() ) | 1206 | if ( def.isEmpty() ) |
1207 | { | 1207 | { |
1208 | setDefaultEmail( e ); // will insert into the list for us | 1208 | setDefaultEmail( e ); // will insert into the list for us |
1209 | return ; | 1209 | return ; |
1210 | } | 1210 | } |
1211 | 1211 | ||
1212 | // otherwise, insert assuming doesn't already exist | 1212 | // otherwise, insert assuming doesn't already exist |
1213 | QString emailsStr = find( Qtopia::Emails ); | 1213 | QString emailsStr = find( Qtopia::Emails ); |
1214 | if ( emailsStr.contains( e ) ) | 1214 | if ( emailsStr.contains( e ) ) |
1215 | return ; | 1215 | return ; |