Re: [PATCH] config: rework code to use GKeyFile instead of GHashTable+GValue



On Tue, 2011-01-18 at 15:17 +0000, Iago Toral wrote:
> 
>  yes, at the moment we are forcing the backend and that is something 
>  that can be improved in the future, however, notice that the API
> does 
>  not expose the GKeyFile in any significant way, so in the future we 
>  should be able to extend and enhance the current system to let users 
>  select other backends without big problems.
> 


What about defining GrlConfig as an abstract base class, and then
implement a child using GKeyFile?

Then, anyone can add another backend just inheriting from GrlConfig and
reimplementing the virtual functions.


	J.A.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]