blob: 4406e9fec1b479f1b4925b399a745fd49969dcc2 [file] [log] [blame]
San Mehat1441e762009-05-07 11:37:10 -07001#ifndef _WIFISCANNER_H
2#define _WIFISCANNER_H
3
4#include <pthread.h>
5
6class Supplicant;
7
8class WifiScanner {
San Mehate67651c2009-05-12 15:50:49 -07009 pthread_t mThread;
10 int mCtrlPipe[2];
San Mehat1441e762009-05-07 11:37:10 -070011 Supplicant *mSuppl;
12 int mPeriod;
13 bool mActive;
14
15
16public:
17 WifiScanner(Supplicant *suppl, int period);
18 virtual ~WifiScanner() {}
19
20 int getPeriod() { return mPeriod; }
21
San Mehate67651c2009-05-12 15:50:49 -070022 int start(bool active);
23 int stop();
San Mehat1441e762009-05-07 11:37:10 -070024
25private:
26 static void *threadStart(void *obj);
San Mehat1441e762009-05-07 11:37:10 -070027
28 void run();
29};
30
31#endif