<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=DE link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Thanks! I’ll certainly make use of this!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Tobias</span></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:scribe@crosswire.org">Troy A. Griffitts</a><br><b>Sent: </b>Donnerstag, 27. August 2020 20:52<br><b>To: </b><a href="mailto:sword-devel@crosswire.org">SWORD Developers' Collaboration Forum</a><br><b>Subject: </b>Re: [sword-devel] Abort module installation via API + Customnetwork timeouts</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hi Tobias,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Yes, you can let your users cancel an install by calling the </p><p class=MsoNormal>InstallMgr::terminate() method. I have just now commented this method </p><p class=MsoNormal>better so its purpose is more clear. My apologies, Jaak, for not having </p><p class=MsoNormal>this commented better for you.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Troy</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 8/8/20 9:30 AM, Tobias Klein wrote:</p><p class=MsoNormal>> Hi,</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> Is there a way to abort a module installation via the SWORD API?</p><p class=MsoNormal>> I saw in InstallMgr::installModule that there is some handling for </p><p class=MsoNormal>> when the user aborted the process. But it doesn't seem like this is </p><p class=MsoNormal>> controlled via the API.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> One typical use case would be that the user's download speed is </p><p class=MsoNormal>> currently slower then acceptable (whether due to internet issues or </p><p class=MsoNormal>> server issues). In this case, instead of waiting "forever" one may </p><p class=MsoNormal>> want to abort a download/installation.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> Also, another question in the same context: Is it possible to </p><p class=MsoNormal>> configure a custom timeout for the download of modules? What happens </p><p class=MsoNormal>> if a repository server goes down? I remember one time when the Xiphos </p><p class=MsoNormal>> repo was not available, waiting times seemed to be too long in the </p><p class=MsoNormal>> frontend (based on long default timeouts in SWORD?).</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> Best regards,</p><p class=MsoNormal>> Tobias</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> _______________________________________________</p><p class=MsoNormal>> sword-devel mailing list: sword-devel@crosswire.org</p><p class=MsoNormal>> http://www.crosswire.org/mailman/listinfo/sword-devel</p><p class=MsoNormal>> Instructions to unsubscribe/change your settings at above page</p><p class=MsoNormal>_______________________________________________</p><p class=MsoNormal>sword-devel mailing list: sword-devel@crosswire.org</p><p class=MsoNormal>http://www.crosswire.org/mailman/listinfo/sword-devel</p><p class=MsoNormal>Instructions to unsubscribe/change your settings at above page</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>