You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
221 lines
12 KiB
221 lines
12 KiB
14 years ago
|
|
||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN
|
||
|
"http://www.w3.org/TR/html4/loose.dtd"">
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>class KCmdLineArgs</title>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||
|
<meta name="GENERATOR" content="wabbit dumphtml">
|
||
|
</head>
|
||
|
<body>
|
||
|
<h4>PyKDE - Python Bindings for KDE</h4>
|
||
|
<hr>
|
||
|
<table width="100%"><tr>
|
||
|
<td width ="70%">
|
||
|
<h1>class KCmdLineArgs</h1><hr>
|
||
|
</td>
|
||
|
<td width="30%" valign="top" align="right">
|
||
|
<table>
|
||
|
<tr><td align="right"><a href="doc/index.html">Table of contents</a></td></tr>
|
||
|
<tr><td align="right"><a href="../index.html">Modules</a></td></tr>
|
||
|
<tr><td align="right"><a href="index.html">kdecore Classes</a></td></tr>
|
||
|
<tr><td align="right"><a href="../allclasses.html">All Classes</a></td></tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
<table>
|
||
|
<tr><td width="10%" align=left>Module</td>
|
||
|
<td width="30%" align=left>kdecore</td>
|
||
|
</tr>
|
||
|
<tr><td>Class</td>
|
||
|
<td>KCmdLineArgs</td>
|
||
|
</tr>
|
||
|
<tr><td>Inherits</td>
|
||
|
<td> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<h3>methods</h3><ul>
|
||
|
<li><b>KCmdLineArgs</b> (_options, _name, _id)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>a KCmdLineArgs instance</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>_options</td><td>KCmdLineOptions</td><td></td></tr>
|
||
|
<tr><td>_name</td><td>char</td><td></td></tr>
|
||
|
<tr><td>_id</td><td>char</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>addCmdLineOptions</b> (options, name = 0, id = 0, afterId = 0)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>options</td><td>a Python list of tuples</td><td></td></tr>
|
||
|
<tr><td>name</td><td>char</td><td>0</td></tr>
|
||
|
<tr><td>id</td><td>char</td><td>0</td></tr>
|
||
|
<tr><td>afterId</td><td>char</td><td>0</td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td>A Pytbon list of tuples (name, description, default) is the first parameter
|
||
|
instead of a KCmdLineOptions object (KCmdLineOptions is not used);
|
||
|
NULL (or None) parameters to mark the end of the list are not required
|
||
|
</td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>addTempFileOption</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td>In versions KDE 3.4.0 and above only</td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>appName</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(char)</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>arg</b> (n)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(char)</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>n</td><td>int</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>clear</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>count</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(int)</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>cwd</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QString)</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>enable_i18n</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>getOption</b> (option)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QCString)</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>option</td><td>char</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>getOptionList</b> (option)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QCStringList)</i></td></tr>
|
||
|
<tr><td>In versions KDE 3.1.4 and above only</td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>option</td><td>char</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>getOptionList</b> (a0)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(QValueList<QCString>)</i></td></tr>
|
||
|
<tr><td>In versions <i>less than</i> KDE 3.1.3 only</td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>a0</td><td>char</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>init</b> (_argc, _argv, _appname, programName, _description, _version, noKApp = 0)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td>In versions KDE 3.2.0 and above only</td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>_argc</td><td>int</td><td></td></tr>
|
||
|
<tr><td>_argv</td><td>char</td><td></td></tr>
|
||
|
<tr><td>_appname</td><td>char</td><td></td></tr>
|
||
|
<tr><td>programName</td><td>char</td><td></td></tr>
|
||
|
<tr><td>_description</td><td>char</td><td></td></tr>
|
||
|
<tr><td>_version</td><td>char</td><td></td></tr>
|
||
|
<tr><td>noKApp</td><td>bool</td><td>0</td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>init</b> (_argv, _appname, _description, _version, noKApp = False)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>_argv</td><td>a Python list of strings which may be modified</td><td></td></tr>
|
||
|
<tr><td>_appname</td><td>char</td><td></td></tr>
|
||
|
<tr><td>_description</td><td>char</td><td></td></tr>
|
||
|
<tr><td>_version</td><td>char</td><td></td></tr>
|
||
|
<tr><td>noKApp</td><td>bool</td><td>False</td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>init</b> (_argv, about, noKApp = 0)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>_argv</td><td>a Python list of strings which may be modified</td><td></td></tr>
|
||
|
<tr><td>about</td><td>KAboutData</td><td></td></tr>
|
||
|
<tr><td>noKApp</td><td>bool</td><td>0</td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>init</b> (about)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>about</td><td>KAboutData</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>isSet</b> (option)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>option</td><td>char</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>isTempFileSet</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(bool)</i></td></tr>
|
||
|
<tr><td>In versions KDE 3.4.0 and above only</td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>loadAppArgs</b> (a0)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td>In versions KDE 3.2.0 and above only</td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>a0</td><td>QDataStream</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>makeURL</b> (urlArg)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KURL)</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>urlArg</td><td>char</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>parsedArgs</b> (id = 0)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KCmdLineArgs)</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>id</td><td>char</td><td>0</td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>reset</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td>In versions KDE 3.2.0 and above only</td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>setCwd</b> (cwd)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>cwd</td><td>char</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>url</b> (n)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>(KURL)</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>n</td><td>int</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>usage</b> (id = 0)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>id</td><td>char</td><td>0</td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>usage</b> (error)
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
<tr><td><i>static</i></td></tr>
|
||
|
</table><table><tr bgcolor="#fff0ff"><th>Argument</th><th>Type</th><th>Default</th></tr>
|
||
|
<tr><td>error</td><td>QString</td><td></td></tr>
|
||
|
</table>
|
||
|
</td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
<li><b>~KCmdLineArgs</b> ()
|
||
|
<table width = "100%"><tr><td width="50%" valign="top"><table><tr><td>returns <i>nothing</i></td></tr>
|
||
|
</table></td><td width="50%"><table><tr><td></td></tr></table></td></tr></table></li><hr>
|
||
|
</ul>
|
||
|
|
||
|
</body>
|
||
|
</html>
|