summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/ppp/PPPRunedit.cpp
blob: 23fcd3c2bee6dfebd4e6c09e12f3553002ca8b1d (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
#include <stdio.h>
#include <qcombobox.h>
#include <qmessagebox.h>
#include <qradiobutton.h>
#include <qlineedit.h>
#include <GUIUtils.h>
#include "PPPRunedit.h"

PPPRunEdit::PPPRunEdit( QWidget * Parent ) : PPPRunGUI( Parent ){
}

QString PPPRunEdit::acceptable( void ) {
    return QString();
}

bool PPPRunEdit::commit( PPPData & D ) {
    bool SM = 0;

    TXTM( D.Run.PreConnect, PreConnect_LE, SM );
    TXTM( D.Run.PostConnect, PostConnect_LE, SM );
    TXTM( D.Run.PreDisconnect, PreDisconnect_LE, SM );
    TXTM( D.Run.PostDisconnect, PostDisconnect_LE, SM );
    return SM;
}

void PPPRunEdit::showData( PPPData & D ) {
    STXT( D.Run.PreConnect, PreConnect_LE);
    STXT( D.Run.PostConnect, PostConnect_LE);
    STXT( D.Run.PreDisconnect, PreDisconnect_LE );
    STXT( D.Run.PostDisconnect, PostDisconnect_LE);
}