Coding Standards

Here are a few pointers regarding coding standards in KPhotoAlbum. Please do stick to them, so the code is easier to get into for new people, and easier to maintain for everyone.

Include files and forward declarations

To speed up compilation and make things easier to understand, you should be careful about what you include, and when cleaning up code, please check whether you need all the include files.

In header files you should try hard to see if you really need an include file at all, or whether you can get by with only a forward declaration.

A forward declaration looks like:

     class MyClass;
     namespace MyNameSpace { class MyClass; }

You can get by with only a forward declaration when all you do is one of these:

In contrast you do need the include files when:

Generated on Sun Jul 19 11:01:16 2009 for KPhotoAlbum by  doxygen 1.5.8