[Kde-games-devel] Forwarding includes for libkdegames

Matt Williams matt at milliams.com
Fri Dec 29 16:09:25 CET 2006


A number of weeks ago, kdelibs went the way of Qt and set up forwarding 
include headers for its classes[1]. So that now, to use KMainWindow, instead 
of doing
	#include <kmainwindow.h>
one would do
	#include <KDE/KMainWindow>

This has the effect that the name of the file you include matches the name of 
the class you want to use.

Does the KDE policy allow us to install some forwarding headers for 
libkdegames so that instead of
	#include <khighscore.h>
it would be
	#include <KDEGAMES/KHighscore>
(of course the directory name "KDEGAMES" is up for debate)
and also do you think it would be beneficial?

Cheers,
Matt Williams

[1] http://websvn.kde.org/trunk/KDE/kdelibs/includes/
-- 
http://milliams.com


More information about the kde-games-devel mailing list