author | eilers <eilers> | 2002-11-09 14:42:19 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-11-09 14:42:19 (UTC) |
commit | d5d079c5bfaa10c310628d1ef7905d98b64dfa81 (patch) (unidiff) | |
tree | 53c7ca5bdf55a6179b8d52ae44ceee3adf0533cb | |
parent | e9df27b5665583685482d405742a4fd3025fe127 (diff) | |
download | opie-d5d079c5bfaa10c310628d1ef7905d98b64dfa81.zip opie-d5d079c5bfaa10c310628d1ef7905d98b64dfa81.tar.gz opie-d5d079c5bfaa10c310628d1ef7905d98b64dfa81.tar.bz2 |
Remove stuff which should never be committed
-rw-r--r-- | library/backend/contact.h | 4 | ||||
-rw-r--r-- | library/backend/timeconversion.cpp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/library/backend/contact.h b/library/backend/contact.h index 2294986..4999430 100644 --- a/library/backend/contact.h +++ b/library/backend/contact.h | |||
@@ -200,22 +200,22 @@ public: | |||
200 | void saveJournal( journal_action action, const QString &key = QString::null ); | 200 | void saveJournal( journal_action action, const QString &key = QString::null ); |
201 | void save( QString &buf ) const; | 201 | void save( QString &buf ) const; |
202 | 202 | ||
203 | void setUid( int i ) | 203 | void setUid( int i ) |
204 | { Record::setUid(i); replace( Qtopia::AddressUid , QString::number(i)); } | 204 | { Record::setUid(i); replace( Qtopia::AddressUid , QString::number(i)); } |
205 | 205 | ||
206 | void setEmails( const QString &v ); | ||
207 | QString emails() const { return find( Qtopia::Emails ); } | ||
208 | private: | 206 | private: |
209 | friend class AbEditor; | 207 | friend class AbEditor; |
210 | friend class AbTable; | 208 | friend class AbTable; |
211 | friend class AddressBookAccessPrivate; | 209 | friend class AddressBookAccessPrivate; |
212 | friend class XMLIO; | 210 | friend class XMLIO; |
213 | 211 | ||
214 | QString emailSeparator() const { return " "; } | 212 | QString emailSeparator() const { return " "; } |
215 | // the emails should be seperated by a comma | 213 | // the emails should be seperated by a comma |
214 | void setEmails( const QString &v ); | ||
215 | QString emails() const { return find( Qtopia::Emails ); } | ||
216 | 216 | ||
217 | void insert( int key, const QString &value ); | 217 | void insert( int key, const QString &value ); |
218 | void replace( int key, const QString &value ); | 218 | void replace( int key, const QString &value ); |
219 | QString find( int key ) const; | 219 | QString find( int key ) const; |
220 | 220 | ||
221 | QString displayAddress( const QString &street, | 221 | QString displayAddress( const QString &street, |
diff --git a/library/backend/timeconversion.cpp b/library/backend/timeconversion.cpp index df7b0d5..6551697 100644 --- a/library/backend/timeconversion.cpp +++ b/library/backend/timeconversion.cpp | |||
@@ -22,29 +22,29 @@ | |||
22 | #include <qtopia/timeconversion.h> | 22 | #include <qtopia/timeconversion.h> |
23 | #include <qregexp.h> | 23 | #include <qregexp.h> |
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | 25 | ||
26 | QString TimeConversion::toString( const QDate &d ) | 26 | QString TimeConversion::toString( const QDate &d ) |
27 | { | 27 | { |
28 | QString empty; | 28 | // QString empty; |
29 | if ( d.isNull() ) | 29 | // if ( d.isNull() ) |
30 | return empty; | 30 | // return empty; |
31 | 31 | ||
32 | QString r = QString::number( d.day() ) + "." + | 32 | QString r = QString::number( d.day() ) + "." + |
33 | QString::number( d.month() ) + "." + | 33 | QString::number( d.month() ) + "." + |
34 | QString::number( d.year() ); | 34 | QString::number( d.year() ); |
35 | //qDebug("TimeConversion::toString %s", r.latin1()); | 35 | //qDebug("TimeConversion::toString %s", r.latin1()); |
36 | 36 | ||
37 | return r; | 37 | return r; |
38 | } | 38 | } |
39 | 39 | ||
40 | QDate TimeConversion::fromString( const QString &datestr ) | 40 | QDate TimeConversion::fromString( const QString &datestr ) |
41 | { | 41 | { |
42 | QDate empty; | 42 | // QDate empty; |
43 | if ( datestr.isEmpty() ) | 43 | // if ( datestr.isEmpty() ) |
44 | return empty; | 44 | // return empty; |
45 | 45 | ||
46 | int monthPos = datestr.find('.'); | 46 | int monthPos = datestr.find('.'); |
47 | int yearPos = datestr.find('.', monthPos+1 ); | 47 | int yearPos = datestr.find('.', monthPos+1 ); |
48 | if ( monthPos == -1 || yearPos == -1 ) { | 48 | if ( monthPos == -1 || yearPos == -1 ) { |
49 | qDebug("fromString didn't find . in str = %s; mpos = %d ypos = %d", datestr.latin1(), monthPos, yearPos ); | 49 | qDebug("fromString didn't find . in str = %s; mpos = %d ypos = %d", datestr.latin1(), monthPos, yearPos ); |
50 | return QDate(); | 50 | return QDate(); |