rem: if (KandyPrefs::instance()->mStartupMobileWin ||
add: if (KandyPrefs::startupMobileWin() ||
context: int main(int argc, char **argv){  KAboutData about("kandy", I18N_NOOP("Kandy"), version, description,                   KAboutData::License_GPL, "(C) 2001 Cornelius Schumacher",0,                   "http://devel-home.kde.org/~kandy");  about.addAuthor( "Cornelius Schumacher", 0, "schumacher@kde.org" );  KCmdLineArgs::init(argc,argv,&about);  KCmdLineArgs::addCmdLineOptions(options);  KApplication app;  KCmdLineArgs *args = KCmdLineArgs::parsedArgs();  // register ourselves as a dcop client  app.dcopClient()->registerAs(app.name(),false);  Modem *modem = new Modem;  CommandScheduler *scheduler = new CommandScheduler(modem);  // see if we are starting with session management  if (app.isRestored()) {    // TODO: do session management//      RESTORE(Kandy)  } else  {    // no session.. just start up normally    Kandy *k = new Kandy(scheduler);    MobileMain *m = new MobileMain(scheduler);    if (!args->isSet("gui")) {    } else {      if (KandyPrefs::instance()->mStartupTerminalWin ||          args->isSet("terminal")) {        k->show();      }      if (KandyPrefs::instance()->mStartupMobileWin ||          args->isSet("mobilegui")) {        m->show();      }    }    if (args->count() == 1) {      k->load(QFile::decodeName(args->arg(0)));    } else if (args->count() > 1) {      args->usage();    }    args->clear();    QObject::connect(k,SIGNAL(showMobileWin()),m,SLOT(show()));    QObject::connect(m,SIGNAL(showTerminalWin()),k,SLOT(show()));    QObject::connect(m,SIGNAL(showPreferencesWin()),                     k,SLOT(optionsPreferences()));    QObject::connect(m,SIGNAL(modemConnect()),k,SLOT(modemConnect()));    QObject::connect(m,SIGNAL(modemDisconnect()),k,SLOT(modemDisconnect()));    QObject::connect(k,SIGNAL(connectStateChanged(bool)),                     m,SLOT(setConnected(bool)));    QObject::connect( modem, SIGNAL( errorMessage( const QString & ) ),                      k, SLOT( showErrorMessage( const QString & ) ) );    initModem(modem);    if (KandyPrefs::instance()->mStartupModem) k->modemConnect();  }  return app.exec();}