From 411ac6f9199b1aae2b6a40e7a8cf6bfea260acba Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 09 Jul 2002 18:28:19 +0000 Subject: Add a generic class for the sensitive QPopupMenu --- (limited to 'noncore/net/opietooth/manager/popuphelper.h') diff --git a/noncore/net/opietooth/manager/popuphelper.h b/noncore/net/opietooth/manager/popuphelper.h new file mode 100644 index 0000000..7485f71 --- a/dev/null +++ b/noncore/net/opietooth/manager/popuphelper.h @@ -0,0 +1,25 @@ + +#ifndef OPIE_TOOTH_POPUP_HELPER +#define OPIE_TOOTH_POPUP_HELPER + +#include +#include + + +namespace OpieTooth { + typedef QPopupMenu* (*popupFactory)(void); + typedef QMap FactoryMap; + class PopupHelper { + public: + PopupHelper(); + ~PopupHelper(); + void insert( int id, popupFactory fact ); + QPopupMenu* find( int id ); + private: + void init(); + FactoryMap m_map; + + }; +}; + +#endif -- cgit v0.9.0.2