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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp
index 1571fab..7da7002 100644
--- a/noncore/net/opietooth/manager/popuphelper.cpp
+++ b/noncore/net/opietooth/manager/popuphelper.cpp
@@ -1,36 +1,35 @@
1 1
2#include "stdpopups.h" 2#include "stdpopups.h"
3
4#include "popuphelper.h" 3#include "popuphelper.h"
5 4
6using namespace OpieTooth; 5using namespace OpieTooth;
7 6
8PopupHelper::PopupHelper() { 7PopupHelper::PopupHelper() {
9 init(); 8 init();
10} 9}
11 10
12PopupHelper::~PopupHelper() { 11PopupHelper::~PopupHelper() {
13
14} 12}
15 13
16void PopupHelper::insert( int id, popupFactory fact ) { 14void PopupHelper::insert( int id, popupFactory fact ) {
17 m_map.insert(id, fact ); 15 m_map.insert(id, fact );
18} 16}
19 17
20QPopupMenu* PopupHelper::find( int id, const Services& ser, BTDeviceItem* item ) { 18QPopupMenu* PopupHelper::find( int id, const Services& ser, BTDeviceItem* item ) {
21 //qWarning("find"); 19 //qWarning("find");
22 FactoryMap::Iterator it = m_map.find(id ); 20 FactoryMap::Iterator it = m_map.find(id );
23 if ( it != m_map.end() ) { 21 if ( it != m_map.end() ) {
24 //qWarning("found"); 22 //qWarning("found");
25 popupFactory fact = it.data(); 23 popupFactory fact = it.data();
26 return (*fact)(ser, item); 24 return (*fact)(ser, item);
27 } 25 }
28 return 0l; 26 return 0l;
29} 27}
30 28
31void PopupHelper::init() { 29void PopupHelper::init() {
32 insert( 4355, newRfcComPopup ); 30 insert( 4355, newRfcComPopup );
33 insert( 4353, newRfcComPopup ); 31 insert( 4353, newRfcComPopup );
34 insert( 4357, newObexPushPopup ); 32 insert( 4357, newObexPushPopup );
35 insert( 4358, newObexPushPopup ); 33 insert( 4358, newObexPushPopup );
34 insert( 4374, newPanPopup );
36} 35}