From 89dce758480cc90502ad14b6c4cf80774e6c1845 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 12 Jul 2002 17:14:58 +0000 Subject: - Connection -> ConnectionState - Factory adjustments - Factory function - Refactoring the QListViewItem derived class BTListItem | - BTDeviceItem for RemoteDevices | - BTServiceItem for Services | - BTConnectionItem for ConnectionState - misc bug fixes --- (limited to 'noncore/net/opietooth/manager/popuphelper.cpp') diff --git a/noncore/net/opietooth/manager/popuphelper.cpp b/noncore/net/opietooth/manager/popuphelper.cpp index 2a6dad0..d8404d6 100644 --- a/noncore/net/opietooth/manager/popuphelper.cpp +++ b/noncore/net/opietooth/manager/popuphelper.cpp @@ -1,4 +1,6 @@ +#include "stdpopups.h" + #include "popuphelper.h" using namespace OpieTooth; @@ -12,14 +14,15 @@ PopupHelper::~PopupHelper() { void PopupHelper::insert( int id, popupFactory fact ) { m_map.insert(id, fact ); } -QPopupMenu* PopupHelper::find( int id ) { +QPopupMenu* PopupHelper::find( int id, const Services& ser, QListViewItem* item ) { FactoryMap::Iterator it = m_map.find(id ); if ( it != m_map.end() ) { popupFactory fact = it.data(); - return (*fact)(); + return (*fact)(ser, item); } return 0l; } void PopupHelper::init() { - + insert( 1, newRfcComPopup ); + insert(2, newObexPushPopup ); } -- cgit v0.9.0.2