interface names [Was: on documentation]

Andreas Pakulat apaku at gmx.de
Sun Feb 1 01:23:16 UTC 2009


On 01.02.09 02:01:03, Aleix Pol wrote:
> I have seen we can use: <classname>_iid, it is actually defined by
> KDEV_DECLARE_EXTENSION_INTERFACE_NS, so we don't need another one...

Thats pretty ugly and you need to look into the macro for the
extension-iface declaration (in iextension.h or even qtdesigner code).

I'd rather have 

static const QString& id() {
  return <classname>_iid;
}

(implementation and declaration need to be split of course).

Thats a lot nicer, IMHO.

Andreas

-- 
You will remember something that you should not have forgotten.




More information about the KDevelop-devel mailing list