Program.h 677 Bytes
Newer Older
/jdi/'s avatar
basics  
/jdi/ committed
1
2
3
4
5
6
7
8
9
10
/*
 * Program.h
 *
 *  Created on: 04.09.2015
 *      Author: jdi
 */

#ifndef PROGRAM_H_
#define PROGRAM_H_

11
12
#include <memory>

/jdi/'s avatar
/jdi/ committed
13
#include "Types.h"
/jdi/'s avatar
/jdi/ committed
14
#include "Host.h"
15
#include "Socket.h"
/jdi/'s avatar
/jdi/ committed
16

/jdi/'s avatar
basics  
/jdi/ committed
17
class Program {
18
19
20
21
private:
	std::shared_ptr<boost::asio::io_service> io_service;
	std::shared_ptr<Socket> sock;
	Host host = Host();
/jdi/'s avatar
basics  
/jdi/ committed
22
public:
23
24
25
26
	Program() {
		io_service = std::make_shared<boost::asio::io_service>();
		sock = std::make_shared<Socket>(*io_service);
	}
/jdi/'s avatar
/jdi/ committed
27
	void init();
/jdi/'s avatar
/jdi/ committed
28
	int list();
/jdi/'s avatar
/jdi/ committed
29
	int sniff();
/jdi/'s avatar
/jdi/ committed
30
	int encode(std::string);
/jdi/'s avatar
/jdi/ committed
31
32
33
34
35
36
37
	int setProperty();
	int getProperty();
	int save();
	int restore();
	int flash();
	int reboot();
	int reset();
38
	std::string input;
/jdi/'s avatar
basics  
/jdi/ committed
39
40
41
};

#endif /* PROGRAM_H_ */