summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/pppimp.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/ppp/pppimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/pppimp.cpp33
1 files changed, 27 insertions, 6 deletions
diff --git a/noncore/settings/networksettings/ppp/pppimp.cpp b/noncore/settings/networksettings/ppp/pppimp.cpp
index d3094fc..6588bbc 100644
--- a/noncore/settings/networksettings/ppp/pppimp.cpp
+++ b/noncore/settings/networksettings/ppp/pppimp.cpp
@@ -1,2 +1,11 @@
1
2#include <qcombobox.h>
3#include <qpushbutton.h>
4
1#include "pppimp.h" 5#include "pppimp.h"
6#include "devices.h"
7#include "modem.h"
8#include "modeminfo.h"
9//#include "pppdata.h"
10
2 11
@@ -4,2 +13,5 @@ PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal,
4 13
14 for(int i = 0; devices[i]; i++)
15 ComboBoxDevice->insertItem(devices[i]);
16 connect(PushButtonQuery, SIGNAL(clicked()), SLOT(queryModem()));
5} 17}
@@ -9,3 +21,3 @@ PPPConfigureImp::PPPConfigureImp( QWidget* parent, const char* name, bool modal,
9 * @param peer the peer file to edit. 21 * @param peer the peer file to edit.
10 */ 22 */
11void PPPConfigureImp::setPeer(const QString &newPeer){ 23void PPPConfigureImp::setPeer(const QString &newPeer){
@@ -16,3 +28,3 @@ void PPPConfigureImp::setPeer(const QString &newPeer){
16 * Save the settings for the current peer. 28 * Save the settings for the current peer.
17 */ 29 */
18void PPPConfigureImp::accept(){ 30void PPPConfigureImp::accept(){
@@ -29,4 +41,4 @@ crtscts - flow control enabled
29name <name> - user name (and do secret file) 41name <name> - user name (and do secret file)
30*/ 42*/
31 43
32 // Make sure it is set in interfaces so pon/off can be used. 44 // Make sure it is set in interfaces so pon/off can be used.
@@ -36,4 +48,13 @@ name <name> - user name (and do secret file)
36} 48}
37 49
38// pppconfigureimp.h 50void PPPConfigureImp::queryModem()
51{
52
53 Modem::modem = new Modem();
54 qDebug("setting device");
55// gpppdata.setModemDevice(ComboBoxDevice->currentText());
56 qDebug("open dialog");
57 ModemTransfer mt(this);
58 mt.exec();
59}
39 60