rem: EFUNCTIONSETUP;
add: FUNCTIONSETUP;
context: int main(int argc, char** argv){	EFUNCTIONSETUP;        KAboutData about("kpilot", I18N_NOOP("KPilot"),                         "4.0b",                         "KPilot - Hot-sync software for unix\n\n",                         KAboutData::License_GPL,                         "(c) 1998-2000, Dan Pilone");	about.addAuthor("Dan Pilone",		I18N_NOOP("Project Leader"),		"pilone@slac.com",		"http://www.slac.com/pilone/kpilot_home/");	about.addAuthor("Adriaan de Groot",		I18N_NOOP("Maintainer"),		"adridg@cs.kun.nl",		"http://www.cs.kun.nl/~adridg/kpilot/");	about.addAuthor("Heiko Purnhagen",		I18N_NOOP("Bugfixer"),		"purnhage@tnt.uni-hannover.de");        KCmdLineArgs::init(argc, argv, &about);	KCmdLineArgs::addCmdLineOptions(kpilotoptions);	KApplication::addCmdLineOptions();	KCmdLineArgs *p=KCmdLineArgs::parsedArgs();#ifdef DEBUG	debug_level=atoi(p->getOption("debug"));#endif	if (p->isSet("setup")) { run_mode='s'; } #ifdef ENABLE_CMD_CS	if (p->isSet("cs")) { run_mode='c'; }#endif	KApplication a(true,true);	KConfig& c=KPilotLink::getConfig();	(void)KPilotLink::getDebugLevel(c);	if (KPilotLink::getConfigVersion(c)<KPilotLink::ConfigurationVersion)	{		run_mode='s';	}#ifdef ENABLE_CMD_CS	if (run_mode=='c')	{		CConduitSetup *cs = new CConduitSetup(0L);		cs->exec();		exit(2);	}#endif	if (run_mode=='s')	{#ifdef DEBUG		if (debug_level & UI_MAJOR)		{			kdDebug() << fname << ": Running setup first."				<< " (mode " << run_mode << ")"				<< endl ;		}#endif		KPilotOptions* options = new KPilotOptions(0L);		options->exec();		// gsetupDialog uses result 0 for cancel		//		if (!options->result()) return 0;		// The options dialog may have changed the group		// while reading or writing settings (still a		// bad idea, actually).		//		c.setGroup(QString::null);	}	if (KPilotLink::getConfigVersion(c)<KPilotLink::ConfigurationVersion)	{		kdWarning() << fname << ": Is still not configured for use."			<< endl;		return 1;	}        KPilotInstaller *tp = new KPilotInstaller();        KGlobal::dirs()->addResourceType("pilotdbs", "share/apps/kpilot/DBBackup");	a.setMainWidget(tp);	return a.exec();}