//----------------------------------------------------------------------------
// wxHTTP
// extracted from http.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_HTTP_H__
#define __OBJECT_WX_HTTP_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxHTTP
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_HTTP);

//----------------------------------------------------------------------------
// Object declaration for wxHTTP
//----------------------------------------------------------------------------
class Object_wx_HTTP : public Object_wx_Protocol {
public:
	Gura_DeclareObjectAccessor(wx_HTTP)
public:
	inline Object_wx_HTTP(wxHTTP *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_Protocol(Gura_UserClass(wx_HTTP), pEntity, pObserver, ownerFlag) {}
	inline Object_wx_HTTP(Class *pClass, wxHTTP *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_Protocol(pClass, pEntity, pObserver, ownerFlag) {}
	virtual ~Object_wx_HTTP();
	virtual Object *Clone() const;
	virtual String ToString(Signal sig, bool exprFlag);
	inline wxHTTP *GetEntity() {
		return dynamic_cast<wxHTTP *>(_pEntity);
	}
	inline wxHTTP *ReleaseEntity() {
		wxHTTP *pEntity = GetEntity();
		InvalidateEntity();
		return pEntity;
	}
	inline bool IsInvalid(Signal sig) const {
		if (_pEntity != NULL) return false;
		SetError_InvalidWxObject(sig, "wxHTTP");
		return true;
	}
public:
	static void OnModuleEntry(Environment &env, Signal sig);
};

}}

#endif
