From 9b2d472b92665ab6afac8dcca9683c759b3fbb8a Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 30 六月 2020 17:41:41 +0800
Subject: [PATCH] update
---
device/include/netdisk.h | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/device/include/netdisk.h b/device/include/netdisk.h
index 3695ac6..b2b3fb6 100644
--- a/device/include/netdisk.h
+++ b/device/include/netdisk.h
@@ -28,18 +28,21 @@
} Netdisk_DownloadRequest;
-
+typedef struct DeviceInfo
+{
+ int startChannel; //璧峰閫氶亾鍙�
+ int maxChannels; //鏈�澶ч�氶亾鏁�
+
+} DeviceInfo;
// 缃戠粶纭洏 鎶借薄绫�
class Netdisk {
private:
std::string loginDataFile;
+
protected:
-
- int startChannel; //璧峰閫氶亾鍙�
- int maxChannels; //鏈�澶ч�氶亾鏁�
-
+ DeviceInfo deviceInfo;
std::string deviceType; //璁惧绫诲瀷
std::string loginUUID;
std::string username; //鐢ㄦ埛鍚�
@@ -67,11 +70,9 @@
virtual int downloadByTime(Netdisk_DownloadRequest &request, std::vector<std::string> *files) = 0;
- int getStartChannel() {return startChannel;}
-
- int getMaxChannels() {return maxChannels;}
+ DeviceInfo getDeviceInfo() {return deviceInfo;}
};
-
+#include "hcnetdisk.h"
#endif
\ No newline at end of file
--
Gitblit v1.8.0