|
|
|
@ -156,7 +156,7 @@ void connectStack( KPilotLink *l, ActionQueue *a, bool loop = false )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int exec(const TQString &device, const TQString &what, KCmdLineArgs *p)
|
|
|
|
|
int exec(const TQString &device, const TQString &what, TDECmdLineArgs *p)
|
|
|
|
|
{
|
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
|
|
|
|
@ -181,7 +181,7 @@ int exec(const TQString &device, const TQString &what, KCmdLineArgs *p)
|
|
|
|
|
return kapp->exec();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int backup(const TQString &device, const TQString &what, KCmdLineArgs *p)
|
|
|
|
|
int backup(const TQString &device, const TQString &what, TDECmdLineArgs *p)
|
|
|
|
|
{
|
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
KPilotLink *link = createLink( p->isSet("local") );
|
|
|
|
@ -196,7 +196,7 @@ int backup(const TQString &device, const TQString &what, KCmdLineArgs *p)
|
|
|
|
|
return kapp->exec();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int restore(const TQString &device, const TQString &what, KCmdLineArgs *p)
|
|
|
|
|
int restore(const TQString &device, const TQString &what, TDECmdLineArgs *p)
|
|
|
|
|
{
|
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
KPilotLink *link = createLink( p->isSet("local") );
|
|
|
|
@ -211,7 +211,7 @@ int restore(const TQString &device, const TQString &what, KCmdLineArgs *p)
|
|
|
|
|
return kapp->exec();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int listDB(const TQString &device, KCmdLineArgs *p)
|
|
|
|
|
int listDB(const TQString &device, TDECmdLineArgs *p)
|
|
|
|
|
{
|
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
KPilotLink *link = createLink( p->isSet("local") );
|
|
|
|
@ -224,7 +224,7 @@ int listDB(const TQString &device, KCmdLineArgs *p)
|
|
|
|
|
return kapp->exec();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int check( const TQString &device, const TQString &what, KCmdLineArgs *p )
|
|
|
|
|
int check( const TQString &device, const TQString &what, TDECmdLineArgs *p )
|
|
|
|
|
{
|
|
|
|
|
FUNCTIONSETUP;
|
|
|
|
|
|
|
|
|
@ -352,15 +352,15 @@ int main(int argc, char **argv)
|
|
|
|
|
I18N_NOOP("KPilot Maintainer"),
|
|
|
|
|
"groot@kde.org", "http://www.kpilot.org/");
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs::init(argc, argv, &about);
|
|
|
|
|
KCmdLineArgs::addCmdLineOptions(generalOptions,
|
|
|
|
|
TDECmdLineArgs::init(argc, argv, &about);
|
|
|
|
|
TDECmdLineArgs::addCmdLineOptions(generalOptions,
|
|
|
|
|
I18N_NOOP("General"));
|
|
|
|
|
KCmdLineArgs::addCmdLineOptions(conduitOptions,
|
|
|
|
|
TDECmdLineArgs::addCmdLineOptions(conduitOptions,
|
|
|
|
|
I18N_NOOP("Conduit Actions"),"conduit");
|
|
|
|
|
|
|
|
|
|
KApplication::addCmdLineOptions();
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs *p = KCmdLineArgs::parsedArgs();
|
|
|
|
|
TDECmdLineArgs *p = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
|
|
|
|
|
bool needGUI = false;
|
|
|
|
|
|
|
|
|
@ -387,7 +387,7 @@ int main(int argc, char **argv)
|
|
|
|
|
if ( p->isSet("check") )
|
|
|
|
|
{
|
|
|
|
|
return check( device, p->getOption("check"),
|
|
|
|
|
KCmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
TDECmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( p->isSet("show") )
|
|
|
|
@ -398,25 +398,25 @@ int main(int argc, char **argv)
|
|
|
|
|
if ( p->isSet("exec") )
|
|
|
|
|
{
|
|
|
|
|
return exec( device, p->getOption("exec"),
|
|
|
|
|
KCmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
TDECmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( p->isSet("list") )
|
|
|
|
|
{
|
|
|
|
|
return listDB( device,
|
|
|
|
|
KCmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
TDECmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( p->isSet("backup") )
|
|
|
|
|
{
|
|
|
|
|
return backup( device, p->getOption("backup"),
|
|
|
|
|
KCmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
TDECmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( p->isSet("restore") )
|
|
|
|
|
{
|
|
|
|
|
return restore( device, p->getOption("restore"),
|
|
|
|
|
KCmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
TDECmdLineArgs::parsedArgs("conduit") );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|