Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/popuphelper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp index 26c4b02..4ef1ed5 100644 --- a/noncore/net/opietooth/manager/popuphelper.cpp +++ b/noncore/net/opietooth/manager/popuphelper.cpp | |||
@@ -6,25 +6,25 @@ | |||
6 | using namespace OpieTooth; | 6 | using namespace OpieTooth; |
7 | 7 | ||
8 | PopupHelper::PopupHelper() { | 8 | PopupHelper::PopupHelper() { |
9 | init(); | 9 | init(); |
10 | } | 10 | } |
11 | PopupHelper::~PopupHelper() { | 11 | PopupHelper::~PopupHelper() { |
12 | 12 | ||
13 | } | 13 | } |
14 | void PopupHelper::insert( int id, popupFactory fact ) { | 14 | void PopupHelper::insert( int id, popupFactory fact ) { |
15 | m_map.insert(id, fact ); | 15 | m_map.insert(id, fact ); |
16 | } | 16 | } |
17 | QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { | 17 | QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { |
18 | qWarning("find"); | 18 | //qWarning("find"); |
19 | FactoryMap::Iterator it = m_map.find(id ); | 19 | FactoryMap::Iterator it = m_map.find(id ); |
20 | if ( it != m_map.end() ) { | 20 | if ( it != m_map.end() ) { |
21 | qWarning("found"); | 21 | //qWarning("found"); |
22 | popupFactory fact = it.data(); | 22 | popupFactory fact = it.data(); |
23 | return (*fact)(ser, item); | 23 | return (*fact)(ser, item); |
24 | } | 24 | } |
25 | return 0l; | 25 | return 0l; |
26 | } | 26 | } |
27 | void PopupHelper::init() { | 27 | void PopupHelper::init() { |
28 | insert( 1, newRfcComPopup ); | 28 | insert( 1, newRfcComPopup ); |
29 | insert(2, newObexPushPopup ); | 29 | insert(2, newObexPushPopup ); |
30 | } | 30 | } |