#ifndef OPIE_TOOTH_POPUP_HELPER #define OPIE_TOOTH_POPUP_HELPER #include #include #include #include namespace OpieTooth { typedef QPopupMenu* (*popupFactory)(const Services&, BTDeviceItem*); typedef QMap FactoryMap; class PopupHelper { public: PopupHelper(); ~PopupHelper(); void insert( int id, popupFactory fact ); QPopupMenu* find( int id, const Services&, BTDeviceItem* ); private: void init(); FactoryMap m_map; }; }; #endif