Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/popuphelper.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp index 2a6dad0..d8404d6 100644 --- a/noncore/net/opietooth/manager/popuphelper.cpp +++ b/noncore/net/opietooth/manager/popuphelper.cpp @@ -1,2 +1,4 @@ +#include "stdpopups.h" + #include "popuphelper.h" @@ -14,3 +16,3 @@ void PopupHelper::insert( int id, popupFactory fact ) { } -QPopupMenu* PopupHelper::find( int id ) { +QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { FactoryMap::Iterator it = m_map.find(id ); @@ -18,3 +20,3 @@ QPopupMenu* PopupHelper::find( int id ) { popupFactory fact = it.data(); - return (*fact)(); + return (*fact)(ser, item); } @@ -23,3 +25,4 @@ QPopupMenu* PopupHelper::find( int id ) { void PopupHelper::init() { - + insert( 1, newRfcComPopup ); + insert(2, newObexPushPopup ); } |