Diffstat (limited to 'noncore/settings/networksettings2/gprs') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/gprs/GPRS_NNI.cpp | 5 | ||||
-rw-r--r-- | noncore/settings/networksettings2/gprs/GPRS_NNI.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp b/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp index bf8cc59..2dd54ff 100644 --- a/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp +++ b/noncore/settings/networksettings2/gprs/GPRS_NNI.cpp | |||
@@ -198,34 +198,37 @@ short AGPRSDevice::generateFile( SystemFile & SF, | |||
198 | 198 | ||
199 | if( ! Data.DNS2.isEmpty() ) { | 199 | if( ! Data.DNS2.isEmpty() ) { |
200 | SF << "nameserver " | 200 | SF << "nameserver " |
201 | << Data.DNS2 | 201 | << Data.DNS2 |
202 | << " # profile " | 202 | << " # profile " |
203 | << removeSpaces( networkSetup()->name() ) | 203 | << removeSpaces( networkSetup()->name() ) |
204 | <<oendl; | 204 | <<oendl; |
205 | } | 205 | } |
206 | } | 206 | } |
207 | return 1; | 207 | return 1; |
208 | } | 208 | } |
209 | 209 | ||
210 | bool AGPRSDevice::openFile( SystemFile & SF ) { | 210 | bool AGPRSDevice::openFile( SystemFile & SF, QStringList & SL ) { |
211 | if( SF.name() == "peers" ) { | 211 | if( SF.name() == "peers" ) { |
212 | SL << "/etc" << "ppp" << "peers"; | ||
212 | SF.setPath( | 213 | SF.setPath( |
213 | QString( "/etc/ppp/peers/" ) + | 214 | QString( "/etc/ppp/peers/" ) + |
214 | removeSpaces( networkSetup()->name() ) | 215 | removeSpaces( networkSetup()->name() ) |
215 | ); | 216 | ); |
216 | return 1; | 217 | return 1; |
217 | } else if ( SF.name() == "chatscripts" ) { | 218 | } else if ( SF.name() == "chatscripts" ) { |
219 | SL << "/etc" << "chatscripts"; | ||
218 | SF.setPath( | 220 | SF.setPath( |
219 | QString( "/etc/chatscripts/" ) + | 221 | QString( "/etc/chatscripts/" ) + |
220 | removeSpaces( networkSetup()->name() ) | 222 | removeSpaces( networkSetup()->name() ) |
221 | ); | 223 | ); |
222 | return 1; | 224 | return 1; |
225 | SL << "/etc" << "ppp"; | ||
223 | } else if ( SF.name() == "extra" ) { | 226 | } else if ( SF.name() == "extra" ) { |
224 | SF.setPath( | 227 | SF.setPath( |
225 | QString( "/etc/ppp/" ) + | 228 | QString( "/etc/ppp/" ) + |
226 | removeSpaces( networkSetup()->name() ) + ".fixed" | 229 | removeSpaces( networkSetup()->name() ) + ".fixed" |
227 | ); | 230 | ); |
228 | return 1; | 231 | return 1; |
229 | } | 232 | } |
230 | return 0; | 233 | return 0; |
231 | } | 234 | } |
diff --git a/noncore/settings/networksettings2/gprs/GPRS_NNI.h b/noncore/settings/networksettings2/gprs/GPRS_NNI.h index 1060a6e..b5bf1b9 100644 --- a/noncore/settings/networksettings2/gprs/GPRS_NNI.h +++ b/noncore/settings/networksettings2/gprs/GPRS_NNI.h | |||
@@ -15,25 +15,26 @@ public : | |||
15 | 15 | ||
16 | AGPRSDevice( GPRSNetNode * PNN ); | 16 | AGPRSDevice( GPRSNetNode * PNN ); |
17 | 17 | ||
18 | RuntimeInfo * runtime( void ) | 18 | RuntimeInfo * runtime( void ) |
19 | { return | 19 | { return |
20 | ( RT ) ? RT : ( RT = new GPRSRun( this, Data ) ); | 20 | ( RT ) ? RT : ( RT = new GPRSRun( this, Data ) ); |
21 | } | 21 | } |
22 | 22 | ||
23 | QWidget * edit( QWidget * parent ); | 23 | QWidget * edit( QWidget * parent ); |
24 | QString acceptable( void ); | 24 | QString acceptable( void ); |
25 | void commit( void ); | 25 | void commit( void ); |
26 | 26 | ||
27 | virtual bool openFile( SystemFile & SF ); | 27 | virtual bool openFile( SystemFile & SF, |
28 | QStringList & SL ); | ||
28 | 29 | ||
29 | virtual void * data( void ) | 30 | virtual void * data( void ) |
30 | { return (void *)&Data; } | 31 | { return (void *)&Data; } |
31 | 32 | ||
32 | virtual bool hasDataForFile( SystemFile & S ); | 33 | virtual bool hasDataForFile( SystemFile & S ); |
33 | virtual short generateFile( SystemFile & SF, | 34 | virtual short generateFile( SystemFile & SF, |
34 | long DevNr ); | 35 | long DevNr ); |
35 | 36 | ||
36 | protected : | 37 | protected : |
37 | 38 | ||
38 | virtual void setSpecificAttribute( QString & Attr, QString & Value ); | 39 | virtual void setSpecificAttribute( QString & Attr, QString & Value ); |
39 | virtual void saveSpecificAttribute( QTextStream & TS ); | 40 | virtual void saveSpecificAttribute( QTextStream & TS ); |