|
|
@ -24,7 +24,7 @@
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class KCmdLineOptions
|
|
|
|
class TDECmdLineOptions
|
|
|
|
{
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <kcmdlineargs.h>
|
|
|
|
#include <kcmdlineargs.h>
|
|
|
@ -43,7 +43,7 @@ public:
|
|
|
|
%End
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; // class KCmdLineOptions
|
|
|
|
}; // class TDECmdLineOptions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TDECmdLineArgs
|
|
|
|
class TDECmdLineArgs
|
|
|
@ -132,13 +132,13 @@ public:
|
|
|
|
%End
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
static void init (const TDEAboutData*);
|
|
|
|
static void init (const TDEAboutData*);
|
|
|
|
static void addCmdLineOptions (SIP_PYLIST, const char* = 0, const char* = 0, const char* = 0) [void (const KCmdLineOptions*, const char* = 0, const char* = 0, const char* = 0)];
|
|
|
|
static void addCmdLineOptions (SIP_PYLIST, const char* = 0, const char* = 0, const char* = 0) [void (const TDECmdLineOptions*, const char* = 0, const char* = 0, const char* = 0)];
|
|
|
|
%MethodCode
|
|
|
|
%MethodCode
|
|
|
|
//takes options | (a Python list of tuples) | name | (char = 0) | id | (char = 0) | afterId | (char = 0)
|
|
|
|
//takes options | (a Python list of tuples) | name | (char = 0) | id | (char = 0) | afterId | (char = 0)
|
|
|
|
|
|
|
|
|
|
|
|
//doc
|
|
|
|
//doc
|
|
|
|
// A Pytbon list of tuples (name, description, default) is the first parameter
|
|
|
|
// A Pytbon list of tuples (name, description, default) is the first parameter
|
|
|
|
// instead of a KCmdLineOptions object (KCmdLineOptions is not used);
|
|
|
|
// instead of a TDECmdLineOptions object (TDECmdLineOptions is not used);
|
|
|
|
// NULL (or None) parameters to mark the end of the list are not required
|
|
|
|
// NULL (or None) parameters to mark the end of the list are not required
|
|
|
|
//end
|
|
|
|
//end
|
|
|
|
|
|
|
|
|
|
|
@ -148,10 +148,10 @@ public:
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
|
|
|
|
// opts is persistent
|
|
|
|
// opts is persistent
|
|
|
|
KCmdLineOptions *opts;
|
|
|
|
TDECmdLineOptions *opts;
|
|
|
|
|
|
|
|
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
Py_BEGIN_ALLOW_THREADS
|
|
|
|
opts = new KCmdLineOptions [n + 1];
|
|
|
|
opts = new TDECmdLineOptions [n + 1];
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
Py_END_ALLOW_THREADS
|
|
|
|
|
|
|
|
|
|
|
|
int i, tsz;
|
|
|
|
int i, tsz;
|
|
|
@ -250,7 +250,7 @@ errorExit:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
protected:
|
|
|
|
TDECmdLineArgs (const KCmdLineOptions*, const char*, const char*);
|
|
|
|
TDECmdLineArgs (const TDECmdLineOptions*, const char*, const char*);
|
|
|
|
~TDECmdLineArgs ();
|
|
|
|
~TDECmdLineArgs ();
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|