1 |
< |
// Host Update |
2 |
< |
// |
3 |
< |
// Douglas Thrift |
4 |
< |
// |
5 |
< |
// $Id$ |
6 |
< |
|
7 |
< |
#ifndef _HostUpdate_h_ |
8 |
< |
#define _HostUpdate_h_ |
9 |
< |
|
10 |
< |
#include <iostream> |
11 |
< |
#include <cgicc/Cgicc.h> |
12 |
< |
|
13 |
< |
using namespace std; |
14 |
< |
using namespace cgicc; |
15 |
< |
|
16 |
< |
class HostUpdate |
17 |
< |
{ |
18 |
< |
private: |
19 |
< |
Cgicc cgi; |
20 |
< |
public: |
21 |
< |
HostUpdate(); |
22 |
< |
~HostUpdate(); |
23 |
< |
}; |
24 |
< |
|
25 |
< |
#endif // _HostUpdate_h_ |
1 |
> |
// Host Update |
2 |
> |
// |
3 |
> |
// Douglas Thrift |
4 |
> |
// |
5 |
> |
// $Id$ |
6 |
> |
|
7 |
> |
#ifndef _HostUpdate_hpp_ |
8 |
> |
#define _HostUpdate_hpp_ |
9 |
> |
|
10 |
> |
#include <iostream> |
11 |
> |
#include <cgicc/Cgicc.h> |
12 |
> |
|
13 |
> |
#include <sys/types.h> |
14 |
> |
#include <sys/stat.h> |
15 |
> |
|
16 |
> |
#ifndef _WIN32 |
17 |
> |
|
18 |
> |
#include <unistd.h> |
19 |
> |
|
20 |
> |
#else |
21 |
> |
|
22 |
> |
#include <direct.h> |
23 |
> |
|
24 |
> |
#endif |
25 |
> |
|
26 |
> |
using namespace std; |
27 |
> |
using namespace cgicc; |
28 |
> |
|
29 |
> |
class HostUpdate |
30 |
> |
{ |
31 |
> |
private: |
32 |
> |
Cgicc cgi; |
33 |
> |
void update(CgiEnvironment& env, const string& agent); |
34 |
> |
void display(CgiEnvironment& env); |
35 |
> |
public: |
36 |
> |
HostUpdate(); |
37 |
> |
~HostUpdate(); |
38 |
> |
}; |
39 |
> |
|
40 |
> |
#endif // _HostUpdate_hpp_ |