27 lines
1.0 KiB
C++
27 lines
1.0 KiB
C++
|
#ifndef __HGVERSIONIMPL_HPP__
|
|||
|
#define __HGVERSIONIMPL_HPP__
|
|||
|
|
|||
|
#include "HGVersion.h"
|
|||
|
#include "../base/HGThread.h"
|
|||
|
|
|||
|
class HGVersionMgrImpl
|
|||
|
{
|
|||
|
public:
|
|||
|
HGVersionMgrImpl();
|
|||
|
~HGVersionMgrImpl();
|
|||
|
|
|||
|
HGResult GetServerConfig(HGServerConfig* config);
|
|||
|
HGResult PostInstallInfo(const HGChar* appName, const HGChar* desc);
|
|||
|
HGResult PostUninstallInfo(const HGChar* appName, const HGChar* desc);
|
|||
|
HGResult PostCrashInfo(const HGChar* appName, const HGChar* desc, const HGChar* crashFilePath, const HGChar* exceptionAddr);
|
|||
|
HGResult PostUserFeedback(const HGChar* appName, const HGChar* desc, const HGChar* feedback, const HGChar* contact);
|
|||
|
HGResult GetVersionList(const HGChar* appName, HGVersionInfo* info, HGUInt maxLen, HGUInt* count);
|
|||
|
HGResult HttpDownload(const HGChar* url, const HGChar* saveFilePath, HGHttpDownloadFunc func, HGPointer param);
|
|||
|
static HGResult GetCurrVersion(const HGChar* appName, HGChar* version, HGUInt maxLen);
|
|||
|
|
|||
|
private:
|
|||
|
HGServerConfig m_serverCfg;
|
|||
|
HGThread m_thread;
|
|||
|
};
|
|||
|
|
|||
|
#endif /* __HGVERSIONIMPL_HPP__ */
|