Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/popuphelper.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp index 4ef1ed5..ba91e04 100644 --- a/noncore/net/opietooth/manager/popuphelper.cpp +++ b/noncore/net/opietooth/manager/popuphelper.cpp @@ -8,12 +8,15 @@ using namespace OpieTooth; PopupHelper::PopupHelper() { init(); } + PopupHelper::~PopupHelper() { } + void PopupHelper::insert( int id, popupFactory fact ) { m_map.insert(id, fact ); } + QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { //qWarning("find"); FactoryMap::Iterator it = m_map.find(id ); @@ -24,7 +27,9 @@ QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item } return 0l; } + void PopupHelper::init() { - insert( 1, newRfcComPopup ); - insert(2, newObexPushPopup ); + insert( 4355, newRfcComPopup ); + insert( 4353, newRfcComPopup ); + insert( 3, newObexPushPopup ); } |