2012-06-29 00:23:19 +08:00
|
|
|
#ifndef __IPACKAGE_MANAGER__
|
|
|
|
#define __IPACKAGE_MANAGER__
|
|
|
|
|
2013-01-16 20:47:06 +08:00
|
|
|
#include <vector>
|
2012-06-29 00:23:19 +08:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class IPackageManager
|
|
|
|
{
|
|
|
|
public:
|
2013-01-16 20:47:06 +08:00
|
|
|
virtual std::vector<int> GetInstalledVersions() = 0;
|
|
|
|
virtual bool CheckVersionInstalled(int version, int platform, int cpu_id) = 0;
|
|
|
|
virtual bool InstallVersion(int version, int platform, int cpu_id) = 0;
|
|
|
|
virtual std::string GetPackagePathByVersion(int version, int platform, int cpu_id) = 0;
|
2012-06-29 00:23:19 +08:00
|
|
|
virtual ~IPackageManager(){};
|
|
|
|
};
|
|
|
|
|
2013-01-16 20:47:06 +08:00
|
|
|
#endif
|