kdebug.areas

Harri Porten porten at froglogic.com
Tue Jun 28 11:23:05 BST 2005


On Tue, 28 Jun 2005, Stephan Kulow wrote:

> Yeah, we need to revise this for KDE4. Adding areas shouldn't require a change
> in kdelibs ;(

How about using 4 char sequences encoded as an int32?

 cost int myDebugArea = 'konq';
 kdDebug(myDebugArea) << ...

(just have to get rid of the compiler warning).

There *could* be a global registry a la IANA at kde.org but even without
an registration conflicts are less likely and the numbers would still have
some naming converted back to a string.

Harri.







More information about the kde-core-devel mailing list