00001 #include "interfaceinformationppp.h"
00002 #include "connect.h"
00003 #include "conwindow.h"
00004
00005
00006 #include <opie2/odebug.h>
00007 using namespace Opie::Core;
00008
00009
00010 #include <qpushbutton.h>
00011 #include <qlabel.h>
00012 #include <qmessagebox.h>
00013 #include <qabstractlayout.h>
00014
00015 #ifdef QWS
00016 #else
00017 #define showMaximized show
00018 #endif
00019
00024 InterfaceInformationPPP::InterfaceInformationPPP(QWidget *parent, const char *name, Interface *i, WFlags )
00025 :InterfaceInformationImp(parent, name, i, Qt::WStyle_ContextHelp)
00026 {
00027 odebug << "InterfaceInformationPPP::InterfaceInformationPPP " << name << "" << oendl;
00028 con = new ConnectWidget( (InterfacePPP*)i, this, "con" );
00029 con->setSizePolicy( QSizePolicy(QSizePolicy::MinimumExpanding,
00030 QSizePolicy::Fixed) );
00031
00032 macAddressLabel->hide();
00033 subnetMaskLabel->hide();
00034 broadcastLabel->hide();
00035 TextLabel23->hide();
00036 TextLabel21->hide();
00037 TextLabel24->hide();
00038
00039 InterfaceInformationLayout->addWidget( con, 1, 0 );
00040 connect(i, SIGNAL(begin_connect()),con, SLOT(preinit()));
00041 connect(i, SIGNAL(hangup_now() ), con, SLOT(cancelbutton() ) );
00042 }
00043
00044
00045