⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webclient.h

📁 BQYAHOO的Visual C++源代码
💻 H
字号:


#pragma once
#include "windows.h"
#include "wininet.h"
#include <string>
#include "xlog.h"


using namespace std;


class WebClient//类WebClient负责处理和雅虎中国的网络连接,登录和下载附件都是由它来实现
{

private:
	DWORD CONNECT_FLAG;
	string BeforLogInUrl;	
private:
	HINTERNET hsession;//会话
	HINTERNET hconnect;//连接
	HINTERNET hrequest;//请求
	XLOG xlog;

public:
	char response[10*10*10*1024];
	unsigned long numberOfBytesRead;
	char head[10*1024];
public:

	bool BeforeLogIn();//进入登录页面
	bool LogIn(const char * LogInUrl , const string UserName );//登录
	bool InInBox(const string MailHostUrl);
	bool InMail(const string MailUrl);
	bool DownLoadFile(string FileSaveName,string DownLoadUrl); //下载附件
	bool LogOut(string);//登出
	inline void GetResponse();
	inline void GetHead();
	inline bool TestResponse();
	bool MayBeIn;
	
public:
	WebClient();
	~WebClient();
	
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -