summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/usb/usbrun.h
blob: 0872f3d366c43fbac966d6333c2054c7bbc726df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef USBRUN_H
#define USBRUN_H

#include <netnode.h>
#include <qregexp.h>
#include "usbdata.h"

class USBRun  : public RuntimeInfo {

public :

      USBRun( ANetNodeInstance * NNI, 
              USBData & Data ) : 
                RuntimeInfo( NNI ),
                Pat( "usb[0-9abcdef]" ) {
      }

      virtual RuntimeInfo * device( void ) 
        { return this; }

      bool handlesInterface( const QString & I );
      bool handlesInterface( InterfaceInfo * );

      State_t detectState( void );

protected :

      QString setMyState( NetworkSetup * , Action_t, bool );

private :

      InterfaceInfo * getInterface( void );
      QRegExp Pat;

};
#endif