summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings/ppp/pppmodule.cpp
Unidiff
Diffstat (limited to 'noncore/settings/networksettings/ppp/pppmodule.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings/ppp/pppmodule.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/noncore/settings/networksettings/ppp/pppmodule.cpp b/noncore/settings/networksettings/ppp/pppmodule.cpp
index 40d2455..d6ca88a 100644
--- a/noncore/settings/networksettings/ppp/pppmodule.cpp
+++ b/noncore/settings/networksettings/ppp/pppmodule.cpp
@@ -1,5 +1,7 @@
1#include "pppconfig.h"
1#include "pppmodule.h" 2#include "pppmodule.h"
2#include "pppimp.h" 3//#include "pppimp.h"
4#include "kpppwidget.h"
3#include "interfaceinformationimp.h" 5#include "interfaceinformationimp.h"
4//#include "devices.h" 6//#include "devices.h"
5 7
@@ -53,7 +55,8 @@ bool PPPModule::isOwner(Interface *i){
53 * @return QWidget* pointer to this modules configure. 55 * @return QWidget* pointer to this modules configure.
54 */ 56 */
55QWidget *PPPModule::configure(Interface *i){ 57QWidget *PPPModule::configure(Interface *i){
56 PPPConfigureImp *pppconfig = new PPPConfigureImp(0, "PPPConfig", /* i,*/ false, Qt::WDestructiveClose); 58 qDebug("return ModemWidget");
59 PPPConfigWidget *pppconfig = new PPPConfigWidget( 0, "PPPConfig", false, Qt::WDestructiveClose );
57// pppconfig->setProfile(profile); 60// pppconfig->setProfile(profile);
58 return pppconfig; 61 return pppconfig;
59} 62}
@@ -65,6 +68,7 @@ QWidget *PPPModule::configure(Interface *i){
65QWidget *PPPModule::information(Interface *i){ 68QWidget *PPPModule::information(Interface *i){
66 // We don't have any advanced pppd information widget yet :-D 69 // We don't have any advanced pppd information widget yet :-D
67 // TODO ^ 70 // TODO ^
71 qDebug("return PPPModule::information");
68 InterfaceInformationImp *information = new InterfaceInformationImp(0, "InterfaceSetupImp", i); 72 InterfaceInformationImp *information = new InterfaceInformationImp(0, "InterfaceSetupImp", i);
69 return information; 73 return information;
70} 74}
@@ -86,9 +90,10 @@ QList<Interface> PPPModule::getInterfaces(){
86 * @return Interface* NULL if it was unable to be created. 90 * @return Interface* NULL if it was unable to be created.
87 */ 91 */
88Interface *PPPModule::addNewInterface(const QString &newInterface){ 92Interface *PPPModule::addNewInterface(const QString &newInterface){
89 // If the 93
90 qDebug("try to add iface %s",newInterface.latin1()); 94 qDebug("try to add iface %s",newInterface.latin1());
91 PPPConfigureImp imp(0, "PPPConfigImp"); 95
96 PPPConfigWidget imp(0, "PPPConfigImp", true);
92 imp.showMaximized(); 97 imp.showMaximized();
93 if(imp.exec() == QDialog::Accepted ){ 98 if(imp.exec() == QDialog::Accepted ){
94 qDebug("ACCEPTED"); 99 qDebug("ACCEPTED");