author | zecke <zecke> | 2002-07-13 13:31:50 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-13 13:31:50 (UTC) |
commit | 21e275324433ac4902c89997b53cbb042bdca9ab (patch) (unidiff) | |
tree | 3c1aca780dcc3ed36cae580cd69eb25f0b6fc2f3 /noncore/net/opietooth/manager/popuphelper.cpp | |
parent | d7f3722f9b7913731978437085b14cc2cccbfa24 (diff) | |
download | opie-21e275324433ac4902c89997b53cbb042bdca9ab.zip opie-21e275324433ac4902c89997b53cbb042bdca9ab.tar.gz opie-21e275324433ac4902c89997b53cbb042bdca9ab.tar.bz2 |
Factory code is in place... aye
Now we just need FactoryImpl of
OBEX,RfcCom,VoiceGateWay
There will be one small adjustment though
QListViewItem -> BTDeviceItem
Diffstat (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/popuphelper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp index d8404d6..26c4b02 100644 --- a/noncore/net/opietooth/manager/popuphelper.cpp +++ b/noncore/net/opietooth/manager/popuphelper.cpp | |||
@@ -15,8 +15,10 @@ 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 | FactoryMap::Iterator it = m_map.find(id ); | 19 | FactoryMap::Iterator it = m_map.find(id ); |
19 | if ( it != m_map.end() ) { | 20 | if ( it != m_map.end() ) { |
21 | qWarning("found"); | ||
20 | popupFactory fact = it.data(); | 22 | popupFactory fact = it.data(); |
21 | return (*fact)(ser, item); | 23 | return (*fact)(ser, item); |
22 | } | 24 | } |