Skip to content

Configure Framework Refactor

Saki edited this page Feb 16, 2014 · 6 revisions

Current framework cost a lot of resource to get a information for configure. We need to change the configure framework. This project aims at replacing the current configure framework with a more scalability framework based on QMap.

Now, a configure will only contains one group of settings. For example: KCGeneralConfiure will contains the [General] group of Cuties settings. And the base module of Cuties - KCConfigure will take over the read and write of the configure file automatically. And the event caused by the change of the values will be processed at the writeConfigure function of KCGeneralConfigure class.

Current Status

Replace all the old framework

In the latest dev branch[0.3.0.6], all the configure has been updated to the latest framework.

writeConfigure and readConfigure function abstract to KCConfigure

As the tiltle, these functions have been abstracted to KCConfigure. The inherit classes only process the event in the read and write configure functions.

A much more abstuct configure framework

Now the configure is nearly complete. We provide a abstruct configure class for all the other configures.