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

List:       kde-core-devel
Subject:    Re: KAboutData(const KAboutData &)
From:       Simon Hausmann <sh () caldera ! de>
Date:       2001-03-25 17:58:04
[Download RAW message or body]

On Sun, Mar 25, 2001 at 09:46:19AM -0800, Charles Samuels wrote:
> 
> Are there any arguments against me giving KAboutData a copy constructor?

Then you should make all related classes completely value based (KAboutPerson,
etc.) and also add an assignment operator, IMHO.
 
> Each Noatun plugin will have a function capable of returning KAboutData, 
> where the framework will create the KAboutDialog from that.

Usually there exists only one KAboutData object per instance, so what about
retrieving a pointer to the plugin's KAboutData instead? (like it is done
for kparts components for example)

(of course making clear that the ownership remains with the plugin)

Bye,
 Simon

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

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