summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/popuphelper.cpp
authorharlekin <harlekin>2002-07-20 23:54:44 (UTC)
committer harlekin <harlekin>2002-07-20 23:54:44 (UTC)
commit76d7938ec6b89aa11f54f9fbdad40bb358b4886a (patch) (side-by-side diff)
tree0dfa86240e9674cefa489d85ac4841a94d43e175 /noncore/net/opietooth/manager/popuphelper.cpp
parent594dfd3535846a536cebdb3381f4858239404c49 (diff)
downloadopie-76d7938ec6b89aa11f54f9fbdad40bb358b4886a.zip
opie-76d7938ec6b89aa11f54f9fbdad40bb358b4886a.tar.gz
opie-76d7938ec6b89aa11f54f9fbdad40bb358b4886a.tar.bz2
update
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
@@ -8,23 +8,28 @@ using namespace OpieTooth;
PopupHelper::PopupHelper() {
init();
}
+
PopupHelper::~PopupHelper() {
}
+
void PopupHelper::insert( int id, popupFactory fact ) {
m_map.insert(id, fact );
}
+
QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) {
//qWarning("find");
FactoryMap::Iterator it = m_map.find(id );
if ( it != m_map.end() ) {
//qWarning("found");
popupFactory fact = it.data();
- return (*fact)(ser, item);
+ return (*fact)(ser, item);
}
return 0l;
}
+
void PopupHelper::init() {
- insert( 1, newRfcComPopup );
- insert(2, newObexPushPopup );
+ insert( 4355, newRfcComPopup );
+ insert( 4353, newRfcComPopup );
+ insert( 3, newObexPushPopup );
}