Diffstat (limited to 'noncore/net/opietooth/manager/obexpopup.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/obexpopup.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/noncore/net/opietooth/manager/obexpopup.cpp b/noncore/net/opietooth/manager/obexpopup.cpp index d1d1b4a..759a452 100644 --- a/noncore/net/opietooth/manager/obexpopup.cpp +++ b/noncore/net/opietooth/manager/obexpopup.cpp | |||
@@ -9,41 +9,39 @@ using namespace Opie::Core; | |||
9 | 9 | ||
10 | /* QT */ | 10 | /* QT */ |
11 | #include <qtimer.h> | 11 | #include <qtimer.h> |
12 | 12 | ||
13 | using namespace OpieTooth; | 13 | using namespace OpieTooth; |
14 | 14 | ||
15 | /* | 15 | /* |
16 | * c'tor init the QAction | 16 | * c'tor init the QAction |
17 | */ | 17 | */ |
18 | ObexPopup::ObexPopup(const OpieTooth::Services& service, OpieTooth::BTDeviceItem* item) | 18 | ObexPopup::ObexPopup(const OpieTooth::Services& service, OpieTooth::BTDeviceItem* item) |
19 | : QPopupMenu(), m_service(service) | 19 | : QPopupMenu(), m_service(service) |
20 | { | 20 | { |
21 | owarn << "ObexPopup c'tor" << oendl; | 21 | odebug << "ObexPopup c'tor" << oendl; |
22 | 22 | ||
23 | m_item = item; | 23 | m_item = item; |
24 | /* connect action */ | 24 | /* connect action */ |
25 | m_push = new QAction( ); // so it's get deleted | 25 | m_push = new QAction( ); // so it's get deleted |
26 | m_push->setText("Push file"); | 26 | m_push->setText("Push file"); |
27 | m_push->addTo( this ); | 27 | m_push->addTo( this ); |
28 | connect(m_push, SIGNAL(activated()), SLOT(slotPush())); | 28 | connect(m_push, SIGNAL(activated()), SLOT(slotPush())); |
29 | } | 29 | } |
30 | 30 | ||
31 | 31 | ||
32 | ObexPopup::~ObexPopup() | 32 | ObexPopup::~ObexPopup() |
33 | { | 33 | { |
34 | delete m_push; | 34 | delete m_push; |
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | void ObexPopup::slotPush() | 38 | void ObexPopup::slotPush() |
39 | { | 39 | { |
40 | QString device = m_item->mac(); | 40 | QString device = m_item->mac(); |
41 | int port = m_service.protocolDescriptorList().last().port(); | 41 | int port = m_service.protocolDescriptorList().last().port(); |
42 | device += "@"; | 42 | odebug << "push something to " << device << " " << port << oendl; |
43 | device += QString::number(port); | 43 | ObexDialog obexDialog(device, port); |
44 | owarn << "push something to " << device << oendl; | ||
45 | ObexDialog obexDialog(device); | ||
46 | QPEApplication::execDialog( &obexDialog ); | 44 | QPEApplication::execDialog( &obexDialog ); |
47 | } | 45 | } |
48 | 46 | ||
49 | 47 | ||