📄 cowebspider.h
字号:
//
// This file is part of UniWebSpider Project.
//
// UniWebSpider is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// UniWebSpider is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with UniWebSpider; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// WRITTEN BY : ValGarn
// CoWebSpider.h : Declaration of the CCoWebSpider
#ifndef __COWEBSPIDER_H_
#define __COWEBSPIDER_H_
#include "resource.h" // main symbols
#include "ADO.h"
#include "afxinet.h"
#include "afxmt.h"
#include "ChaosEnumerator.h"
/////////////////////////////////////////////////////////////////////////////
// CCoWebSpider
class ATL_NO_VTABLE CCoWebSpider :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CCoWebSpider, &CLSID_CoWebSpider>,
public IDispatchImpl<ICoWebSpider, &IID_ICoWebSpider, &LIBID_WEBSPIDERLib>
{
public:
CCoWebSpider()
{
m_Threads = new CChaosEnumerator();
}
DECLARE_REGISTRY_RESOURCEID(IDR_COWEBSPIDER)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CCoWebSpider)
COM_INTERFACE_ENTRY(ICoWebSpider)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
// ICoWebSpider
public:
STDMETHOD(IsExists)(BSTR *bstrConnectionString, VARIANT_BOOL *bVal);
STDMETHOD(Finish)(BSTR *bstrConnectionString);
STDMETHOD(Begin)(BSTR *bstrConnectionString);
CString GetOption(CString sName, CADO* pDatabase);
void SetOption(CString sName, CString sValue, CADO* pDatabase);
CChaosEnumerator* m_Threads;
};
#endif //__COWEBSPIDER_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -