[bt-devel] refactoring::namespace

Olaf Radicke briefkasten at olaf-radicke.de
Wed Jul 7 05:47:59 MST 2010


Hi!

I see busy activities in subversion. Good. Here my proposal for new name space 
hierarchy:
http://devel.bibletime.info/wiki/User:OlafRadicke/portal:refactoring/namespace_hierarchy

next...

The class BibleTime is a part of the GUI, so i proposal a rename to 
BibleTtime::GUI::MainWindow.

...next...

I think, the parsing of command-line options in BibleTime.cpp is non the
best place. Better in Main.cpp or in a new class. If I want to implement a 
function without X (Unix or Linux), does not go in such a way.

...next...

For the init of the backend, it's better place out site of the GUI - i think.
So a new class for init backend (and scannings of OS-specific things)
is a goot idea - i think.

...next...

In this moment, i don't no, is this better, wen write a proxy-class for
QSettings. 

if you have fear, which is QSettings too slowly, because of many to write 
and read operations one hart disc, so a proxy-class can buffer. But is
trust, all object those using the setting-proxy, have the same data (up to date).

In namespace "CBTConfig" we have a "half proxy-class". If we convert into 
a real class we can buffer the write and read operations. 
  
My proposal: "CBTConfig" -> BibleTime::Config::Proxy

with friendly greet

Olaf Radicke



More information about the bt-devel mailing list