From 407bf8847c2ed391833909233c95faf66cda195b Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期五, 12 六月 2020 10:01:26 +0800 Subject: [PATCH] add factory --- device/include/netdisk.h | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/device/include/netdisk.h b/device/include/netdisk.h index f92eeb4..1af6837 100644 --- a/device/include/netdisk.h +++ b/device/include/netdisk.h @@ -34,12 +34,17 @@ class Netdisk { private: std::string loginDataFile; + struct DeviceInfo + { + int startChannel; //璧峰閫氶亾鍙� + int maxChannels; //鏈�澶ч�氶亾鏁� + + }; protected: - int startChannel; //璧峰閫氶亾鍙� - int maxChannels; //鏈�澶ч�氶亾鏁� - + + DeviceInfo deviceInfo; std::string deviceType; //璁惧绫诲瀷 std::string loginUUID; std::string username; //鐢ㄦ埛鍚� @@ -67,9 +72,7 @@ virtual int downloadByTime(Netdisk_DownloadRequest &request, std::vector<std::string> *files) = 0; - int getStartChannel() {return startChannel;} - - int getMaxChannels() {return maxChannels;} + DeviceInfo getDeviceInfo() {return deviceInfo;} }; -- Gitblit v1.8.0