#include "accessiblefactory.h" #include #include "panelview.h" #include "desktopview.h" #include "plasmaapp.h" QAccessibleInterface* Plasma::accessibleInterfaceFactory(const QString &key, QObject *object) { Q_UNUSED(key) if (Plasma::Applet *applet = qobject_cast(object)) return new AccessiblePlasmaApplet(applet); if (PanelView *view = qobject_cast(object)) return new AccessiblePlasmaPanelView(view); if (Plasma::View *view = qobject_cast(object)) return new AccessiblePlasmaView(view); if (PlasmaApp *app = qobject_cast(object)) return new AccessiblePlasmaApp(app); return 0; }