linuxOS_AP05/external/update_engine/deviceInfo.h

32 lines
672 B
C
Raw Permalink Normal View History

2025-06-02 05:59:07 +00:00
#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();
};