00001 00002 #include "obexdialog.h" 00003 #include "obexpopup.h" 00004 00005 /* OPIE */ 00006 #include <qpe/qpeapplication.h> 00007 #include <opie2/odebug.h> 00008 using namespace Opie::Core; 00009 00010 /* QT */ 00011 #include <qtimer.h> 00012 00013 using namespace OpieTooth; 00014 00015 /* 00016 * c'tor init the QAction 00017 */ 00018 ObexPopup::ObexPopup() 00019 : QPopupMenu() 00020 { 00021 owarn << "RfcCommPopup c'tor" << oendl; 00022 00023 QAction* a; 00024 00025 /* connect action */ 00026 a = new QAction( ); // so it's get deleted 00027 a->setText("Push file"); 00028 a->addTo( this ); 00029 connect( a, SIGNAL( activated() ), 00030 this, SLOT( slotPush() ) ); 00031 }; 00032 00033 00034 ObexPopup::~ObexPopup() 00035 {} 00036 00037 00038 void ObexPopup::slotPush() 00039 { 00040 00041 owarn << "push something" << oendl; 00042 00043 ObexDialog obexDialog; 00044 QPEApplication::execDialog( &obexDialog ); 00045 } 00046 00047
1.4.2