linuxOS_AP05/external/update_engine/deviceInfo.h
2025-06-02 13:59:07 +08:00

32 lines
672 B
C++

#pragma once
#define VersionPath "/etc/version"
class DeviceInfo{
public:
virtual void setTargetConfig() = 0;
void setCurrentConfig();
void setTargetConfigData(std::string data);
bool compareVersion();
std::string getCurrentVersion();
std::string getCurrentModel();
std::string getTargetVersion();
std::string getTargetModel();
std::string getHost();
void setHost(std::string _host);
protected:
std::string currentModle;
std::string host;
std::string currentVersion;
std::string targetModel;
std::string targetVersion;
};
class DeviceInfoInternel: public DeviceInfo{
public:
void setTargetConfig();
};