Patch for kabc resources
schumacher at kde.org
Wed Jan 7 00:24:07 GMT 2004
On Tuesday 06 January 2004 18:45, Tobias Koenig wrote:
> On Tue, Jan 06, 2004 at 05:15:38PM +0100, Holger Freyther wrote:
> > On Tuesday 06 January 2004 17:04, Tobias Koenig wrote:
> > > On Tue, Jan 06, 2004 at 02:57:39PM +0100, Bo Thorsen wrote:
> > > I'd like to keep this method to have an additional abstraction
> > > layer to add new config items. Cornelius?
> > In what way to add? This is a virtual function right? So we want to
> > force Resources to call the base class method so we can add config
> > items there later? This sounds broken. In the case where we
> > want/must to be called we should use other techniques.
> The writeConfig() method of the base class has to be called, because
> KRES::Resource writes some standard config items to the file.
> Is there any nice design pattern wich covers this issue, so that the
> method of the base class don't have to be called from every
> implementation explicitely?
"Template Method". We would need to make the writeConfig in the subclass
a hook method.
Cornelius Schumacher <schumacher at kde.org>
More information about the kde-core-devel