From 84be228e70b7d36627a8610386f44b6928d35d6a Mon Sep 17 00:00:00 2001 From: eilers Date: Tue, 22 Apr 2003 14:09:11 +0000 Subject: Fixing incompatibility to Qtopia 1.6 (especially syncing with QTDesktop 1.6): They using a special format for storing birthdays/anniversaries. This patch does not convert all entries, just new/modificated contacts will be stored in this new format ! Addressbook is able to work with both formats (new and old) Complete conversion will be done by the new kitchensync release, provided soon... --- (limited to 'libopie2/opiepim/ocontact.cpp') diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index 9cccfc8..96a5f65 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp @@ -1,8 +1,6 @@ /********************************************************************** ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. -** Copyright (C) 2002 by Stefan Eilers (eilers.stefan@epost.de) -** -** This file is part of the Qtopia Environment. +** Copyright (C) 2002-2003 by Stefan Eilers (eilers.stefan@epost.de) ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software @@ -25,7 +23,7 @@ #include "opimresolver.h" #include -#include +#include "oconversion.h" #include #include @@ -1017,7 +1015,7 @@ void OContact::setBirthday( const QDate &v ) } if ( v.isValid() ) - replace( Qtopia::Birthday, TimeConversion::toString( v ) ); + replace( Qtopia::Birthday, OConversion::dateToString( v ) ); } @@ -1035,7 +1033,7 @@ void OContact::setAnniversary( const QDate &v ) } if ( v.isValid() ) - replace( Qtopia::Anniversary, TimeConversion::toString( v ) ); + replace( Qtopia::Anniversary, OConversion::dateToString( v ) ); } /*! \fn QDate OContact::birthday() const @@ -1046,7 +1044,7 @@ QDate OContact::birthday() const QString str = find( Qtopia::Birthday ); qWarning ("Birthday %s", str.latin1() ); if ( !str.isEmpty() ) - return TimeConversion::fromString ( str ); + return OConversion::dateFromString ( str ); else return QDate(); } @@ -1061,7 +1059,7 @@ QDate OContact::anniversary() const QString str = find( Qtopia::Anniversary ); qWarning ("Anniversary %s", str.latin1() ); if ( !str.isEmpty() ) - return TimeConversion::fromString ( str ); + return OConversion::dateFromString ( str ); else return empty; } -- cgit v0.9.0.2