summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/popuphelper.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/popuphelper.cpp11
1 files changed, 8 insertions, 3 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
@@ -9,10 +9,13 @@ PopupHelper::PopupHelper() {
9 init(); 9 init();
10} 10}
11
11PopupHelper::~PopupHelper() { 12PopupHelper::~PopupHelper() {
12 13
13} 14}
15
14void PopupHelper::insert( int id, popupFactory fact ) { 16void PopupHelper::insert( int id, popupFactory fact ) {
15 m_map.insert(id, fact ); 17 m_map.insert(id, fact );
16} 18}
19
17QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { 20QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) {
18 //qWarning("find"); 21 //qWarning("find");
@@ -21,10 +24,12 @@ QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item
21 //qWarning("found"); 24 //qWarning("found");
22 popupFactory fact = it.data(); 25 popupFactory fact = it.data();
23 return (*fact)(ser, item); 26 return (*fact)(ser, item);
24 } 27 }
25 return 0l; 28 return 0l;
26} 29}
30
27void PopupHelper::init() { 31void PopupHelper::init() {
28 insert( 1, newRfcComPopup ); 32 insert( 4355, newRfcComPopup );
29 insert(2, newObexPushPopup ); 33 insert( 4353, newRfcComPopup );
34 insert( 3, newObexPushPopup );
30} 35}