Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/popuphelper.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.h b/noncore/net/opietooth/manager/popuphelper.h index 7485f71..7541ac5 100644 --- a/noncore/net/opietooth/manager/popuphelper.h +++ b/noncore/net/opietooth/manager/popuphelper.h | |||
@@ -2,19 +2,21 @@ | |||
2 | #ifndef OPIE_TOOTH_POPUP_HELPER | 2 | #ifndef OPIE_TOOTH_POPUP_HELPER |
3 | #define OPIE_TOOTH_POPUP_HELPER | 3 | #define OPIE_TOOTH_POPUP_HELPER |
4 | 4 | ||
5 | #include <qlistview.h> | ||
5 | #include <qpopupmenu.h> | 6 | #include <qpopupmenu.h> |
6 | #include <qmap.h> | 7 | #include <qmap.h> |
7 | 8 | ||
9 | #include <services.h> | ||
8 | 10 | ||
9 | namespace OpieTooth { | 11 | namespace OpieTooth { |
10 | typedef QPopupMenu* (*popupFactory)(void); | 12 | typedef QPopupMenu* (*popupFactory)(const Services&, QListViewItem*); |
11 | typedef QMap<int, popupFactory> FactoryMap; | 13 | typedef QMap<int, popupFactory> FactoryMap; |
12 | class PopupHelper { | 14 | class PopupHelper { |
13 | public: | 15 | public: |
14 | PopupHelper(); | 16 | PopupHelper(); |
15 | ~PopupHelper(); | 17 | ~PopupHelper(); |
16 | void insert( int id, popupFactory fact ); | 18 | void insert( int id, popupFactory fact ); |
17 | QPopupMenu* find( int id ); | 19 | QPopupMenu* find( int id, const Services&, QListViewItem* ); |
18 | private: | 20 | private: |
19 | void init(); | 21 | void init(); |
20 | FactoryMap m_map; | 22 | FactoryMap m_map; |