author | harlekin <harlekin> | 2002-07-21 20:03:36 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-07-21 20:03:36 (UTC) |
commit | 4c6e07cab401c874267c3c25bd42dfef035653a6 (patch) (side-by-side diff) | |
tree | f5b53aad8bd2784e45006e4a6ed1dc6fa343996a /noncore/net/opietooth/manager/rfcpopup.cpp | |
parent | 086b00610edfb25fb25cf54a0f8da8a16b55246a (diff) | |
download | opie-4c6e07cab401c874267c3c25bd42dfef035653a6.zip opie-4c6e07cab401c874267c3c25bd42dfef035653a6.tar.gz opie-4c6e07cab401c874267c3c25bd42dfef035653a6.tar.bz2 |
forgot something
Diffstat (limited to 'noncore/net/opietooth/manager/rfcpopup.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/rfcpopup.cpp | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/rfcpopup.cpp b/noncore/net/opietooth/manager/rfcpopup.cpp new file mode 100644 index 0000000..1b53f4b --- a/dev/null +++ b/noncore/net/opietooth/manager/rfcpopup.cpp @@ -0,0 +1,81 @@ + +#include <qtimer.h> + +#include "pppdialog.h" +#include "rfcpopup.h" + +using namespace OpieTooth; + +/* + * c'tor init the QAction + */ +RfcCommPopup::RfcCommPopup() + : QPopupMenu() { + qWarning("RfcCommPopup c'tor"); + + QAction* a; + + /* connect action */ + a = new QAction( ); // so it's get deleted + a->setText("Connect"); + a->addTo( this ); + connect( a, SIGNAL( activated() ), + this, SLOT( slotConnect() ) ); + + + /* disconnect action */ + a = new QAction( ); + a->setText("Disconnect"); + a->addTo( this ); + connect( a, SIGNAL( activated() ) , + this, SLOT( slotDisconnect() ) ); + + + /* foo action */ + a = new QAction( ); + a->setText("Foo"); + a->addTo( this ); + connect( a, SIGNAL( activated() ), + this, SLOT( slotFoo() ) ); + + + /* bar action */ + a = new QAction( ); + a->setText( "Bar" ); + a->addTo( this ); + connect( a, SIGNAL( activated() ), + this, SLOT( slotBar() ) ); + +}; + + +RfcCommPopup::~RfcCommPopup() { +/* delete m_con; + delete m_dis; + delete m_foo; + delete m_bar; */ +} + + +void RfcCommPopup::slotConnect() { + qWarning("connect"); + PPPDialog pppDialog; + pppDialog.showMaximized(); + pppDialog.exec(); +} + + +void RfcCommPopup::slotDisconnect() { + qWarning("slot disconnected"); +} + + +void RfcCommPopup::slotFoo() { + qWarning("slotFoo"); +} + + +void RfcCommPopup::slotBar() { + qWarning("slotBar"); +}; + |