-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCScanner.h
52 lines (39 loc) · 1.08 KB
/
CScanner.h
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Copyright (c) 2012 Alexandros Nikolopoulos <[email protected]>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#ifndef CSCANNER_H_
#define CSCANNER_H_
#include "CFroniusProbe.h"
#include "CSunergyProbe.h"
#include "CSmaProbe.h"
#include "CModbusMTU.h"
#include "CBlueTooth.h"
#include <libudev.h>
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <unistd.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
#include <iostream>
#include <string>
using namespace std;
class CScanner {
public:
CScanner();
virtual ~CScanner();
CProbe* FindNetwork(void);
private:
CProbe* FindFronius(list<string> &SerialPorts);
CProbe* FindSunergy(list<string> &SerialPorts);
CProbe* FindSMABlueTooth(list<int> &BlueDevices);
list<string> EnumSerialPorts(void);
list<int> EnumBlueTooth(void);
};
#endif /* CSCANNER_H_ */