summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/gprs/GPRSrun.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/networksettings2/gprs/GPRSrun.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/gprs/GPRSrun.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/gprs/GPRSrun.h b/noncore/settings/networksettings2/gprs/GPRSrun.h
new file mode 100644
index 0000000..817f8a9
--- a/dev/null
+++ b/noncore/settings/networksettings2/gprs/GPRSrun.h
@@ -0,0 +1,34 @@
+#include <netnode.h>
+#include <qregexp.h>
+#include "GPRSdata.h"
+
+class GPRSRun : public RuntimeInfo {
+
+public :
+
+ GPRSRun( ANetNodeInstance * NNI,
+ GPRSData & D ) : RuntimeInfo( NNI ),
+ Pat( "ppp[0-9]" ) {
+ PPPPid = 0;
+ }
+
+ bool handlesInterface( const QString & I );
+ bool handlesInterface( InterfaceInfo * );
+
+ virtual RuntimeInfo * device( void )
+ { return this; }
+ virtual RuntimeInfo * connection( void )
+ { return this; }
+
+ State_t detectState( void );
+
+protected :
+
+ QString setMyState( NodeCollection * , Action_t, bool );
+
+private :
+
+ QRegExp Pat;
+ size_t PPPPid;
+
+};