109 lines
4.9 KiB
C++
109 lines
4.9 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFUrlRequestClientComponent.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFUrlRequestClientComponentHPP
|
|
#define uCEFUrlRequestClientComponentHPP
|
|
|
|
#pragma delphiheader begin
|
|
#pragma option push
|
|
#if defined(__BORLANDC__) && !defined(__clang__)
|
|
#pragma option -w- // All warnings off
|
|
#pragma option -Vx // Zero-length empty class member
|
|
#endif
|
|
#pragma pack(push,8)
|
|
#include <System.hpp>
|
|
#include <SysInit.hpp>
|
|
#include <Winapi.Windows.hpp>
|
|
#include <Winapi.Messages.hpp>
|
|
#include <Winapi.ActiveX.hpp>
|
|
#include <System.Classes.hpp>
|
|
#include <System.Math.hpp>
|
|
#include <uCEFTypes.hpp>
|
|
#include <uCEFInterfaces.hpp>
|
|
#include <uCEFConstants.hpp>
|
|
#include <uCEFUrlRequestClientEvents.hpp>
|
|
#include <uCEFUrlrequestClient.hpp>
|
|
#include <uCEFUrlRequest.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ucefurlrequestclientcomponent
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TCEFUrlRequestClientComponent;
|
|
//-- type declarations -------------------------------------------------------
|
|
class PASCALIMPLEMENTATION TCEFUrlRequestClientComponent : public System::Classes::TComponent
|
|
{
|
|
typedef System::Classes::TComponent inherited;
|
|
|
|
protected:
|
|
Ucefinterfaces::_di_ICefUrlrequestClient FClient;
|
|
Uceftypes::TCefThreadId FThreadID;
|
|
int FComponentID;
|
|
Ucefurlrequestclientevents::TOnRequestComplete FOnRequestComplete;
|
|
Ucefurlrequestclientevents::TOnUploadProgress FOnUploadProgress;
|
|
Ucefurlrequestclientevents::TOnDownloadProgress FOnDownloadProgress;
|
|
Ucefurlrequestclientevents::TOnDownloadData FOnDownloadData;
|
|
Ucefurlrequestclientevents::TOnGetAuthCredentials FOnGetAuthCredentials;
|
|
System::Classes::TNotifyEvent FOnCreateURLRequest;
|
|
int __fastcall GetComponentID();
|
|
void __fastcall doOnRequestComplete(const Ucefinterfaces::_di_ICefUrlRequest request);
|
|
void __fastcall doOnUploadProgress(const Ucefinterfaces::_di_ICefUrlRequest request, __int64 current, __int64 total);
|
|
void __fastcall doOnDownloadProgress(const Ucefinterfaces::_di_ICefUrlRequest request, __int64 current, __int64 total);
|
|
void __fastcall doOnDownloadData(const Ucefinterfaces::_di_ICefUrlRequest request, void * data, System::NativeUInt dataLength);
|
|
bool __fastcall doOnGetAuthCredentials(bool isProxy, const Uceftypes::ustring host, int port, const Uceftypes::ustring realm, const Uceftypes::ustring scheme, const Ucefinterfaces::_di_ICefAuthCallback callback);
|
|
void __fastcall doOnCreateURLRequest();
|
|
void __fastcall DestroyRequestClient();
|
|
|
|
public:
|
|
__fastcall virtual TCEFUrlRequestClientComponent(System::Classes::TComponent* AOwner);
|
|
virtual void __fastcall AfterConstruction();
|
|
virtual void __fastcall BeforeDestruction();
|
|
void __fastcall AddURLRequest();
|
|
__property Ucefinterfaces::_di_ICefUrlrequestClient Client = {read=FClient};
|
|
__property Uceftypes::TCefThreadId ThreadID = {read=FThreadID, write=FThreadID, nodefault};
|
|
|
|
__published:
|
|
__property Ucefurlrequestclientevents::TOnRequestComplete OnRequestComplete = {read=FOnRequestComplete, write=FOnRequestComplete};
|
|
__property Ucefurlrequestclientevents::TOnUploadProgress OnUploadProgress = {read=FOnUploadProgress, write=FOnUploadProgress};
|
|
__property Ucefurlrequestclientevents::TOnDownloadProgress OnDownloadProgress = {read=FOnDownloadProgress, write=FOnDownloadProgress};
|
|
__property Ucefurlrequestclientevents::TOnDownloadData OnDownloadData = {read=FOnDownloadData, write=FOnDownloadData};
|
|
__property Ucefurlrequestclientevents::TOnGetAuthCredentials OnGetAuthCredentials = {read=FOnGetAuthCredentials, write=FOnGetAuthCredentials};
|
|
__property System::Classes::TNotifyEvent OnCreateURLRequest = {read=FOnCreateURLRequest, write=FOnCreateURLRequest};
|
|
public:
|
|
/* TComponent.Destroy */ inline __fastcall virtual ~TCEFUrlRequestClientComponent() { }
|
|
|
|
private:
|
|
void *__ICEFUrlRequestClientEvents; // Ucefinterfaces::ICEFUrlRequestClientEvents
|
|
|
|
public:
|
|
#if defined(MANAGED_INTERFACE_OPERATORS)
|
|
// {1AA800A7-56A1-43CA-A224-49368F18BDD8}
|
|
operator Ucefinterfaces::_di_ICEFUrlRequestClientEvents()
|
|
{
|
|
Ucefinterfaces::_di_ICEFUrlRequestClientEvents intf;
|
|
this->GetInterface(intf);
|
|
return intf;
|
|
}
|
|
#else
|
|
operator Ucefinterfaces::ICEFUrlRequestClientEvents*(void) { return (Ucefinterfaces::ICEFUrlRequestClientEvents*)&__ICEFUrlRequestClientEvents; }
|
|
#endif
|
|
|
|
};
|
|
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefurlrequestclientcomponent */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFURLREQUESTCLIENTCOMPONENT)
|
|
using namespace Ucefurlrequestclientcomponent;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFUrlRequestClientComponentHPP
|