author | wimpie <wimpie> | 2004-04-02 23:26:04 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 23:26:04 (UTC) |
commit | 67685a7531cfe8dfc32c195031dfe36ca69e115b (patch) (unidiff) | |
tree | 9bba0b13d712f7e1794f67ae67a841c1aeb53954 /noncore/settings/networksettings2/ppp/ppprun.h | |
parent | 29044beb810a0d8361f670221f2f1128de7d4e32 (diff) | |
download | opie-67685a7531cfe8dfc32c195031dfe36ca69e115b.zip opie-67685a7531cfe8dfc32c195031dfe36ca69e115b.tar.gz opie-67685a7531cfe8dfc32c195031dfe36ca69e115b.tar.bz2 |
another one
Diffstat (limited to 'noncore/settings/networksettings2/ppp/ppprun.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/ppp/ppprun.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/ppp/ppprun.h b/noncore/settings/networksettings2/ppp/ppprun.h new file mode 100644 index 0000000..76a05be --- a/dev/null +++ b/noncore/settings/networksettings2/ppp/ppprun.h | |||
@@ -0,0 +1,37 @@ | |||
1 | #ifndef PPPRUN_H | ||
2 | #define PPPRUN_H | ||
3 | |||
4 | #include <qregexp.h> | ||
5 | #include <asconnection.h> | ||
6 | #include "pppdata.h" | ||
7 | |||
8 | class PPPRun : public AsConnection { | ||
9 | |||
10 | public : | ||
11 | |||
12 | PPPRun( ANetNodeInstance * NNI, | ||
13 | PPPData & Data ) : | ||
14 | AsConnection( NNI ), | ||
15 | Pat( "eth[0-9]" ) | ||
16 | { D = &Data; } | ||
17 | |||
18 | protected : | ||
19 | |||
20 | void detectState( NodeCollection * NC ); | ||
21 | bool setState( NodeCollection * NC, Action_t A ); | ||
22 | bool canSetState( State_t S, Action_t A ) | ||
23 | { return connection()->findNext( netNode() )->runtime()->canSetState( S,A ); } | ||
24 | |||
25 | bool handlesInterface( const QString & I ); | ||
26 | |||
27 | private : | ||
28 | |||
29 | bool isMyPPPDRunning( void ); | ||
30 | bool isMyPPPUp( void ); | ||
31 | |||
32 | PPPData_t * D; | ||
33 | QRegExp Pat; | ||
34 | |||
35 | }; | ||
36 | |||
37 | #endif | ||