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
| #ifndef __HC_NETDISK_H__
| #define __HC_NETDISK_H__
|
| #include "usg_common.h"
| #include "usg_typedef.h"
| #include "HCNetSDK.h"
| #include "netdisk.h"
|
|
|
|
| class HCNetdisk {
|
| std::string devicename;
|
| long userid;
| std::string username;
| std::string password;
| std::string host;
| int port;
|
| int downloadByTime_wrapper(long userid, int channel, struct tm *start, struct tm *end, char *destfile);
| int saveRecordFile(int userId, char * srcfile, char * destfile);
|
| public:
| HCNetdisk(const std::string &_devicename): devicename(_devicename) {}
|
| ~HCNetdisk() {}
|
| static void netdisk_init(HCNetdisk_EnvConfig &config);
|
| int login(Netdisk_LoginInfo &loginInfo);
|
| int logout();
|
| int downloadByTime(Netdisk_DownloadRequest &request);
| };
|
|
| #endif
|
|