BCAT services: Difference between revisions

Behemoth (talk | contribs)
mNo edit summary
Behemoth (talk | contribs)
news:a, news:c, news:m, news:p, news:v: document async downloader
Line 267: Line 267:
| 30400 || [3.0.0+] DecodeArchiveFile || 2
| 30400 || [3.0.0+] DecodeArchiveFile || 2
|-
|-
| 30500 || [8.0.0+] ? (Takes a total of 8-bytes of input, a handle, and a type-0x9 input buffer, returns an [[#IUnknown2]]) || 2
| [[#30500]] || [8.0.0+] ? || 2
|-
|-
| 30900 || [1.0.0] (No input, returns an [[#INewlyArrivedEventHolder]]) || 2
| 30900 || [1.0.0] (No input, returns an [[#INewlyArrivedEventHolder]]) || 2
Line 297: Line 297:
=== 30210 ===
=== 30210 ===
Returns the Database version retrieved from system setting news!db_version
Returns the Database version retrieved from system setting news!db_version
=== 30500 ===
Takes a type-0x9 input buffer URL, the size of the transfer memory and a handle for the latter, returns an [[#IUnknown2]].


=== GetNewsDatabaseDump ===
=== GetNewsDatabaseDump ===
Line 386: Line 389:
== IUnknown2 ==
== IUnknown2 ==
This was added with [8.0.0+].
This was added with [8.0.0+].
On creation this object is enqueued and an event is signaled prompting a download from another thread (nn.news.Downloader).
(Made up names)


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 391: Line 397:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 ||  
| 0 || [[#Get]]
|-
|-
| 1 ||  
| 1 || [[#Cancel]]
|-
|-
| 2 ||  
| 2 || [[#GetResult]]
|-
|-
| 3 ||  
| 3 || [[#GetSize]]
|}
|}
=== Get ===
Return event handle. Signaled on download finish.
=== Cancel ===
Cancels Download.
=== GetResult ===
Returns last result.
=== GetSize ===
Returns final decoded size. 0 if the result of [[#GetResult]] is not 0 or Download isn't finished/was canceled.


== NewsDatabase ==
== NewsDatabase ==