author | harlekin <harlekin> | 2002-07-21 20:02:13 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-21 20:02:13 (UTC) |
commit | 086b00610edfb25fb25cf54a0f8da8a16b55246a (patch) (unidiff) | |
tree | e16de393854040440ebc5ceeb6cbd48b27aff605 /noncore/net/opietooth/manager/popuphelper.cpp | |
parent | 8abe7e0604c930cbb46308febeec67d5bf70d255 (diff) | |
download | opie-086b00610edfb25fb25cf54a0f8da8a16b55246a.zip opie-086b00610edfb25fb25cf54a0f8da8a16b55246a.tar.gz opie-086b00610edfb25fb25cf54a0f8da8a16b55246a.tar.bz2 |
connection to popups on services
Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/popuphelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp index ba91e04..4a4daf2 100644 --- a/noncore/net/opietooth/manager/popuphelper.cpp +++ b/noncore/net/opietooth/manager/popuphelper.cpp | |||
@@ -8,25 +8,25 @@ using namespace OpieTooth; | |||
8 | PopupHelper::PopupHelper() { | 8 | PopupHelper::PopupHelper() { |
9 | init(); | 9 | init(); |
10 | } | 10 | } |
11 | 11 | ||
12 | PopupHelper::~PopupHelper() { | 12 | PopupHelper::~PopupHelper() { |
13 | 13 | ||
14 | } | 14 | } |
15 | 15 | ||
16 | void PopupHelper::insert( int id, popupFactory fact ) { | 16 | void PopupHelper::insert( int id, popupFactory fact ) { |
17 | m_map.insert(id, fact ); | 17 | m_map.insert(id, fact ); |
18 | } | 18 | } |
19 | 19 | ||
20 | QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { | 20 | QPopupMenu* PopupHelper::find( int id, const Services& ser, BTDeviceItem* item ) { |
21 | //qWarning("find"); | 21 | //qWarning("find"); |
22 | FactoryMap::Iterator it = m_map.find(id ); | 22 | FactoryMap::Iterator it = m_map.find(id ); |
23 | if ( it != m_map.end() ) { | 23 | if ( it != m_map.end() ) { |
24 | //qWarning("found"); | 24 | //qWarning("found"); |
25 | popupFactory fact = it.data(); | 25 | popupFactory fact = it.data(); |
26 | return (*fact)(ser, item); | 26 | return (*fact)(ser, item); |
27 | } | 27 | } |
28 | return 0l; | 28 | return 0l; |
29 | } | 29 | } |
30 | 30 | ||
31 | void PopupHelper::init() { | 31 | void PopupHelper::init() { |
32 | insert( 4355, newRfcComPopup ); | 32 | insert( 4355, newRfcComPopup ); |