ACC SHELL
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>
ProductLicense
</title>
<style type="text/css">body { background-color: #c8c8c8 }
h1 { color: #e00000 }
table { width: 100%/ border: none }
img { border: 0px }
.sigbox { background-color: #ffc080; border: solid thin #f96500 }
.sig { font: larger monospace }
.padtbl { background-color: #ffc080; padding: 10px; margin: 10px }
/* arrow */
.a { color: #606060 }
/* type, parameter */
.t, .p { color: #c05000 }
.pbox { width: 20% }
.descbox { }
.right { align: right }
.header {}
.footer { clear: both}
.menu { width: 10%; float: left }
.main { width: 90%; float: left }
</style>
</head>
<body>
<div class="header">
<i>YaST2 Developers Documentation:</i>
<a href="index.html">
<b>
ProductLicense
</b>
</a>
<img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
<hr />
</div>
<div class="menu">
<img alt="YaST" src="/usr/share/doc/packages/yast2-devtools/images/yast2-half.png" />
<br />
<br />
<a href="index.html">functions</a>
<br />
<a href="files.html">files</a>
<br />
<a href="intro.html">intro</a>
</div>
<div class="main">
<div class="sigbox">
<table class="padtbl">
<tr>
<td>
<h1>
ProductLicense
</h1>
</td>
<td class="filecell">ProductLicense.ycp
</td>
</tr>
<tr>
<td>Provide access / dialog for product license
</td>
</tr>
<tr>
<td>
<ul>
<li>Jiri Srain <<a href="mailto:jsrain@suse.cz">jsrain@suse.cz</a>></li>
</ul>
</td>
</tr>
<tr>
<td>
<p>This module has an unstable interface.</p>
</td>
</tr>
</table>
<table class="padtbl">
<tr>
<td>
<h1>Imports</h1>
<ul>
<li>Directory</li>
<li>FileUtils</li>
<li>InstShowInfo</li>
<li>Language</li>
<li>Mode</li>
<li>Popup</li>
<li>ProductFeatures</li>
<li>Report</li>
<li>Stage</li>
<li>Wizard</li>
</ul>
<h1>Global Functions</h1>
<ul>
<li>
<a href="#AskLicenseAgreement">AskLicenseAgreement (integer src_id, string dir, list<string> patterns, string action, boolean enable_back, boolean base_product)</a>
</li>
</ul>
<h1>Local Functions</h1>
<ul>
<li>
<a href="#CleanUpLicense">CleanUpLicense (string tmpdir)</a>
</li>
<li>
<a href="#DisplayLicenseDialog">DisplayLicenseDialog (list<string> languages, boolean back)</a>
</li>
<li>
<a href="#LicenseFiles">LicenseFiles (string dir, list<string> patterns)</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<p />
<div class="sigbox">
<span class="sig" id="DisplayLicenseDialog">local
<b>DisplayLicenseDialog (list<string> languages, boolean back)
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Displays License with Help and ( ) Yes / ( ) No radio buttons</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">languages</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">back</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="CleanUpLicense">local
<b>CleanUpLicense (string tmpdir)
<span class="a"> -> </span>
<span class="t">void</span>
</b>
</span>
</div>
<p>
Removes the temporary directory for licenses</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">tmpdir</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="LicenseFiles">local
<b>LicenseFiles (string dir, list<string> patterns)
<span class="a"> -> </span>
<span class="t">map<string,string></span>
</b>
</span>
</div>
<p>
Get all files with license existing in specified directory</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">dir</span>
</td>
<td class="descbox">string directory to look into</td>
</tr>
<tr>
<td class="pbox">
<span class="p">patterns</span>
</td>
<td class="descbox">a list of patterns for the files, regular expressions
with %1 for the language</td>
</tr>
</table>
</dd>
</dl>
<dl>
<dt>
<b>Return value:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="t" />
</td>
<td class="descbox">a map $[ lang_code : filename ]</td>
</tr>
</table>
</dd>
</dl>
<div class="sigbox">
<span class="sig" id="AskLicenseAgreement">global
<b>AskLicenseAgreement (integer src_id, string dir, list<string> patterns, string action, boolean enable_back, boolean base_product)
<span class="a"> -> </span>
<span class="t">symbol</span>
</b>
</span>
</div>
<p>
Ask user to confirm license agreement</p>
<dl>
<dt>
<b>Parameters:</b>
</dt>
<dd>
<table>
<tr>
<td class="pbox">
<span class="p">src_id</span>
</td>
<td class="descbox">integer source to get the license from</td>
</tr>
<tr>
<td class="pbox">
<span class="p">dir</span>
</td>
<td class="descbox">string directory to look for the license in if src_id is nil
and not 1st stage installation</td>
</tr>
<tr>
<td class="pbox">
<span class="p">patterns</span>
</td>
<td class="descbox">a list of patterns for the files, regular expressions
with %1 for the language</td>
</tr>
<tr>
<td class="pbox">
<span class="p">action</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">enable_back</span>
</td>
<td class="descbox"></td>
</tr>
<tr>
<td class="pbox">
<span class="p">base_product</span>
</td>
<td class="descbox"></td>
</tr>
</table>
</dd>
</dl>
</div>
<div class="footer">
<hr />
<i>YaST2 Developers Documentation</i>
<img class="right" alt="" src="/usr/share/doc/packages/yast2-devtools/images/yast2-mini.png" />
</div>
</body>
</html>
ACC SHELL 2018