1234567891011121314151617181920212223242526272829303132 |
- #pragma once
- enum HTTPRET
- {
- http_no = 0,
- http_f,
- http_yes,
- http_start,
- http_end,
- };
- class IBaseCurl
- {
- public:
- virtual ~IBaseCurl(void) {};
- virtual void SetUrl(LPCSTR url) = 0;
- //
- virtual bool Download(std::string path) = 0;
- //怬xia'zai
- virtual HTTPRET PostLogin(LPCSTR username, LPCSTR password, std::string& data) = 0;
- virtual SStringA GetLastErrorA() = 0;
- virtual SStringW GetLastErrorW() = 0;
- };
|