[bt-devel] refactoring::namespace

Jaak Ristioja Ristioja at gmail.com
Wed Jul 7 08:30:31 MST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07.07.2010 15:47, Olaf Radicke wrote:
> 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

I think the source code needs so much refactoring that not much of that hierarchy will
survive. I would settle for BibleTime::Core, BibleTime::Gui (not GUI) and BibleTime::Test.
Right now I think we don't need BibleTime::Test at all. And the Util stuff can be directly
under BibleTime::

But I think at the moment there are more urgent matters than namespaces.

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

Agreed.

> 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.

Agreed.

> 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.

Yeah, perhaps something like that.

> 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

Personally, I'd like to move to QSettings entirely. What we need more, is to write a
specification for the format of the configuration file.


Jaak

PS: Patches are also welcome! :)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)

iQgcBAEBAgAGBQJMNJ17AAoJEFqwhAoGc/hvygQ//3v2xxkBpSaxP5Gn3xuug3OO
mnWGdd+Qx5ufigsIgXHNCDsls/ZDxMVeub/jzp/IxC5iO5m8Vv7wlW7N04nKQITm
Lw2kOkwMFgDl5z0dsCkLm4ETlf5KpmR6hX8cSDAQyso440dJOA0tW99wl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