[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Proposal: virtualify KConfigBase::parseConfigFiles()
From: <pbrown () redhat ! com>
Date: 2000-07-06 23:39:47
[Download RAW message or body]
On Thu, 6 Jul 2000, Charles wrote:
>
> I'm using KSimpleConfig to create a stupid rediculous file format, and I want
> it to support KIO-files. Well, rather than breaking modularity, I just derive
> from KSimpleConfig, and override the destructor and parseConfigFiles so that it
> will save and open via the NetAccess class.
>
> Problem: it won't work, parseConfigFiles is non-virtual, and there would be no
> other way to read the file off the network.
>
> So, I propose that we make that method virtual to allow this. (Since it's
> already protected, it seems illogical for it to not be virtual in the first
> place :)
>
Why don't you simply implement a KConfigBackEnd?
--
Preston Brown
pbrown@redhat.com Red Hat, Inc.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic