[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KArgumentBuild
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-03-31 10:14:51
[Download RAW message or body]

Hmmm - the opposite side of KCmdLineArgs ?
IMHO, using two QStringList, or a struct inside one QValueList
does the job, no need for a specific class for that.

On Fri, Mar 31, 2000 at 12:37:07PM +0200, Hummel, Timo wrote:
> Hi,
> 
> I just got the problem where I need to collect various parameters for
> launching an application all over a class. Does something like this already
> exist? I usually would store the parameters for an application in different
> variables, but the solution I want to have is like this:
> 
> KParam a;
> 
> a.addParameter("paramname1","parameter1");
> a.addParameter("paramname2","parameter2");
> 
> exec("nameofapp",a.paramString);
> 
> Another possibilities are to set binary options, remove set arguments and
> more. With this I can modify the argument list from a global (if defined as
> such) object, instead of storing all my parameters in variables. Does tihs
> already exist somewhere? Would this be useful for other coders?
> 
> Yours
> Timo

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic