maskofa

Download Status Code To Str

Apr 22nd, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 3.18 KB | None | 0 0
  1. function TfrmUtama.StatusCodeToStr(AStatus: TURLDownloadStatus): String;
  2. begin
  3.   case AStatus of
  4.     dsFindingResource           : result := 'Finding Resource';
  5.     dsConnecting                : result := 'Connecting';
  6.     dsRedirecting               : result := 'Redirecting';
  7.     dsBeginDownloadData         : result := 'Begin Download Data';
  8.     dsDownloadingData           : result := 'Downloading Data';
  9.     dsEndDownloadData           : result := 'End Download Data';
  10.     dsBeginDownloadComponents   : result := 'Begin Download Components';
  11.     dsInstallingComponents      : result := 'Installing Components';
  12.     dsEndDownloadComponents     : result := 'End Download Components';
  13.     dsUsingCachedCopy           : result := 'Using Cached Copy';
  14.     dsSendingRequest            : result := 'Sending Request';
  15.     dsClassIDAvailable          : result := 'Class ID Available';
  16.     dsMIMETypeAvailable         : result := 'MIME Type Available';
  17.     dsCacheFileNameAvailable    : result := 'Cache File Name Available';
  18.     dsBeginSyncOperation        : result := 'Begin Sync Operation';
  19.     dsEndSyncOperation          : result := 'End Sync Operation';
  20.     dsBeginUploadData           : result := 'Begin Upload Data';
  21.     dsUploadingData             : result := 'Uploading Data';
  22.     dsEndUploadData             : result := 'End Upload Data';
  23.     dsProtocolClassID           : result := 'Protocol Class ID';
  24.     dsEncoding                  : result := 'Encoding';
  25.     dsVerifiedMIMETypeAvailable : result := 'Verified MIME Type Available';
  26.     dsClassInstallLocation      : result := 'Class Install Location';
  27.     dsDecoding                  : result := 'Decoding';
  28.     dsLoadingMIMEHandler        : result := 'Loading MIME Handler';
  29.     dsContentDispositionAttach  : result := 'Content Disposition Attach';
  30.     dsFilterReportMIMEType      : result := 'Filter Report MIME Type';
  31.     dsCLSIDCanInstantiate       : result := 'CLSID Can Instantiate';
  32.     dsIUnKnownAvailable         : result := 'IUnKnown Available';
  33.     dsDirectBind                : result := 'Direct Bind';
  34.     dsRawMIMEType               : result := 'Raw MIME Type';
  35.     dsProxyDetecting            : result := 'Proxy Detecting';
  36.     dsAcceptRanges              : result := 'Accept Ranges';
  37.     dsCookieSent                : result := 'Cookie Sent';
  38.     dsCompactPolicyReceived     : result := 'Compact Policy Received';
  39.     dsCookieSuppressed          : result := 'Cookie Suppressed';
  40.     dsCookieStateUnknown        : result := 'Cookie State Unknown';
  41.     dsCookieStateAccept         : result := 'Cookie State Accept';
  42.     dsCookeStateReject          : result := 'Cooke State Reject';
  43.     dsCookieStatePrompt         : result := 'Cookie State Prompt';
  44.     dsCookieStateLeash          : result := 'Cookie State Leash';
  45.     dsCookieStateDowngrade      : result := 'Cookie State Downgrade';
  46.     dsPolicyHREF                : result := 'Policy HREF';
  47.     dsP3PHeader                 : result := 'P3P Header';
  48.     dsSessionCookieReceived     : result := 'Session Cookie Received';
  49.     dsPersistentCookieReceived  : result := 'Persistent Cookie Received';
  50.     dsSessionCookiesAllowed     : result := 'Session Cookies Allowed';
  51.   end;
  52. end;
Add Comment
Please, Sign In to add comment