From 536f6562d6f12210527814afbcd05a02d05afe83 Mon Sep 17 00:00:00 2001 From: harlekin Date: Sun, 21 Jul 2002 21:52:18 +0000 Subject: the obex service popup handler --- (limited to 'noncore/net/opietooth/manager/obexpopup.cpp') diff --git a/noncore/net/opietooth/manager/obexpopup.cpp b/noncore/net/opietooth/manager/obexpopup.cpp new file mode 100644 index 0000000..a550648 --- a/dev/null +++ b/noncore/net/opietooth/manager/obexpopup.cpp @@ -0,0 +1,41 @@ + +#include + +#include "obexdialog.h" +#include "obexpopup.h" + +using namespace OpieTooth; + +/* + * c'tor init the QAction + */ +ObexPopup::ObexPopup() + : QPopupMenu() { + qWarning("RfcCommPopup c'tor"); + + QAction* a; + + /* connect action */ + a = new QAction( ); // so it's get deleted + a->setText("Push file"); + a->addTo( this ); + connect( a, SIGNAL( activated() ), + this, SLOT( slotPush() ) ); +}; + + +ObexPopup::~ObexPopup() { +} + + +void ObexPopup::slotPush() { + + qWarning("push something"); + + + ObexDialog obexDialog; + obexDialog.showMaximized(); + obexDialog.exec(); +} + + -- cgit v0.9.0.2