[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] Another libkabc thing
From:       Cornelius Schumacher <schumacher () kde ! org>
Date:       2002-07-05 9:16:03
[Download RAW message or body]

On Friday 05 July 2002 01:34, Reinhold Kainhofer wrote:
> Can't the KABC::Addressee:phoneNumber and KABC::Addressee::address set the
> correct type if no entry was found, i.e. instead of
>    return Address();
> use a
>    return Address(type);
> and in phoneNumber instead of
>   return PhoneNumber();
> use a
>   return PhoneNumber(QString(), type);
>
> This would make sense, since then the phoneNumber or address returned by
> the functions always has the correct type set, and the developer would not
> have to bother about setting this just to make sure it is correct.

Sounds good. But we have to make sure that the returned object is empty 
(!isEmpty()), so that it's possible to detect, whether the an address with 
the given type exists or not.

-- 
Cornelius Schumacher <schumacher.kde.org>

_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic