Comment 4 for bug 1283471

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Intesting!

Do you know the X11 Atom API?

http://tronche.com/gui/x/xlib/window-information/XInternAtom.html
used in:
/src/gui/kernel/qdnd_x11.cpp

We may do it quite similar.

This way we can easily change
new EngineMicrophone(group, m_pEffectsManager);

by
new EngineMicrophone(MixxxAtom(group), m_pEffectsManager);

And work inside with the Atom IDs

MIxxxAtom() will look like that

typedef AtomID QString*

AtomID MixxxAtom(QString name) {
   AtomID = m_IDHash[name];
   if (!AtomID) {
      AtomID = new QString(name);
      m_IDHash[name] = AtomID
   }
  return AtomID;
}

What do you think?