summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/interfaceinformationppp.cpp
blob: 56e1c1f2fc5b42c18e45aadb68d2ee04fc76b819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "interfaceinformationppp.h"
#include "connect.h"
#include "conwindow.h"

/* OPIE */
#include <opie2/odebug.h>
using namespace Opie::Core;

/* QT */
#include <qpushbutton.h>
#include <qlabel.h>
#include <qmessagebox.h>
#include <qabstractlayout.h>

#ifdef QWS
#else
 #define showMaximized show
#endif

/**
 * Constructor for the InterfaceInformationImp class.  This class pretty much
 * just display's information about the interface that is passed to it.
 */
InterfaceInformationPPP::InterfaceInformationPPP(QWidget *parent, const char *name, Interface *i, WFlags )
    :InterfaceInformationImp(parent, name, i, Qt::WStyle_ContextHelp)
{
    odebug << "InterfaceInformationPPP::InterfaceInformationPPP " << name << "" << oendl;
    con = new ConnectWidget( (InterfacePPP*)i, this, "con" );
    con->setSizePolicy( QSizePolicy(QSizePolicy::MinimumExpanding,
                                    QSizePolicy::Fixed) );

    macAddressLabel->hide();
    subnetMaskLabel->hide();
    broadcastLabel->hide();
    TextLabel23->hide();
    TextLabel21->hide();
    TextLabel24->hide();

     InterfaceInformationLayout->addWidget( con, 1, 0 );
     connect(i, SIGNAL(begin_connect()),con, SLOT(preinit()));
     connect(i, SIGNAL(hangup_now() ), con, SLOT(cancelbutton() ) );
}